Willy's Manor — 7 of 23

Josh Hetzel

Release 1

Chapter 6 - Four Seasons Room Fire Puzzle Code

a lighter is a object. It has the description "A small lighter with plenty of fluid. To use it, say 'burn <object>'."

Understand the commands "burn" and "light" as something new.

Setting A Flame is an action applying to one thing.

Understand "burn [something]" as Setting A Flame.

Understand "light [something]" as Setting A Flame.

Understand "Set [something] on fire" as Setting A Flame.

Understand "Burn down [something]" as Setting A Flame.

Check Setting A Flame something:

if player does not have the lighter, say "You have nothing to light it with[line break]" instead;

Carry out Setting A Flame something:

if noun is the lighter:

say "The lighter is now lit";

now LighterLit is true;

douse lighter in three turns from now;

else if noun is leaf pile:

if remainder after dividing FourSeasonSteps by 4 is 3:

say "The leaves are covered in too much snow to burn";

else:

now LeavesLit is true;

if player is in Four Seasons Northwest:

say "The leaf pile burns slowly, then coughs up a large cloud of smoke. The smoke reaches the hive and puts the bees to sleep";

now BeeSleep is true;

remove leaf pile from play;

else:

say "The leaves are now burning.";

douse leaves in four turns from now;

else if noun is large tree southeast:

say "The lighter is too small to burn down the tree, and your brain is too small to realize that a large tree engulfed in flames would be very dangerous to you.";

else if noun is large tree northwest:

say "The lighter is too small to burn down the tree, and your brain is too small to realize that a large tree engulfed in flames would be very dangerous to you.";

else if noun is lamp:

say "The broken lamp takes well to your lighter. A little too well. You throw it away just in time to have it not blow up in your hand";

now the lamp is nowhere;

else:

say "Your attempt to burn the [noun] doesn't work and concerns your friends and family.";

At the time when douse lighter:

say "The lighter flame has gone out. You'll have to relight it to use it again.";

now LighterLit is false;

At the time when douse leaves:

say "The leaf fire has gone out. It appears you can light them again if needed.";

now LeavesLit is false;

Instead of dropping leaf pile:

if player is in Four Seasons Northwest:

if LeavesLit is true:

say "The leaf pile burns slowly, then coughs up a large cloud of smoke. The smoke reaches the hive and puts the bees to sleep";

now BeeSleep is true;

remove leaf pile from play;

else:

continue the action;

else:

continue the action;

Instead of dropping lighter:

if LighterLit is true:

if player is in Four Seasons Northwest:

if leaf pile is in Four Seasons Northwest:

if remainder after dividing FourSeasonSteps by 4 is not 3:

say "The leaves burn and the smoke from them carries up to the bee hive. The smoke should put them to sleep.";

now BeeSleep is true;

remove leaf pile from play;

else:

say "The leaves are covered in too much snow to burn.";

else:

say "You probably should drop a lit lighter unless you have a reason to burn something";

if LighterLit is false:

continue the action;

a leaf pile is an object. It has the description "[if remainder after dividing FourSeasonSteps by 4 is 1]a pile of green leaves[end if][if remainder after dividing FourSeasonSteps by 4 is 2]a pile of green leaves[end if][if remainder after dividing FourSeasonSteps by 4 is 0]a pile of green leaves[end if][if remainder after dividing FourSeasonSteps by 4 is 3]a pile of leaves covered in snow and ice[end if]". Understand "leaves" as leaf pile.

Instead of hinting about leaf pile, say "The leaves seem dry, but their green hue makes it seem like they'd give off a lot of smoke."

Before taking leaf pile:

now LeavesTaken is true;

continue the action;

Instead of going to Four Seasons Southeast:

increment FourSeasonSteps;

if remainder after dividing FourSeasonSteps by 4 is 2:

if LeavesTaken is false:

now leaf pile is in Four Seasons Southeast;

continue the action;

Before going from Four Seasons Southeast:

if LeavesTaken is false:

now leaf pile is nowhere;

continue the action;

continue the action;