Skip to main content

Toggle targets

ScriptToggleTarget · signed byte, first operand of Toggle walls or a door

Scripts · Script instructions

This byte says what the instruction switches between two states: the walls of a block, one side of a block, or a door. These values are specific to this instruction, even where the same byte has another meaning elsewhere.1

Other values are unknown.

typedef enum ScriptToggleTarget {
SCRIPT_TOGGLE_BLOCK_WALLS = 0xf7, /* Compare the first side, then set all four sides. */
SCRIPT_TOGGLE_BLOCK_SIDE = 0xe9, /* Compare and set one indexed side. */
SCRIPT_TOGGLE_DOOR = 0xea /* Request the opposite door operation. */
} ScriptToggleTarget;

The wall operands and comparison are described in scripted wall toggling, and the door branch in scripted doors.

Sources​

Locations refer to the game executable reference.

Footnotes​

  1. Toggle a value handler. ↩