Prev: BC36 Up: Map Next: BC54
BC45: Script Routine: (32) 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 BC45 LD A,($72B3) Load A with the game event flags (GameEventFlags).
BC48 RES 4,A Clear bit 04 of the flag byte in A.
BC4A LD ($72B3),A Set the game event flags (GameEventFlags).
BC4D LD (IX+$04),$05 Write 05 to the current entity's room index.
BC51 JP AdvanceScriptInstruction Jump to AdvanceScriptInstruction to run the next script instruction.
Prev: BC36 Up: Map Next: BC54