Difference between revisions of "Location Functions"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
(Links to detailed pages)
m (Links)
Line 21: Line 21:
 
**Objects.list - Lists the objects at this location
 
**Objects.list - Lists the objects at this location
 
**Objects.count - The number of objects at this location
 
**Objects.count - The number of objects at this location
 +
 +
 +
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Object Functions|<<< Object Functions]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Object-oriented functions]]</TD><TD ALIGN=CENTER>[[Expressions|Expressions >>>]]</TD></TABLE>
 +
[[Category:Functions]]

Revision as of 01:58, 20 November 2012

The properties of locations can be listed by typing a dot (full-stop ".") immediately after the location reference "%location%", a location key, or a function that returns a location key, in a text box or expression.

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 location will be ommited from the list.
  • Properties that you create for locations 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.

FunctionsLocation.jpg

IconGroup.jpg Group properties

  • Exits (Exits) - Exits from this location
    • exits.list - List available exits from this location (those not blocked by a restriction)
    • exits.count - The number of available exits from this location

IconText.jpg Text properties

IconDynamicObject.jpg Object properties

  • Objects (Objects) - The dynamic objects at this location
    • Objects.list - Lists the objects at this location
    • Objects.count - The number of objects at this location


<<< Object FunctionsObject-oriented functionsExpressions >>>