Prev: AB37 Up: Map Next: AB5E
AB4A: Action: Start Turn Event
Sets the bit operand in Flags_TurnEvents, which arms that turn-based event.
When the condition succeeded, arm the turn-based event selected by the operand.
Action_StartTurnEvent AB4A JP NZ,Handler_RunScript_10 Leave that turn-based event disarmed.
AB4D LD B,(IX+$01) The operand selects which event.
AB50 INC B
AB51 XOR A
AB52 SCF
StartTurnEvent_Mask AB53 RLA Build the mask for that event.
AB54 DJNZ StartTurnEvent_Mask
AB56 LD HL,$A0C8 That turn-based event is now armed.
AB59 OR (HL)
AB5A LD (HL),A
AB5B JP Handler_RunScript_10 Resume the script.
Prev: AB37 Up: Map Next: AB5E