Skip to main content

Direction change targets

ScriptDirectionTarget · signed byte, first operand of Turn the party or flying objects

Scripts · Script instructions

This byte says what the instruction turns: the party, or the moving objects that belong to the current script's block. The next operand gives a signed turn.1

That the second target's records are moving objects is inferred from the comparative source cited below; the code selects records by their active byte and by the block of the current script run. Other values are unknown.

typedef enum ScriptDirectionTarget {
SCRIPT_DIRECTION_PARTY = 0xf1, /* Turn the party. */
SCRIPT_DIRECTION_MOVERS = 0xf5 /* Turn the active moving records of the current script's block. */
} ScriptDirectionTarget;

See script direction changes.

Sources​

Locations refer to the game executable reference.

Footnotes​

  1. Change direction handler; the block of the current run is set by the block event dispatcher. Comparative source: oeob_changeDirection in REF-SCUMM-003. ↩