version 5 by Michael Callaghan
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:
if closed question mode is false:
if the number understood is less than 1:
if the number understood is greater than the number of entries in the current question menu:
The last menu question rule (this is the default menu question rule):