Prev: A9A4 Up: Map Next: A9BF
A9B0: Condition: Cannot Take Item
Succeeds when Handler_CanTakeItem rejects the item operand.
Output
F The zero flag is set when the item cannot be taken
IX Pointer to the script entry
Invert the take test so the condition succeeds when the item cannot be taken.
Condition_CannotTakeItem A9B0 LD A,(IX+$01) Fetch the item ID (the operand) from *IX+01 into A.
A9B3 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is FF.
A9B6 CALL Handler_CanTakeItem Call Handler_CanTakeItem to test whether that item can be taken.
A9B9 CALL RunScript_InvertConditionResult Call RunScript_InvertConditionResult so the condition succeeds when the item cannot be taken.
A9BC JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: A9A4 Up: Map Next: A9BF