%object%.InLocation function

From ADRIFT 5 Manual Wiki
Revision as of 00:12, 20 November 2012 by Saabie (Talk | contribs) (fixed link)

Jump to: navigation, search

The InLocation function returns the key of the location that currently contains the object.

%object%.InLocation - Returns the loaction of the object who's name the player entered in a command. This can only be used in a task which used an %object% reference.

Object3.InLocation - Returns the location of the object who's key is "Object3".

The location key returned by this function can be compared to another location key in a restriction, or be used to move another item to this location with an action

In a text box you would use this function to obtain the location of an object so that you can then display one of the properties of that location. When you enter another full-stop after this function, you will be shown a list of the Location Functions that can be used with it.

Example: Object1.InLocation.LongLocationDescription - Displays the long location description of the location in which Object1 is currently located.


<<< Character FunctionsObject FunctionsHeldByWho >>>