Prev: 43046 Up: Map Next: 43073
43058: Condition: Item Is Not Carried
Succeeds when the item operand is not in the inventory.
Output
F The zero flag is set when the item is not carried
IX Pointer to the script entry
Invert the carrying test so the condition succeeds when the item is not held.
Condition_ItemIsNotCarried 43058 LD A,(IX+1) Fetch the item ID (the operand) from *IX+1 into A.
43061 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is 255.
43064 CALL CheckObjectInInventory Call CheckObjectInInventory to test whether that item is carried.
43067 CALL RunScript_InvertConditionResult Call RunScript_InvertConditionResult so the condition succeeds when the item is not held.
43070 JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: 43046 Up: Map Next: 43073