![]() |
Routines |
| Prev: AB22 | Up: Map | Next: AB4A |
|
Writes the second operand into the turn counter selected by the first operand.
|
||||
|
When the condition succeeded, store the second operand in the turn counter selected by the first.
|
||||
| Action_SetTurnCounter | AB37 | JP NZ,Handler_RunScript_9 | Leave the turn counters alone. | |
| AB3A | LD HL,$A0C9 | The counter selected by the first operand. | ||
| AB3D | LD E,(IX+$01) | |||
| AB40 | LD D,$00 | |||
| AB42 | ADD HL,DE | |||
| AB43 | LD A,(IX+$02) | That counter now holds the second operand. | ||
| AB46 | LD (HL),A | |||
| AB47 | JP Handler_RunScript_9 | Resume the script. | ||
| Prev: AB22 | Up: Map | Next: AB4A |