Prev: 45228 Up: Map Next: 45271
45254: Start A Fresh Script Cycle
Starts a fresh script cycle and returns to the command state. Reached through the standard command table at Table_CommandHandlerLookup_Standard, dispatched by 45024.
StartFreshScriptCycle 45254 CALL CheckBitAndJump Call CheckBitAndJump to test the flag bit.
45257 LD HL,1 Write 0001 to *CharacterScriptCycles.
45260 LD (40991),HL
45263 LD A,2 Write 2 to the startup flag at 41178 and jump back to RecordInputFlag_UseGameState.
45265 LD (41178),A
45268 JP RecordInputFlag_UseGameState
Prev: 45228 Up: Map Next: 45271