Keyword Interface
version 8 by Aaron Reed
Chapter - Beginning Play
Section - Keyword Interface setup rule
pre-game keyword setting is a truth state that varies. pre-game keyword setting is true.
When play begins (this is the Keyword Interface setup trigger rule):
if keywords required is false:
now pre-game keyword setting is false;
continue the action;
clear the screen;
let mychar be 1;
show KI message for welcome-message;
while mychar is not 0:
now mychar is single-character;
if mychar is 82 or mychar is 114: [ r or R: restore ]
restore the game;
if mychar is 75 or mychar is 107: [ k or K: keyword ]
run the keywords routine;
now mychar is 0;
if mychar is 78 or mychar is 110: [ n or N: new game ]
now mychar is 0;
clear the screen;
say "[line break][line break][line break]";
now pre-game keyword setting is false.
To restore the game: (- RESTORE_THE_GAME_R(); -).