![]() |
Routines |
| Prev: 52265 | Up: Map | Next: 52344 |
|
Used by the routine at GameEntryPoint.
|
||||||||
| ProcessCharacterAction | 52279 | PUSH AF | Stash the character ID on the stack briefly. | |||||
| 52280 | XOR A | Write 0 to *52235. | ||||||
| 52281 | LD (52235),A | |||||||
| 52284 | POP AF | Restore the character ID from the stack. | ||||||
| 52285 | CALL FindCharacter | Call FindCharacter. | ||||||
| 52288 | CP 255 | Was the character ID found? | ||||||
| 52290 | LD HL,1 | HL=0001. | ||||||
| 52293 | JP Z,ProcessCharacterAction_3 | Jump to ProcessCharacterAction_3 if the character ID wasn't found, and the termination character was returned instead. | ||||||
|
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 CheckObjectInA036 | Call CheckObjectInA036. | ||||||
| 52306 | LD A,0 | A=0. | ||||||
| 52308 | JR NZ,ProcessCharacterAction_0 | Jump to ProcessCharacterAction_0 if A is not equal to 0. | ||||||
| 52310 | INC A | Increment A by one. | ||||||
| ProcessCharacterAction_0 | 52311 | LD (52237),A | Write A to *52237. | |||||
|
This entry point is used by the routine at ScriptInterpreter.
|
||||||||
| ProcessCharacterAction_1 | 52314 | CALL SetCharacterPointerAndID | Call SetCharacterPointerAndID. | |||||
| 52317 | CALL IsSherlockTheChinaMan | Call IsSherlockTheChinaMan. | ||||||
| 52320 | SUB A | A-=A. | ||||||
| 52321 | LD (23612),A | Write A to *TV-FLAG. | ||||||
| 52324 | LD A,(39008) | A=*Table_Timetable. | ||||||
| 52327 | CALL CheckObjectLocationMatch | Call CheckObjectLocationMatch. | ||||||
| 52330 | JR Z,ProcessCharacterAction_2 | Jump to ProcessCharacterAction_2 if A is equal to 0. | ||||||
| 52332 | LD A,1 | Write 1 to *TV-FLAG. | ||||||
| 52334 | LD (23612),A | |||||||
| ProcessCharacterAction_2 | 52337 | LD HL,0 | HL=0000. | |||||
| ProcessCharacterAction_3 | 52340 | LD (40991),HL | Write HL to *CharacterScriptCycles. | |||||
| 52343 | RET | Return. | ||||||
| Prev: 52265 | Up: Map | Next: 52344 |