Prev: 53256 Up: Map Next: 53317
53286: Update Script Pointer
Used by the routine at 52625.
Finds the script entry for the current character and stores it in the timetable.
UpdateScriptPointer 53286 LD HL,(40919) Call FindCharacterScriptEntry to find character script entry.
53289 CALL FindCharacterScriptEntry
53292 LD A,(40918) Read the current room, and go to UpdateScriptPointer_Next if FindCharacterScriptEntry found no matching entry.
53295 JR Z,UpdateScriptPointer_Next
53297 LD (IX+3),L Store the script pointer in the timetable entry (+3/+4).
53300 LD (IX+4),H
53303 LD (IX+6),A Store the current room at offset 6.
53306 RET Return.
Store it in the schedule field, then store that byte in the schedule field
UpdateScriptPointer_Next 53307 LD (IY+3),A Store the schedule entry.
53310 LD (IY+4),L
53313 LD (IY+5),H Store the schedule entry.
53316 RET Return.
Prev: 53256 Up: Map Next: 53317