%character%.CharOnWho function

From ADRIFT 5 Manual Wiki
Revision as of 04:27, 24 November 2012 by Saabie (Talk | contribs)

Jump to: navigation, search

If the selected character is currently sitting on top of another character (such as a bird on a mans shoulder or a man riding a horse) then this function will give the key of that character.

To print the name of the ridden character, as shown in the "On which character?" property, use the name function following this one. ie. "%character%.CharOnWho.Name"

PropertyCharOnWho.jpg

This function can only be used where the character is known to be on another, or by using the following restriction in a task or alternate description to ensure that it is.

RestrictionCharOnChar.jpg

This function returns a character key, so it can be followed by any character function.

Character7.CharOnWho.CharOnWho.Name - If Character7 is a parrot sitting on a man who is sitting on a horse, this will give the name of the horse.
%Player%.CharOnWho.Position - If the player is on a camel, this tells us if the camel is sitting down or standing up.
%character%.CharOnWho.MaxWeight - The maximum weight that the animal the referenced character is sitting on can carry.
Character23.CharOnWho.CharInsideWhat.Name - If Character23 is sitting on a character who is inside of an object, this gives the name of that object.


<<< CharacterAtLocationCharacter FunctionsName >>>