triggers

Lists the area’s triggers, nearest first: each one’s id, tag, name, position, distance, whether it is active, and leadsTo if it takes the party to another area (exits lists only those). A trigger is not used but walked into: travel or order move to its position.

Pass ints to read local integer variables on each trigger, as its scripts set them, such as a puzzle’s state or a switch’s number (returned as ints).

Read-only: it changes nothing in the game.

Arguments

Name Type Required What
near string   Measure distances from this creature, by id. Default: the creature you control.
radius number   Only those within this many meters of near. Default: the whole area.
tag string   Only those whose tag contains this, in any case.
ints array   Names of local integer variables to read on each trigger, up to 32.

Call it as triggers over MCP, or POST /api/tool/triggers with the arguments as JSON.