Skip to main content

Load instruction targets

ScriptLoadTarget · 1 byte, first operand of Change level or load monster resources

Script instructions · Virtual machine

This byte decides whether the instruction loads a new level or monster resources. One value loads a level and ends the current script run; every other byte takes the monster-resource branch, which replaces the images of one monster graphics bank. The byte is not used beyond that choice, so all the other values behave alike.1

typedef enum ScriptLoadTarget {
SCRIPT_LOAD_LEVEL = 0xe5 /* Load a level and stop the current script run. */
} ScriptLoadTarget;

Sources​

Locations refer to the game executable reference.

Footnotes​

  1. Load instruction handler. Comparative source: oeob_loadNewLevelOrMonsters in REF-SCUMM-003. ↩