A Christmas Game (Inform Port) — 4 of 15

Luke Jones

Release 2

Section 3 - Your Garden

North of Your Lounge is Your Garden

Your Garden is a room. "It's your garden, a modest patch of land where you grow a few things, but there's not much growing this time of year except a few root veg. The ground is soft under foot. At the end of the garden is a rather rickety looking shed."

Instead of smelling Your Garden:

Say "You can smell the cold fresh air, undercut with an earthy tang."

Instead of listening to Your Garden:

Say "You can just make out the sound of carol singers in the distance."

The shed is an opaque container.

The shed is closed.

The shed is openable.

The shed is inside Your Garden.

The description of shed is "A bit rickety and could do with a lick of paint."

The toolbox is an opaque locked container.

The toolbox is inside the shed.

The description of the toolbox is "[toolbox_description]".

To say toolbox_description:

if the toolbox is unlocked:

say "Your toolbox. Hurray! The damn thing is finally unlocked!";

otherwise:

say "Your toolbox, which contains useful things, unfortunately you lost the key ages ago.".

The nail unlocks the toolbox.

The nail is a thing.

The oilcan is inside the toolbox.

Description of oilcan is "A bright red hand sized oil can, with a nozzle and thumb pump on the handle."

Picking it with is an action applying to two things. understand "pick [something] with [something]" as picking it with.

Instead of picking the toolbox with the nail:

say "After a bit of struggle the lock pops open.";

now the toolbox is unlocked; now the nail is nowhere.

Understand "lock" as toolbox.

Understand "arm" and "chair" as armchair.

The spade is a thing.

The spade is inside the shed.

Description of spade is "It's an excellent spade, in fact you might say it was the ace of spades."

A hole is a transparent container.

A hole is nowhere.

Description of hole is "A small muddy hole."

Instead of taking hole: say "That would be a neat trick!"

A carrot is a thing.

The description of carrot is "A fine specimen of a carrot, maybe you'll leave it out next to a mince pie tonight. "

Instead of eating carrot: say "You hate raw veg and decide not to eat it."

The carrot is inside the hole.

Digging is an action applying to one visible thing.

Understand "dig [any thing]" as digging.

Understand "dig", "dig ground" and "dig with spade" as digging.

For supplying a missing noun when digging: now the noun is the hole.

Instead of digging something: say "That can't be dug." instead.

Instead of digging the hole when the player does not carry the spade: say "You need something to dig with!"

Instead of digging the hole when the location is not the Garden: say "You can't dig a hole here."

Instead of digging the hole when the location is the Garden and the hole is in the garden: say "You've already dug a hole."

Instead of digging the hole when the location is the Garden and the hole is nowhere:

say "You dig a hole.";

now the hole is in Your Garden.