Questions

version 5 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 3 - Rules for menu questions
    Menu question rules is a rulebook.
    The menu question rules have outcomes exit (success), retry (failure) and parse (failure).
    The first menu question rule (this is the invalid menu reply rule):
        if the player's command does not match "[number]":
            if closed question mode is true:
                retry;
            if closed question mode is false:
                parse;
        if the number understood is less than 1:
            retry;
        if the number understood is greater than the number of entries in the current question menu:
            retry.
    The last menu question rule (this is the default menu question rule):
        exit.