A Christmas Game (Inform Port) — 3 of 15

Luke Jones

Release 2

Section 2 - Your Lounge

Your Lounge is a room. "You are in your own home. A modest (i.e. rather too small) town house, which is in a rather chaotic state as you try to prepare for Christmas. The floor is strewn with Amazon delivery boxes and wrapping paper. On the wall is an advent calendar with an alarming amount of doors already open.

You've left things a bit late this year and are missing the following essential items for a decent Christmas; a Christmas Tree, Christmas Crackers, Satsumas, a Turkey, Skyrim Special Edition Computer Game, a Bottle of Port and a copy of the Bumper Radio Times Christmas Special.

You'd better head out into town to get some shopping done!

Return to this location carrying all the items you need in order to complete the game.

(type 'help' or 'hint' for game specific help)

"

Instead of going to the lounge:

If quest_count is 7:

Say "***********************************************************************

You’re finally home with everything you need for Christmas, what a day! Rather more hectic than you expected, but it was a good day in all.

You settle down in your armchair and pour yourself a glass of port, not a bad drop, you raise your glass to the empty room as if to salute the choir leader. You admire your Christmas tree sat in the corner with your present from Santa underneath, and the bowl of satsumas on the table next to you. The turkey is in a bucket of brine in the kitchen, a secret you got from Nigella.

You flick idly through the Radio Times, but your eyes grow heavy from the port and your exhausting day. You fall asleep……...

You awake to the sound of the clock on the mantelpiece softly chiming midnight. You wipe your eyes and yawn. There is a gentle knocking at your front door.

You open the front door, it is snowing heavily and a few inches has already settled.

Standing in the door way is James, he has a huge grin on his face, 'Hello' he says, 'Come with me, there’s someone I want you to meet, bring a Satsuma with you.

**************************************************************************

";

Say "

Press any key for credits.";

Wait for any key;

end the story saying "Congratulations and thanks for playing!

The END

Originally written and coded by Luke Jones ([email protected]), using the Quest text adventure engine (www.textadeventures.co.uk) and then ported to Inform 7,

Thank you to Alex Dimmer for creating the artwork and to Jennifer Thompson, Daniel Buxton and Joe Dillon for alpa and beta testing, and for their excellent suggestions for improvements.

Thanks also to the excellent support from the Quest forum and Inform forum members.

Special thanks to the coding wizard K.V. for patiently explaining Inform syntax to me.

I was inspired to write this game after playing the wonderful text adventures of Robin Johnson, you should check them out: http://versificator.net/

If you didn’t get James[] character (The Rake Thin Man), then you should watch The Snowman by Raymond Briggs.

The pigeon was inspired by the twitter account @pigeonjohn

Merry Christmas! Be excellent to each other.

Luke xx

";

display the Figure of snowman;

else:

continue the action.

An Armchair is inside Your Lounge.

The description of armchair is "A red oxblood leather wing-back Chesterfield armchair".

armchair is an enterable supporter.

Instead of entering armchair: say "You'd love to sit down on your favourite armchair, but you've got too much to do!"

Instead of taking armchair: say "It's far to heavy to carry around!"

Instead of smelling Your Lounge:

Say "There is a lingering smell of last night's curry."

Instead of listening to Your Lounge:

Say "You can't hear anything in particular from inside the lounge."

An Advent Calendar is inside Your Lounge

Advent Calendar is an opaque container.

The Advent Calendar is closed

The Advent Calendar is openable

The description of the Advent Calendar is "[advent_description]".

To say advent_description:

if the advent calendar is open:

say "It's a traditional advent calendar, with a traditional Angry Birds Lego design, all the doors have now been opened. ";

otherwise:

say "It's a traditional advent calendar, with a traditional Angry Birds Lego design. There is one unopened door left.".

Instead of closing advent calendar: say "You can not close it".

Instead of taking Advent Calendar: say "It's nailed to the wall and you decide to leave it there"

Inside the Advent Calendar is a Chocolate

A food is a kind of thing that is edible. Food has some text called flavor.

Chocolate is food.

The flavor of the chocolate is "It tastes like advent calendar chocolate, i.e. stale and not very nice."

After eating something:

if the noun provides the property flavor, say "[the flavor of the noun]

[paragraph break]";

otherwise say "It's [noun]-flavored."

The description of the Chocolate is "A thumb sized chocolate in the vague shape of a pissed off bird."

The description of yourself is "Looking Good!"

Amazon boxes are inside Your Lounge

Amazon boxes are scenery.

The description of Amazon boxes is "The amazon boxes fill the room, it doesn't help that they are all so big compared to the contents. The biggest one in the room is nearly the size of the sofa and contained a single memory stick."

Instead of taking amazon boxes: say "You decide against carrying the boxes around with you, they're too big!"

A Sofa is inside Your Lounge

Sofa is an enterable supporter.

Instead of entering sofa: say "You'd love to sit down, but you've too much to do, besides you always prefer the armchair anyway."

The description of sofa is "An old slightly knackered Ikea sofa, you hardly use it as you prefer your armchair."

Instead of taking sofa: say "It's far to heavy to carry around!"

A Shopping List is inside Your Lounge

The description of Shopping List is "[bold type]SHOPPING LIST[roman type][line break]

- A Christmas Tree [if the Christmas Tree has been handled] (got)[end if][line break]

- Christmas Crackers[if the christmas crackers has been handled] (got)[end if][line break]

- Satsumas[if the satsumas has been handled] (got)[end if][line break]

- A Turkey[if the turkey has been handled] (got)[end if][line break]

- A copy of Skyrim Special Edition Game[if skyrim has been handled](got)[end if][line break]

- A Bottle of Port[if bottle of port has been handled] (got)[end if][line break]

- The Bumper Radio Times Christmas Special[if bumper radio times christmas special has been handled] (got)[end if][line break]."

Wrapping paper is inside Your Lounge.

Wrapping paper is scenery.

Description of Wrapping Paper is "a few rolls of Christmas wrapping paper, if only you could find the damn scissors and sellotape."

Instead of taking wrapping paper: say "You decide against taking the paper, best off leaving it here."