Prev: 43015 Up: Map Next: 43031
43019: Condition: Item Is Present
Succeeds when the item operand is in the current room or the inventory.
Output
F The zero flag is set when the item is present
IX Pointer to the script entry
Is the item in the current room or the inventory?
Condition_ItemIsPresent 43019 LD A,(IX+1) Fetch the item ID (the operand) from *IX+1 into A.
43022 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is 255.
43025 CALL ValidateItemPresent Call ValidateItemPresent to test whether that item is present.
43028 JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: 43015 Up: Map Next: 43031