Prev: CA23 Up: Map Next: CAC4
CAA7: Update Task Four Entities
Used by the routine at GameStart.
Update Task Four Entities for the current Thing Upstairs task.
Runs task-four entity scripts while the task phase is 04.
Update_Task_Four_Entities CAA7 CALL Update_Ghosts Call Update_Ghosts to update Ghosts.
CAAA LD A,($72AF) Load A with the current task phase (CurrentTaskPhase).
CAAD CP $04 Is current task phase equal to 04? If not, return.
CAAF RET NZ
CAB0 LD HL,($72D7) Load HL with the task-four script-position pointer (Pointer_TaskFourScriptPosition).
CAB3 LD ($72CF),HL Store HL in the active script cursor (Pointer_ActiveScriptCursor).
CAB6 LD IX,$8FF3 Point IX at the task-three/four entity at StateData_Complex_19.
CABA CALL Update_TaskFourEntityState Call Update_TaskFourEntityState to update Task Four Entity State.
CABD LD HL,($72CF) Load HL with the active script cursor (Pointer_ActiveScriptCursor).
CAC0 LD ($72D7),HL Store HL in the task-four script-position pointer (Pointer_TaskFourScriptPosition).
CAC3 RET Return.
Prev: CA23 Up: Map Next: CAC4