Skip to main content

Item creation destinations

ScriptItemDestination · 16-bit little-endian word, destination operand of Create an item

Scripts · Virtual machine

The destination of a created item is normally a block index. Two special values place it in the party's hand or at the party's feet instead.1

The valid range of block and position values is not established.

typedef enum ScriptItemDestination {
SCRIPT_ITEM_DESTINATION_HELD_OR_CURRENT = 0xffff, /* Put the item in hand if possible, otherwise in the party's block. */
SCRIPT_ITEM_DESTINATION_CURRENT_BLOCK = 0xfffe /* Put the item in the party's block. */
} ScriptItemDestination;

Sources​

Locations refer to the game executable reference.

Footnotes​

  1. Create an item handler. Comparative source: oeob_createItem_v2 in REF-SCUMM-003. ↩