Prev: 24463 Up: Map Next: 24526
24490: Refuse Command
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 Clear *Continuation.
24491 LD (23429),A
24494 LD A,(23423) Jump to RefuseCommand_Verb if *Verb is unset.
24497 OR A
24498 JR Z,RefuseCommand_Verb
24500 CP 11 Jump to RefuseCommand_Verb if the verb is not a direction.
24502 JR NC,RefuseCommand_Verb
24504 LD A,24 Jump to RefuseCommand_Print with message 24: "you can't go that way".
24506 JR RefuseCommand_Print
A recognised verb that is not a direction, or no verb at all.
RefuseCommand_Verb 24508 LD A,(23423) Jump to RefuseCommand_None if *Verb is unset.
24511 OR A
24512 JR Z,RefuseCommand_None
24514 LD A,12 Message 12: "it's beyond my power to do that".
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 Jump to RefuseCommand_Print with message 32: "I don't understand that verb".
24524 JR RefuseCommand_Print
Prev: 24463 Up: Map Next: 24526