Difference between revisions of "Character Functions"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
m (fixed links)
(Useage)
Line 65: Line 65:
 
*[[%character%.Parent function|Parent]]
 
*[[%character%.Parent function|Parent]]
 
:<font color="green">%character%</font>.Parent - The key of the location or object that immediately contains the character
 
:<font color="green">%character%</font>.Parent - The key of the location or object that immediately contains the character
 +
 +
== Useage ==
 +
These functions can be used with a specific character, or with any function or reference that returns a character key:
 +
*In a task containing a %character% reference, using the reference will apply the character function to the character that the player entered in the command.
 +
*A specific character can be selected by using its [[key]]. eg. "Character12.Name"
 +
*A location or object function can be used to obtain a character key, and the character function appended to it. eg "Object3.HeldByWho.Name" will print the name of the character that is holding Object3.
  
  
 
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Object-oriented functions|<<< Object-oriented functions]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Main Page]]</TD><TD ALIGN=CENTER>[[Object Functions|Object Functions >>>]]</TD></TABLE>
 
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Object-oriented functions|<<< Object-oriented functions]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Main Page]]</TD><TD ALIGN=CENTER>[[Object Functions|Object Functions >>>]]</TD></TABLE>
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 08:29, 20 November 2012

The object-oriented functions for characters can be listed by typing a dot (full-stop ".") immediately after the character reference "%character%", a character key, or the player-character function %Player%, in either a text box or an expression.

IconWarning.png These names are CASE SENSITIVE. "%Character%." wont work, you must type "%character%."

This allows direct access to the property values of any character, location or object without having to use the %PropertyValue[]% function

Scroll down to the wanted property and click on it to insert the property key into the function.

  • Note that properties that are not relevant to a particular character will be ommited from the list.
  • Properties that you create and add to the characters will be added to this list.
  • If you type part of the name of the property then the list will be reduced to show only those that match.
  • Instead of clicking with the mouse you can type enough of the properties name to bring it to the top of the list and press enter or tab.

FunctionsCharacter.jpg

IconLocation.jpg Location properties

%character%.CharacterAtLocation - Displays the KEY of the characters current location. Entering another dot after this will access the properties of that location.

IconCharacters.jpg Character properties

%character%.CharOnWho - Key of character that this character is sitting on.

IconText.jpg Text properties

%character%.CharacterPosition - Standing, sitting or lying
%character%.CharacterProperName
%character%.Description
%character%.CharEnters
%character%.CharExits
%character%.Descriptor - Article, adjective and noun of character descriptor.
%character%.Gender - Male, female or unknown
%character%.CharacterLocation - Name (short descripton) of the current location of the character.
%character%.ProperName
%character%.CharHereDesc

IconInteger.jpg Integer properties

%character%.MaxBulk - The max. number of tiny objects that this character can carry (If set for this character)
%character%.MaxWeight - Where a tiny object has weight = 1.

IconGroup.jpg Group properties

%character%.Held - A list of all objects held by the character
%character%.Worn - A list of all objects worn by the character

IconDynamicObject.jpg Object properties

%character%.CharInsideWhat - The key of the container object that the character is inside of
%character%.CharOnWhat - The key of the supporter object that the character is on top of

IconStaticObject.jpg Item properties

%character%.Parent - The key of the location or object that immediately contains the character

Useage

These functions can be used with a specific character, or with any function or reference that returns a character key:

  • In a task containing a %character% reference, using the reference will apply the character function to the character that the player entered in the command.
  • A specific character can be selected by using its key. eg. "Character12.Name"
  • A location or object function can be used to obtain a character key, and the character function appended to it. eg "Object3.HeldByWho.Name" will print the name of the character that is holding Object3.


<<< Object-oriented functionsMain PageObject Functions >>>