Prev: 43408 Up: Map Next: 43440
43428: 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 43428 LD A,(IX+1) Fetch the item ID (the operand) from *IX+1 into A.
43431 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is 255.
43434 CALL Handler_CanTakeItem Call Handler_CanTakeItem to test whether that item can be taken.
43437 JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: 43408 Up: Map Next: 43440