Prev: 48182 Up: Map Next: 48212
48197: Script Routine: (50) Thing Upstairs action
Clear the upstairs event latch once the Thing Upstairs room sequence has finished.
Input
IX Address of complex state data for an entity
ScriptRoutine_ThingUpstairsResetRoom 48197 LD A,(29363) Load A with the game event flags (GameEventFlags).
48200 RES 4,A Clear bit 4 of the flag byte in A.
48202 LD (29363),A Set the game event flags (GameEventFlags).
48205 LD (IX+4),5 Write 5 to the current entity's room index.
48209 JP AdvanceScriptInstruction Jump to AdvanceScriptInstruction to run the next script instruction.
Prev: 48182 Up: Map Next: 48212