Prev: 51747 Up: Map Next: 51908
51879: 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 4.
Update_Task_Four_Entities 51879 CALL Update_Ghosts Call Update_Ghosts to update Ghosts.
51882 LD A,(29359) Load A with the current task phase (CurrentTaskPhase).
51885 CP 4 Is current task phase equal to 4? If not, return.
51887 RET NZ
51888 LD HL,(29399) Load HL with the task-four script-position pointer (Pointer_TaskFourScriptPosition).
51891 LD (29391),HL Store HL in the active script cursor (Pointer_ActiveScriptCursor).
51894 LD IX,36851 Point IX at the task-three/four entity at StateData_Complex_19.
51898 CALL Update_TaskFourEntityState Call Update_TaskFourEntityState to update Task Four Entity State.
51901 LD HL,(29391) Load HL with the active script cursor (Pointer_ActiveScriptCursor).
51904 LD (29399),HL Store HL in the task-four script-position pointer (Pointer_TaskFourScriptPosition).
51907 RET Return.
Prev: 51747 Up: Map Next: 51908