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 ...") |
m (Text replacement - "{{toc}}" to "") |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {| class="toccolours mw-collapsible mw-collapsed ts" | |
− | + | |- | |
− | + | ! Function History | |
− | + | |- | |
− | + | | Available since v3.0 | |
+ | |} | ||
− | Allows you to access, read & manipulate the data tables for | + | Allows you to access, read & manipulate the data tables for objects, items, characters, conditions, & values etc... |
− | |||
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 | |
− | + | getObject("Characters[Tom]"):getLink(VCharacterCurrentOutfit) -- access active outfit table of character "Tom" | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | getObject("Characters[ | ||
− | |||
− | |||
− | |||
− | |||
</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 65: | Line 44: | ||
'''object''' <br/> | '''object''' <br/> | ||
Returns the data from the linked objects table; or returns empty. | Returns the data from the linked objects table; or returns empty. | ||
− | |||
− |
Revision as of 01:51, 4 November 2014
Function 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.