Prev: A817 Up: Map Next: A832
A826: Condition: Item Is Carried
Succeeds when the item operand is in the inventory.
Output
F The zero flag is set when the item is carried
IX Pointer to the script entry
Is the item in the inventory?
Condition_ItemIsCarried A826 LD A,(IX+$01) Fetch the item ID (the operand) from *IX+01 into A.
A829 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is FF.
A82C CALL CheckObjectInInventory Call CheckObjectInInventory to test whether that item is carried.
A82F JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: A817 Up: Map Next: A832