VisionaireObject Command: getLink

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 21:53, 18 March 2014 by AFRLme (talk)

Command History

Available since v3.0


Allows you to access, read & manipulate the data tables for objects, items, characters, conditions, & values etc...


Syntax:

getLink(t_link)


Example 1: using getLink as initial function.

game:getLink(VGameCurrentCharacter) -- access all tables of current character
game:getLink(VGameCurrentScene) -- access all tables of current scene

Example 2: using getLink after other functions

game:getLink(VGameCurrentCharacter):getLink(VCharacterCurrentOutfit) -- access table of current characters active outfit
getObject("Characters[Tom]"):getLink(VCharacterCurrentOutfit) -- access active outfit table of character "Tom"


Arguments

t_link: text
The name of the data structure object table.


Flags

none


Return

object
Returns the data from the linked objects table; or returns empty.