Skip to main content

Move instruction targets

ScriptMoveTarget · signed byte, first operand of Move the party, monsters or items

Script instructions · Virtual machine

This byte says what the instruction moves: the party, the monsters of a block, or the items of a block. A byte that is none of these values takes a default path after the handler has read two words.1

What the default path is meant for is unknown.

typedef enum ScriptMoveTarget {
SCRIPT_MOVE_ITEMS_FILTERED = 0xe1, /* Move the items of one ItemType from a block. */
SCRIPT_MOVE_PARTY = 0xe8, /* Move the party to a block, raising the party leave and enter events. */
SCRIPT_MOVE_MONSTERS = 0xf3, /* Move every monster slot of a block. */
SCRIPT_MOVE_ITEMS = 0xf5 /* Move all items of a block. */
} ScriptMoveTarget;

The instruction page describes each branch: moving the party, moving monsters and moving items. The item branches mark each level operand with a level marker; the filtered branch uses an ItemType.

Sources​

Locations refer to the game executable reference.

Footnotes​

  1. Move the party or objects handler. Comparative source: oeob_movePartyOrObject (script/script_eob.cpp, lines 359–470) in REF-SCUMM-012. ↩