Prev: 43428 Up: Map Next: 43455
43440: 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 43440 LD A,(IX+1) Fetch the item ID (the operand) from *IX+1 into A.
43443 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is 255.
43446 CALL Handler_CanTakeItem Call Handler_CanTakeItem to test whether that item can be taken.
43449 CALL RunScript_InvertConditionResult Call RunScript_InvertConditionResult so the condition succeeds when the item cannot be taken.
43452 JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: 43428 Up: Map Next: 43455