A Christmas Game (Inform Port) — 12 of 15

Luke Jones

Release 2

Section 11 - The Stable and Reindeer (and Dung Cup rules)

The Stable is a room.

Description of The Stable is "There is clean straw on the floor, a food trough and behind that stands a Reindeer. The Reindeer snorts gently as you enter. "

Instead of smelling The Stable:

Say "You can smell the sweet musky odour of the Reindeer, and a background sweet tang of fresh straw."

Inside the stable is a Reindeer.

The Reindeer is a animal.

Understand "rudolph" as Reindeer.

The description of Reindeer is "[reindeer_description]".

To say reindeer_description:

If hoof contains nail:

Say "It's a reindeer, thick soft mottled brown fur, furry antlers, and yes of course a bright red nose. He seems friendly and wanders over for you to stroke him, you notice that he is limping slightly.";

Otherwise:

Say "It's a reindeer, thick soft mottled brown fur, furry antlers, and yes of course a bright red nose. He seems friendly and wanders over for you to stroke him."

Instead of talking to Reindeer:

Say "It looks at you quizically, and snorts gently in response."

Stroking is an action applying to one visible thing.

Understand "stroke [anything]" as stroking.

Instead of stroking Reindeer:

Say "You stroke the Reindeer, it nuzzles against you in a ridiculously endearing manner."

Instead of stroking anything:

Say "That's probably not appropriate here."

Petting is an action applying to one visible thing.

Understand "pet [anything]" as petting.

Instead of petting Reindeer:

Say "You pet the Reindeer, it nuzzles against you in a ridiculously endearing manner."

Instead of petting anything:

Say "That's probably not appropriate here."

Fondling is an action applying to one visible thing.

Understand "fondle [anything]" as fondling.

Instead of fondling KFC:

Say "'Leave my fucking KFC alone you twat!' exclaims the pigeon, with a murderous glint in its eye.'"

Instead of fondling anything:

Say "That's probably not appropriate here."

Instead of fondling Pigeon Jon:

Say "'fuck off you pervert!' squawks Jon, and flaps out of your grasp."

Straw is a scenery object inside the stable.

Description of straw is "Clean straw, looks like the stable has recently been cleaned out and refreshed."

Instead of taking the straw:

Say "You decide to leave the straw where it is, the reindeer has more use for it."

The food trough is a scenery object inside the stable.

Description of food trough is "A food trough or manger, full of oats."

Oats are a scenery object.

Oats are inside the stable.

Description of Oats is "Just dry oats, nothing special."

Instead of taking Oats:

Say "You decide not to take the oats, the reindeer has more use for them."

The hoof is part of the reindeer.

The nail is inside the hoof.

Instead of taking the nail when the hoof contains the nail:

Say "You examine the reindeer's hoof and find a nail stuck in it. You remove it. The reindeer nuzzles you in thanks";

Move the nail to the player.

Instead of taking the nail:

Say "You take it";

Move the nail to the player.

Description of the hoof is "[hoof_description]"

To say hoof_description:

If nail is inside hoof:

Say "The reindeer has a cloven hoof, you can see a nail painfully lodged inside it.";

Otherwise:

Say "The reindeer has a cloven hoof, it is now devoid of a painfully lodged nail."

Description of nail is "[nail_description]"

To say nail_description:

If nail is inside hoof:

Say "A nail around 4 inches long. It is lodged inside the reindeer hoof. It looks painful.";

Otherwise:

Say "A nail around 4 inches long. It is slightly bent at the pointy end."

some Reindeer dung is an object.

Reindeer dung is nowhere.

Description of reindeer dung is "A small mound of berry sized brown droppings, slightly steaming."

Dung Cup is an object.

Printed name of Dung Cup is "Plastic cup (filled wth reindeer dung)."

Understand "plastic cup (filled with dung)", "plastic cup" and "plastic" as Dung Cup.

Dung Cup is nowhere.

Description of Dung Cup is "A transparent plastic cup filled with reindeer dung (a small mound of berry sized brown droppings, still slightly steaming."

Instead of giving carrot to Reindeer:

Say "You give the carrot to the Reindeer, who munches it down. A few seconds later it grunts and deposits a small gift of some fresh Reindeer dung.";

Now carrot is nowhere;

Now Reindeer dung is inside Stable.

Instead of taking Reindeer Dung:

If player is carrying Empty Plastic Cup:

Say "You scoop up the dung with the empty plastic cup.";

Move Dung Cup to player;

Now empty plastic cup is nowhere;

Now reindeer dung is nowhere;

Otherwise:

Say "You need something to carry the dug in."