Prev: A990 Up: Map Next: A9B0
A9A4: Condition: Can Take Item
Succeeds when Handler_CanTakeItem allows the item operand to be taken.
Output
F The zero flag is set when the item can be taken
IX Pointer to the script entry
Can the player take the item operand?
Condition_CanTakeItem A9A4 LD A,(IX+$01) Fetch the item ID (the operand) from *IX+01 into A.
A9A7 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is FF.
A9AA CALL Handler_CanTakeItem Call Handler_CanTakeItem to test whether that item can be taken.
A9AD JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: A990 Up: Map Next: A9B0