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
Print "you can't go that way.".
24504 LD A,24 Print SystemMessage_18 using PrintSystemMessage.
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
Print "it's beyond my power to do that.".
24514 LD A,12 Print SystemMessage_0C using PrintSystemMessage.
Print the chosen refusal.
RefuseCommand_Print 24516 CALL PrintSystemMessage Call PrintSystemMessage.
24519 JP GameLoop_Act Jump to GameLoop_Act.
Print "I don't understand that verb".
RefuseCommand_None 24522 LD A,32 Print SystemMessage_20 using PrintSystemMessage.
24524 JR RefuseCommand_Print
Prev: 24463 Up: Map Next: 24526