Difference between revisions of "%location%.Exits function"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
List the available exits from a location.
  
 +
The available directions for a [[Locations|location]] are given on its [[Locations#Directions|directions]] page:
  
 +
[[File:DirectionsTabWithRestriction.jpg]]
  
 +
<br />The function %location%.Exits.List will create a comma-separated list of all of the directions that exit from this location.
 +
<pre>North, East, SouthEast, South, SouthWest and West
 +
</pre>
 +
*This function does '''NOT''' check the movement restrictions. Use the general function %ListExits[%character%]% to only list directions that a character is permitted to use to leave their current location.
 +
*Most directions have several synonyms that the player can enter. This function will always list the '''first''' word on each synonym list:
  
 +
<br />[[File:DirectionNorth.jpg]]
  
 +
== Examples ==
 +
When you enter "%location%.Exits.", ADRIFT will give you a list of two functions to choose from: "List" and "Count".
 +
*Both of the following will list all of the exits from the location:
 +
:<font color="green">%location%</font>.Exits
 +
:<font color="green">%location%</font>.Exits.List
  
 +
*The following should give the number of available exits from this location:
 +
:<font color="green">%location%</font>.Exits.Count
 +
[[File:IconWarning.png]] In version 5.0.26 this lists the exits instead of giving the number of exits.
  
  
 
+
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Object Functions|<<< Object Functions]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Location Functions]]</TD><TD ALIGN=CENTER>[[%location%.Objects function|Objects >>>]]</TD></TABLE>
 
+
 
+
 
+
 
+
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Object Functions|<<< Object Functions]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Location Functions]]</TD><TD ALIGN=CENTER>[[Expressions|Expressions >>>]]</TD></TABLE>
+
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 04:43, 16 March 2017

List the available exits from a location.

The available directions for a location are given on its directions page:

DirectionsTabWithRestriction.jpg


The function %location%.Exits.List will create a comma-separated list of all of the directions that exit from this location.

North, East, SouthEast, South, SouthWest and West
  • This function does NOT check the movement restrictions. Use the general function %ListExits[%character%]% to only list directions that a character is permitted to use to leave their current location.
  • Most directions have several synonyms that the player can enter. This function will always list the first word on each synonym list:


DirectionNorth.jpg

Examples

When you enter "%location%.Exits.", ADRIFT will give you a list of two functions to choose from: "List" and "Count".

  • Both of the following will list all of the exits from the location:
%location%.Exits
%location%.Exits.List
  • The following should give the number of available exits from this location:
%location%.Exits.Count

IconWarning.png In version 5.0.26 this lists the exits instead of giving the number of exits.


<<< Object FunctionsLocation FunctionsObjects >>>