Prev: A856 Up: Map Next: A871
A862: Condition: Item Location Equals
Succeeds when the item operand is in the room given by the second operand.
Output
F The zero flag is set when the location matches
IX Pointer to the script entry
Is the item in the room given by the second operand?
Condition_ItemLocationEquals A862 LD A,(IX+$01) Fetch the item ID (the operand) from *IX+01 into A.
A865 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is FF.
A868 CALL ItemLocator Call ItemLocator to read that item's room into A.
A86B CP (IX+$02) Set the zero flag when it equals the room operand.
A86E JP RunScript_SkipCondition_ThreeBytes Jump to RunScript_SkipCondition_ThreeBytes.
Prev: A856 Up: Map Next: A871