Skip to main content

Assignment targets

ScriptSetTarget · signed byte, first operand of Set walls or a direction

Scripts · Script instructions

This byte says what the instruction assigns: the walls of a block, a single side of a block, or the party's facing.1 SCRIPT_SET_DIRECTION sets the party's facing, a Direction from 0 to 3; any signed byte is stored as it is.

typedef enum ScriptSetTarget {
SCRIPT_SET_BLOCK_WALLS = 0xf7, /* Assign one wall reference to all four sides of a block. */
SCRIPT_SET_BLOCK_SIDE = 0xe9, /* Assign a wall reference to one indexed side of a block. */
SCRIPT_SET_DIRECTION = 0xed /* Set the party's facing. */
} ScriptSetTarget;

The wall operands and their effect are described in scripted wall assignment.

Sources​

Locations refer to the game executable reference.

Footnotes​

  1. Set a value handler. ↩