Difference between revisions of "%object%.InLocation function"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
(Created page with "The InLocation function returns the key of the location that currently contains the object. '''%object%.InLocation''' - Returns the loaction of the object who's na...")
 
m (fixed link)
Line 16: Line 16:
  
  
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Character_Functions|<<< Character Functions]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Object Functions]]</TD><TD ALIGN=CENTER>[[%object%.HeldByWho|Held by who? >>>]]</TD></TABLE>
+
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Character_Functions|<<< Character Functions]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Object Functions]]</TD><TD ALIGN=CENTER>[[%object%.HeldByWho function|HeldByWho >>>]]</TD></TABLE>
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 01:12, 20 November 2012

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 >>>