Prev: 43031 Up: Map Next: 43058
43046: 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 43046 LD A,(IX+1) Fetch the item ID (the operand) from *IX+1 into A.
43049 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is 255.
43052 CALL CheckObjectInInventory Call CheckObjectInInventory to test whether that item is carried.
43055 JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: 43031 Up: Map Next: 43058