Difference between revisions of "Character position"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
(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...")
 
m (typos)
 
Line 9: Line 9:
 
The "[[CharacterPosition]]" function of characters can be used to obtain the current setting of this [[state]] property as text.
 
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:
+
Inserting %character%.CharacterPosition directly into text will return "Standing", "Sitting" or "lying", for example:
 
  Simon is Simon.CharacterPosition on the bed.
 
  Simon is Simon.CharacterPosition on the bed.
 
will be printed as:
 
will be printed as:
Line 16: Line 16:
  
  
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Gender|<<< Genderr]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Main_Page#The_Main_Items|Main_Page]]</TD><TD ALIGN=CENTER>[[Is this character known to the player|Is this character known to the player >>>]]</TD></TABLE>
+
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Gender|<<< Gender]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Main_Page#The_Main_Items|Main_Page]]</TD><TD ALIGN=CENTER>[[Is this character known to the player|Is this character known to the player >>>]]</TD></TABLE>
 
[[Category:Character properties]]
 
[[Category:Character properties]]

Latest revision as of 03:38, 7 November 2013

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:

RestrictionSitOnChair.jpg

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%.CharacterPosition 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.


<<< GenderMain_PageIs this character known to the player >>>