Skip to content

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 switch
  • nearest: Return the nearest switch.
  • Otherwise, return switch by searching by name

Usage

${Switch[foo]}
Access switch "foo"

${Switch[foo].Heading}
Access "foo" switch datatype members

Actions on current /doortarget

/echo ${Switch.Heading}
/echo ${Switch.Open}

Access the current doortarget switch datatype members directly Returns TRUE or FALSE