Part 0 - Tutorial
Use scoring.
The maximum score is 20.
howto is a kind of thing. a howto can be taught or untaught. a howto is usually untaught.
looking-how is a howto.
moving-how is a howto.
examine-how is a howto.
getting-how is a howto.
inventory-how is a howto.
bitting-how is a howto.
giving-how is a howto.
recapping-how is a howto.
Tutorial is a scene. Tutorial begins when play begins. Tutorial ends when the score is 1.
[When play begins:
say "Have you played interactive fiction before? >";
now tutorial mode is whether or not the player consents.]
tutorial mode is a truth state that varies. tutorial mode is true.
Stopping tutorial mode is an action out of world.
Starting tutorial mode is an action out of world.
Understand "tutorial mode off" or "tutorial off" as stopping tutorial mode.
Understand "tutorial mode on" or "tutorial on" as starting tutorial mode.
Carry out stopping tutorial mode: now tutorial mode is false.
Carry out starting tutorial mode: now tutorial mode is true.
Report stopping tutorial mode: say "Tutorial off."
Report starting tutorial mode: say "Tutorial on."
After printing the locale description when the player is in Entrance:
if tutorial mode is true:
if looking-how is untaught:
say "[i]HOW TO PLAY: For the first phase of this game, there's going to be instructions (like this) in italics to teach you what commands you can use. If you don't want these instructions type TUTORIAL OFF.[para]First command: type LOOK to re-print the description of your current location[/i].";
now looking-how is taught;
else if moving-how is untaught:
say "[i]Great! You LOOKed. Now, you can move to a different room by typing compass directions: N S E W U or D for north, south, east, west, up or down. The possible directions from your current location are listed in the upper right-hand corner (after the word EXITS). For now, try typing D for down.[/i].";
now moving-how is taught.
After printing the locale description when the player is in Lobby for the first time:
if the player is not holding the sword and the sword is in the Lobby and tutorial mode is true:
say "[i]Excellent! You moved to a new room, The Lobby. There are about 30 locations in this game. You might want to make a map.[paragraph break]Now: See that sword? Try examining it by typing X SWORD. X stands for 'examine'[/i].";
now examine-how is taught;
else:
continue the action.
After examining the sword for the first time:
if tutorial mode is true:
say "[i]You examined it! Hey, you're doing great! Examining things gives you more info about them.[paragraph break]Now, the sword is a gift, which is why it's printed in boldfaced type. That means you'll need to give it to a teacher later. So pick it up. Type GET SWORD and press enter[/i].";
now getting-how is taught;
else:
continue the action.
After taking the sword for the first time:
if tutorial mode is true:
say "[i]You took the sword! Now type I -- that's the letter i, which stands for 'inventory' -- to check what you're carrying[/i].";
now inventory-how is taught;
else:
continue the action.
After lessoning for the first time:
if the player is in the lobby and The Bar is unvisited and tutorial mode is true:
say "[i]So now you see what you are carrying. Checking inventory also tells you what improv lessons you know. [paragraph break]The teacher who wants that sword is west of here. Try going west by typing W[/i].";
else:
continue the action.
After printing the locale description when Billy is in the Bar and the player is in the Bar for the first time:
if tutorial mode is true:
say "[i]You've almost learned everything. Hang in there.[paragraph break]You've moved to a place called The Bar, and there is someone named Billy Merritt here. He's a teacher, which is why his name is printed in boldfaced type. That means you have to give him a gift.[paragraph break]Two ways to figure out what gift teachers want --- one is to examine them (X BILLY). The other way is to DO BITS WITH them. 'Doing bits' means joking, and it's the way improv people communicate. Try typing DO BITS WITH BILLY and pressing enter[/i].";
now bitting-how is taught;
else:
continue the action.
After bitting Billy the first time:
if tutorial mode is true:
say "[i]Ok, so Billy could use a ninja sword. You can also tell he wants it because he is described as 'eyeing' it when you carry it into this room. Try typing GIVE SWORD TO BILLY[/i].";
now giving-how is taught;
else:
continue the action.
When Tutorial ends:
if tutorial mode is true and YesAnding is known:
say "[i]You did it! You gave Billy (teacher) the gift he wanted (sword). And he taught you a lesson as your reward. There are 8 lessons total. Start exploring rooms to find gifts and teachers.[paragraph break]Two other commands: type RECAP for a summary of what we just learned. And if you type HINT, you'll get a hint of what to do next. GOOD LUCK[/i]!";
now recapping-how is taught;
now tutorial mode is false;
continue the action.
Last error is indexed text that varies. The last error is "get sword".
Before printing a parser error:
now the last error is the player's command.