Difference between revisions of "VisionaireObject Command: getLink"
From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "<div class="toccolours mw-collapsible mw-collapsed tbl-ds"> <span class="bold">Command History</span> <div class="mw-collapsible-content"> <div class="alt-bg">Available since ...") |
|||
Line 12: | Line 12: | ||
Syntax: | Syntax: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
− | getLink( | + | getLink(t_link) |
</syntaxhighlight> | </syntaxhighlight> | ||
− | Example 1: | + | Example 1: using getLink as initial function. |
<syntaxhighlight> | <syntaxhighlight> | ||
− | -- | + | game:getLink(VGameCurrentCharacter) -- access all tables of current character |
− | + | game:getLink(VGameCurrentScene) -- access all tables of current scene | |
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
− | Example 2: | + | Example 2: using getLink after other functions |
<syntaxhighlight> | <syntaxhighlight> | ||
− | + | game:getLink(VGameCurrentCharacter):getLink(VCharacterCurrentOutfit) -- access table of current characters active outfit | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
<span class="bold underline">Arguments</span> | <span class="bold underline">Arguments</span> | ||
− | ''' | + | '''t_link''': text <br/> |
− | The | + | The name of the data structure object table. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 66: | Line 44: | ||
Returns the data from the linked objects table; or returns empty. | Returns the data from the linked objects table; or returns empty. | ||
− | {{i18n| | + | {{i18n|GetLink_(CMS)}} |
Revision as of 21:49, 18 March 2014
Command History
Available since v3.0
Allows you to access, read & manipulate the data tables for general game objects, items, characters, conditions, & values etc...
* this page is a work in progress *
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
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.