Prev: A832 Up: Map Next: A84D
A841: Condition: Item Is Here
Succeeds when the item operand is in the current room.
Output
F The zero flag is set when the item is here
IX Pointer to the script entry
Is the item in the current room?
Condition_ItemIsHere A841 LD A,(IX+$01) Fetch the item ID (the operand) from *IX+01 into A.
A844 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is FF.
A847 CALL CheckItemInCurrentRoom Call CheckItemInCurrentRoom to test whether that item is in the current room.
A84A JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: A832 Up: Map Next: A84D