Prev: 50040 Up: Map Next: 50135
50098: Update Task Three Entity State
Used by the routine at Update_Task_Three_Entities.
Update Task Three Entity State for the current Thing Upstairs task.
Update_Task_Three_Entity_State 50098 LD IX,37033 Point IX at the inactive complex slot (StateData_Complex_32).
50102 LD A,(29363) Load A with the game event flags (GameEventFlags).
50105 LD C,A Keep game event flags in C for later.
50106 BIT 7,C Is bit 7 of the saved game-event flags in C set? If so, jump to AdvanceScriptInstruction.
50108 JP NZ,AdvanceScriptInstruction
50111 LD A,(IX+0) Fetch the current entity's type for the type test.
50114 OR A Is the current entity's entity type zero? If so, jump to Update_Task_Three_Entity_State_MarkHelper.
50115 JR Z,Update_Task_Three_Entity_State_MarkHelper
50117 BIT 1,C Is bit 1 of the saved game-event flags in C set? If so, jump to AdvanceScriptInstruction.
50119 JP NZ,AdvanceScriptInstruction
50122 JP Update_Cauldron Jump to Update_Cauldron.
Trap open and slot empty: mark the task-three entity type 32 and continue its script.
Update_Task_Three_Entity_State_MarkHelper 50125 BIT 1,C Is bit 1 of the saved game-event flags in C set? If not, return.
50127 RET Z
50128 LD (IX+0),32 Write 32 to the current entity's entity type.
50132 JP AdvanceScriptInstruction Jump to AdvanceScriptInstruction to run the next script instruction.
Prev: 50040 Up: Map Next: 50135