Grouped Messages As Dialogue
version 1 by Ron Newcomb
Section 4 - How an NPC Causes A Parser Error, on Purpose
The verb word is some text that varies.
A thing can be relevant or irrelevant. A thing is usually irrelevant.
Understand the relevant property as describing a thing.
A respond phase is a kind of value. The respond phases are normal, changing phase, ready for answer, and answered. Answering the NPC is a respond phase that varies. Answering the NPC is usually normal.
[ this rule will skip asking the player to type in his next command, instead re-supplying his previous command in a way to specifically cause the Which Did You Mean activity ]
Rule for reading a command while answering the NPC is changing phase: [ INSTEAD OF ACTUALLY READING A COMMAND, DO THIS: ]
change the text of the player's command to "[run paragraph on][verb word] relevant ";
Before reading a command while answering the NPC is ready for answer: [ ]
change answering the NPC to answered.
Before reading a command while answering the NPC is answered:
change answering the NPC to normal.