![]() |
Routines |
| Prev: D008 | Up: Map | Next: D045 |
|
Used by the routine at CD91.
Finds the script entry for the current character and stores it in the timetable.
|
||||
| UpdateScriptPointer | D026 | LD HL,($9FD7) | Call FindCharacterScriptEntry to find character script entry. | |
| D029 | CALL FindCharacterScriptEntry | |||
| D02C | LD A,($9FD6) | Read the current room, and go to UpdateScriptPointer_Next if FindCharacterScriptEntry found no matching entry. | ||
| D02F | JR Z,UpdateScriptPointer_Next | |||
| D031 | LD (IX+$03),L | Store the script pointer in the timetable entry (+03/+04). | ||
| D034 | LD (IX+$04),H | |||
| D037 | LD (IX+$06),A | Store the current room at offset 06. | ||
| D03A | RET | Return. | ||
|
Store it in the schedule field, then store that byte in the schedule field
|
||||
| UpdateScriptPointer_Next | D03B | LD (IY+$03),A | Store the schedule entry. | |
| D03E | LD (IY+$04),L | |||
| D041 | LD (IY+$05),H | Store the schedule entry. | ||
| D044 | RET | Return. | ||
| Prev: D008 | Up: Map | Next: D045 |