Switch
¶
Object used when you want to find information on targetted doors or switches such as the portals in PoK.
Forms¶
switch Switch
¶
- Returns the currently targeted switch
switch Switch[ID]
¶
- Returns a switch matching the provided numeric ID
switch Switch[Search]
¶
-
Based on the value of
Search
, return a switch:target
: Return the currently targeted switchnearest
: Return the nearest switch.- Otherwise, return switch by searching by name
Usage¶
${Switch[foo]}
${Switch[foo].Heading}
Actions on current /doortarget¶
/echo ${Switch.Heading}
/echo ${Switch.Open}
Access the current doortarget switch datatype members directly Returns TRUE or FALSE