Questions

version 5 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next



  • Section: Rules for menu questions
    We test the answer to menu questions using the phrase 'the number understood'. The value should be between 1 and the number of items in the menu.
    There are two default rules for processing answers to menu questions.
    The first rule, called the 'invalid menu reply rule' first tests whether the player has entered a number. If the player has entered an answer that is not a number, the outcome is retry if the question was a closed menu question or parse if the question was an open menu question. If a numbered was entered that falls outside the range 1 to the number of items in the menu, the outcome is retry for both open and closed menu questions.
    The last rule, called the 'default menu rule', has the outcome exit.