Prev: 43019 Up: Map Next: 43046
43031: Condition: Item Is Absent
Succeeds when the item operand is not in the current room or the inventory.
Output
F The zero flag is set when the item is absent
IX Pointer to the script entry
Invert the presence test so the condition succeeds when the item is absent.
Condition_ItemIsAbsent 43031 LD A,(IX+1) Fetch the item ID (the operand) from *IX+1 into A.
43034 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is 255.
43037 CALL ValidateItemPresent Call ValidateItemPresent to test whether that item is present.
43040 CALL RunScript_InvertConditionResult Call RunScript_InvertConditionResult so the condition succeeds when the item is absent.
43043 JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: 43019 Up: Map Next: 43046