Character selector for item transfers
ScriptCharacterSelector · signed byte, operand of
Move an inventory item to a block
This operand chooses the party member whose inventory the instruction takes an item from. The special value starts at a random slot; the handler then searches forward for a slot whose character state byte is nonzero. Any other value is used directly as the starting slot.1
Valid slot values and the behavior for malformed values are not established. This meaning is specific to this instruction.
typedef enum ScriptCharacterSelector {
SCRIPT_CHARACTER_RANDOM_START = -1 /* Byte 0xff: start the search at a random slot. */
} ScriptCharacterSelector;
Sources
Locations refer to the game executable reference.