Character position
From ADRIFT 5 Manual Wiki
Revision as of 04:34, 7 November 2013 by Saabie (Talk | contribs) (Created page with "The position property of each character in ADRIFT can be set to "Standing", "Sitting" or "lying". == Testing the position of a character == You can use a property restriction to...")
The position property of each character in ADRIFT can be set to "Standing", "Sitting" or "lying".
Testing the position of a character
You can use a property restriction to check if the character is sitting or lying down, or a character restriction can be used to check if the referenced character is in a particular position on a particular object:
Using the property to modify text to suit the position
The "CharacterPosition" function of characters can be used to obtain the current setting of this state property as text.
Inserting %character%.Gender directly into text will return "Standing", "Sitting" or "lying", for example:
Simon is Simon.CharacterPosition on the bed.
will be printed as:
Simon is sitting on the bed.
if simon was sitting down.
<<< Genderr | Main_Page | Is this character known to the player >>> |