%character%.CharInsideWhat function

From ADRIFT 5 Manual Wiki
Jump to: navigation, search

If the selected character is currently inside of an object (Hiding in a wardrobe, inside a car etc.) then this function will give the key of that object.

Requirements

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

RestrictionCharInObject.jpg

Properties

When the "Location of the character" property is set to "In Object", the "Inside Which Object?" property of the character displays the name of the object that this character is inside of. Setting "Inside Which Object?" determines which object will be returned by the CharInsideWhat function.

PropertyCharInsideWhat.jpg

How to use

To print the name of the object, as shown in the "Inside Which Object?" property, use the name function following this one. ie. "%character%.CharInsideWhat.Name"

This function returns an object key, so it can be followed by any object function.

Examples

  • Character7.CharInsideWhat.Description
If Character7 is a parrot sitting inside a cage, this will give the description of the cage.
  • %Player%.CharInsideWhat.StaticLocation
If the player is inside a wardrobe that is in a bedroom, this gives the short description of the bedroom.
  • %character%.CharInsideWhat.Weight
The weight of the object that the referenced character is sitting inside of.


<<< ShowEnterExitCharacter FunctionsCharOnWhat >>>