![]() |
Routines |
| Prev: A898 | Up: Map | Next: A8CF |
|
Succeeds when the active item in the group operand is not the second operand.
Stores the active item ID at ScriptMatchedItem.
|
||||||||
|
Remember the group's active item at ScriptMatchedItem, and succeed when it is not the second operand.
|
||||||||
| Condition_GroupItemDiffers | A8B2 | PUSH IX | The operand selects a group from Table_ItemGrouping. | |||||
| A8B4 | LD E,(IX+$01) | |||||||
| A8B7 | LD IX,$B60E | |||||||
| A8BB | CALL GetTableEntry | That group's list. | ||||||
| A8BE | POP IX | Restore the script pointer from the stack. | ||||||
| A8C0 | CALL CheckActiveScenicEvents | Call CheckActiveScenicEvents. | ||||||
| A8C3 | LD ($A805),A | Remember the active item at ScriptMatchedItem. | ||||||
| A8C6 | CP (IX+$02) | It is not the second operand. | ||||||
| A8C9 | CALL Handler_RunScript_13 | The condition succeeds when the items differ. | ||||||
| A8CC | JP Handler_RunScript_2 | Resume the script. | ||||||
| Prev: A898 | Up: Map | Next: A8CF |