Prev: A80B Up: Map Next: A826
A817: 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 A817 LD A,(IX+$01) Fetch the item ID (the operand) from *IX+01 into A.
A81A CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is FF.
A81D CALL ValidateItemPresent Call ValidateItemPresent to test whether that item is present.
A820 CALL RunScript_InvertConditionResult Call RunScript_InvertConditionResult so the condition succeeds when the item is absent.
A823 JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: A80B Up: Map Next: A826