Prev: 697D Up: Map Next: 69A1
6992: Parser: Match Or Rephrase
Used by the routines at ActionLeave and ActionLand.
Return when the next token is absent or the phrase matches. Otherwise print "Please rephrase that.".
Parser_MatchOrRephrase 6992 LD A,($6292) Fetch the second word of the command.
6995 CP $FF Return if the command has no second word (FF).
6997 RET Z
6998 CALL Parser_FindPhrase Call Parser_FindPhrase to look for a noun.
699B RET NZ Return when the command names a noun.
699C CALL ResponsePleaseRephraseThat Call ResponsePleaseRephraseThat to ask the player to rephrase the command.
699F SCF Set the carry flag to reject the command.
69A0 RET Return.
Prev: 697D Up: Map Next: 69A1