Willy's Manor — 5 of 23

Josh Hetzel

Release 1

Chapter 4 - Puzzle Room Structure

PlayerLevel is a number that varies. PlayerLevel is initially 0.

LevelComplete is a truth state that varies. LevelComplete is initially true.

Instead of taking red button, say "I don't think it would be helpful to pry it off the wall."

Instead of taking lever, say "I don't think it would be helpful to pry it off the wall."

Instead of taking slot, say "I don't think it would be helpful to pry it off the wall."

Instead of pushing red button:

if LevelComplete is true:

increment PlayerLevel;

now LevelComplete is false;

say "A clue slides out of the slit in the wall.[line break] ";

if PlayerLevel is 1:

move Clue One to Puzzle Room;

else if PlayerLevel is 2:

move Clue Two to Puzzle Room;

else if PlayerLevel is 3:

move Clue Three to Puzzle Room;

else if PlayerLevel is 4:

move Clue Four to Puzzle Room;

else if PlayerLevel is 5:

move Clue Five to Puzzle Room;

else if PlayerLevel is 6:

move Clue Six to Puzzle Room;

else if PlayerLevel is 7:

move Clue Seven to Puzzle Room;

else if PlayerLevel is 8:

move Clue Eight to Puzzle Room;

else if PlayerLevel is 9:

move Clue Nine to Puzzle Room;

say "You hear an electonic buzzing as a panel on the north side of the room lifts to reveal an entry to a large pool.";

change the north exit of Puzzle Room to Infinity Pool;

change the south exit of Infinity Pool to Puzzle Room;

else if LevelComplete is false:

say "Complete current clue first";

Instead of pulling lever:

if PlayerLevel is 0:

say "You can't use this until you start the game by getting a clue.";

if PlayerLevel is 1:

if kitchen towel is in large box:

say "You hear a small fanfare and the towel is swallowed by the box. An iron key appears in the box.";

now kitchen towel is nowhere;

now LevelComplete is true;

move iron key to large box;

else:

say "You hear a buzzer. By the sound of it, your solution to the clue was incorrect.";

else if PlayerLevel is 2:

if ants is in large box:

say "You hear a small fanfare and the ants are swallowed by the box. A strange shaped key appears in the box";

now ants is nowhere;

now LevelComplete is true;

move Peter key to large box;

else:

say "You hear a buzzer. By the sound of it, your solution to the clue was incorrect.";

else if PlayerLevel is 3:

if gold pan is in large box:

say "You hear a small fanfare and the pan is swallowed by the box. A leaf shaped key appears in the box";

now gold pan is nowhere;

now LevelComplete is true;

move leaf key to large box;

else:

say "You hear a buzzer. By the sound of it, your solution to the clue was incorrect.";

else if PlayerLevel is 4:

if trunk is in the large box:

say "You hear a small fanfare and the trunk is swallowed by the box. A lighter appears in the box";

now the trunk is nowhere;

now LevelComplete is true;

move lighter to large box;

else:

say "You hear a buzzer. By the sound of it, your solution to the clue was incorrect.";

else if PlayerLevel is 5:

if honeycomb is in large box:

say "You hear a small fanfare and the honeycomb is swallowed by the box.";

now honeycomb is nowhere;

now LevelComplete is true;

else:

say "You hear a buzzer. By the sound of it, your solution to the clue was incorrect.";

else if PlayerLevel is 6:

if nothing is in large box:

say "You hear a small fanfare. The box continues to be empty.";

now LevelComplete is true;

else:

say "You hear a buzzer. By the sound of it, your solution to the clue was incorrect.";

else if PlayerLevel is 7:

if walking photo is in large box:

say "You hear a small fanfare and the photo is swallowed by the box.";

now walking photo is nowhere;

now LevelComplete is true;

else:

say "You hear a buzzer. By the sound of it, your solution to the clue was incorrect.";

else if PlayerLevel is 8:

if red book is in large box:

say "You hear a small fanfare and the book is swallowed by the box.";

now the red book is nowhere;

now LevelComplete is true;

else:

say "You hear a buzzer. By the sound of it, your solution to the clue was incorrect.";