![]() |
Routines |
| Prev: 52265 | Up: Map | Next: 52314 |
|
Used by the routine at Game_Initialisation.
Clears the script command counter at 52235, then runs FindCharacter.
|
||||||||
| ProcessCharacterAction | 52279 | PUSH AF | Save the character id and clear the script command counter at 52235. | |||||
| 52280 | XOR A | |||||||
| 52281 | LD (52235),A | |||||||
| 52284 | POP AF | Call FindCharacter to find character. | ||||||
| 52285 | CALL FindCharacter | |||||||
| 52288 | CP 255 | Was the character ID found?. | ||||||
| 52290 | LD HL,1 | Take 0001 in HL and jump ahead to NoteDisguiseAndReadTimetable_RecordCharacterScript if FindCharacter did not find the character. | ||||||
| 52293 | JP Z,NoteDisguiseAndReadTimetable_RecordCharacterScript | |||||||
|
The character is active in the timetable.
|
||||||||
| 52296 | LD (40923),IY | Write the characters timetable pointer to *CurrentCharacter_TimetablePointer. | ||||||
| 52300 | LD (41014),A | Write the character ID to *CurrentCharacter_ID. | ||||||
| 52303 | CALL CheckCharacterBeingProcessed | Go to ProcessCharacterAction_0 if this character is not in the display list. | ||||||
| 52306 | LD A,0 | |||||||
| 52308 | JR NZ,ProcessCharacterAction_0 | |||||||
| 52310 | INC A | Count one more. | ||||||
| ProcessCharacterAction_0 | 52311 | LD (52237),A | Store it in the display-list flag at 52237. | |||||
| Prev: 52265 | Up: Map | Next: 52314 |