Prev: A807 Up: Map Next: A817
A80B: 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 A80B LD A,(IX+$01) Fetch the item ID (the operand) from *IX+01 into A.
A80E CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is FF.
A811 CALL ValidateItemPresent Call ValidateItemPresent to test whether that item is present.
A814 JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: A807 Up: Map Next: A817