Prev: A88F Up: Map Next: A8B2
A898: Condition: Group Item Equals
Succeeds when the active item in the group operand equals the second operand.
Output
F The zero flag is set when the item matches
Does the active item in this group equal the second operand? CheckActiveScenicEvents returns with the zero flag set, so the early exit is never taken.
Condition_GroupItemEquals A898 PUSH IX The operand selects a group from Table_ItemGrouping.
A89A LD E,(IX+$01)
A89D LD IX,$B60E
A8A1 CALL GetTableEntry That group's list.
A8A4 POP IX Restore the script pointer from the stack.
A8A6 CALL CheckActiveScenicEvents Call CheckActiveScenicEvents.
A8A9 JP NZ,Handler_RunScript_2 The active-item check always continues.
A8AC CP (IX+$02) The active item is the second operand.
A8AF JP Handler_RunScript_2 Resume the script.
Prev: A88F Up: Map Next: A8B2