![]() |
Routines |
| Prev: 24463 | Up: Map | Next: 24526 |
|
Used by the routine at ObeyCommand.
The scripts did not handle the command. A direction says you cannot go that way, any other verb is beyond the game, and a blank verb produces the longer refusal.
|
||||
| RefuseCommand | 24490 | XOR A | Drop any comma continuation. | |
| 24491 | LD (23429),A | |||
| 24494 | LD A,(23423) | A blank verb is not a direction. | ||
| 24497 | OR A | |||
| 24498 | JR Z,RefuseCommand_Verb | |||
| 24500 | CP 11 | Verbs 1 to 10 are the directions that use message 24. | ||
| 24502 | JR NC,RefuseCommand_Verb | |||
| 24504 | LD A,24 | |||
| 24506 | JR RefuseCommand_Print | |||
| RefuseCommand_Verb | 24508 | LD A,(23423) | Some other verb selects message 12: it's beyond my power to do that. | |
| 24511 | OR A | |||
| 24512 | JR Z,RefuseCommand_None | |||
| 24514 | LD A,12 | |||
| RefuseCommand_Print | 24516 | CALL PrintSystemMessage | Call PrintSystemMessage to print the chosen refusal. | |
| 24519 | JP GameLoop_Act | Jump to GameLoop_Act for another turn. | ||
| RefuseCommand_None | 24522 | LD A,32 | Message 32: I don't understand that verb. | |
| 24524 | JR RefuseCommand_Print | |||
| Prev: 24463 | Up: Map | Next: 24526 |