Difference between revisions of "%character%.Parent function"
From ADRIFT 5 Manual Wiki
(Created page with "The "Parent" function will give the key of the object, location or character that this character is inside or on top of. == Properties == The "Location of the character" propert...") |
m (→Properties) |
||
Line 5: | Line 5: | ||
Setting one of these properties determines which object, character or Location will be returned by the Parent function. | Setting one of these properties determines which object, character or Location will be returned by the Parent function. | ||
− | [[File: | + | [[File:PropertyCharacterLocation.jpg]] |
[[File:PropertyCharOnWhat.jpg]] | [[File:PropertyCharOnWhat.jpg]] |
Revision as of 02:55, 13 December 2012
The "Parent" function will give the key of the object, location or character that this character is inside or on top of.
Properties
The "Location of the character" property determines whether the "At which Location", "In Which object?", "On which object?" or "On which character?" property of the character displays the name of the object that this character is on top of. Setting one of these properties determines which object, character or Location will be returned by the Parent function.
How to use
This function returns an item key.
To use an object function, character function or location function you will need to use a restriction to limit the task or alternate description to the required item type.
Examples
- Character7.Parent
- The key of the parent of Character7.
- %Player%.Parent.ShortLocationDescription
- If we know that the player is at a location, this gives the short description of that location.
- %character%.Parent.Weight
- The weight of the object that the referenced character is either sitting inside of or on top of.
<<< CharOnWhat | Character Functions | Object Functions >>> |