Prev: B0A3 Up: Map Next: B0C6
B0AC: Initialise Character Timer
Used by the routines at CheckCharacterState and B0A3.
Initialises character timing data by resetting the time ticker, setting the character's timer in the character table to zero, and initialising the character script cycles counter.
InitialiseCharacterTimer B0AC LD HL,$0000 Reset CurrentTime_Ticker to zero.
B0AF LD ($9FDD),HL
B0B2 LD IX,$9860 Point to Table_Timetable.
B0B6 LD (IX+$06),L Set the character's timer to zero.
B0B9 LD (IX+$07),H
B0BC INC HL Write 0001 to *CharacterScriptCycles.
B0BD LD ($A01F),HL
B0C0 LD A,L Write 01 to *A0DA.
B0C1 LD ($A0DA),A
B0C4 AND A Clear the carry flag.
B0C5 RET Return.
Prev: B0A3 Up: Map Next: B0C6