Conversation Rules

version 7 by Eric Eve

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter: DEFAULT RESPONSES

    We next need a means of having our NPC respond to things we haven't explicitly provided for. Two rules are provided for this, the NPC's unknown quizzing rule and the NPC's unknown informing rule, which by default are set to the no response rule (which in turn simply says that there's no response). To customize this, we need to change these rules to something different; e.g.

        The unknown quizzing rule of Bob is the Bob no quiz rule. The unknown informing rule of Bob is the Bob no inform rule.

        This is the Bob no quiz rule: say "Bob scratches his head and looks puzzled by your question."

        This is the Bob no inform rule: say "Bob listens to what you have to say, but merely grunts in reply."

    Of course, these rules could be more elaborate; we might, for example, want Bob's response to be a random response from a selection of defaults:

        This is the Bob no quiz rule: show the next response from the Table of Bob's Default Quiz Responses.

    Obviously, we'd then need to define this table (again see the List Control documentation).