Inventory

An interactive fiction by Christopher Armstrong (2008) - the Inform 7 source text

Home page

Contents
Previous

Complete text
Chapter 3 - Model

Table of Things What Need Accounting
thing   description
set of clothes   "clothes"
fishing cap   "headwear"
passport   "passport"
checkbook   "checkbook"
laptop   "laptop"
n810   "n810"
razr   "phone"
nest of chargers   "chargers"
kindle   "something to read"
keys   "ssh/gpg keys"

My Bedroom is a room. "The explosion of clothes, books, and devices that usually cover every inch of my room is somewhat contained due to my recent efforts at packing for the upcoming trip to London.[paragraph break]Outside is the vast world, [if I've got everything]and I'm ready to leave.[otherwise]but I can't go yet, cause my checklist says so."

The train station is outside of the bedroom.

my checklist is a thing. Description is "LONDON TRIP 2008[line break][line break][the checklist][roman type]".
The player holds the checklist.

my Ubuntu bag is a closed openable container in the bedroom.
Description is "It's my Ubuntu bag. [if closed]It's closed.[otherwise]It contains: [list of things inside Ubuntu bag]."

A set of clothes is in my Ubuntu bag. Description is "Neatly folded, kind of."

After opening the Ubuntu bag for the first time:
    say "Ah, right, I packed my clothes last night. There they are in the bag.[paragraph break]";
    account for the set of clothes.

Instead of inserting something into the Ubuntu bag:
    say "I'm going to be checking that bag, and I'd rather keep [the noun] close to me during travels."

Instead of taking the clothes, say "I'm already dressed well enough."

my backpack is a closed openable wearable container in the bedroom.
Description is "It's a Lenovo bag which I got with my Thinkpad laptop."

Understand "unzip [thing]" as opening.
Understand "zip [thing]" as closing.

my passport is in my backpack. Description is "Passport number 92... wait a second, I'm not telling you my passport number."

my checkbook is in my backpack. Description is "I don't ever use this thing, but I always take it with me."

After opening my backpack for the first time:
    say "I open my backpack, to find my passport and my checkbook.[paragraph break]";
    account for the passport;
    account for the checkbook.


my desk is a supporter in my bedroom. Description is "It's more of a table on wheels than a desk."

my Thinkpad laptop is on the desk. Description is "A nice little 12' laptop. It's my primary machine."

my Nokia n810 is on the desk. Description is "Quite a handy little Linux computer which can get me onto IRC in an airport within seconds."

my Motorola RAZR phone is on the desk. Description is "Pretty boring mobile phone."

After inserting the thinkpad into the backpack:
    account for the thinkpad.

After taking the n810:
    account for the n810.

After taking the razr:
    account for the razr.

A nest of chargers is in my bedroom. Description is "N810 charger, RAZR charger, Kindle charger, laptop power supply. Organizing this would make me late for my plane. Might as well just throw it into my backpack."
Understand "charger" as nest of chargers.

After inserting the chargers into my backpack:
    account for the chargers.

my keys are on the desk. Description is "In addition to my house and office keys, I've got a MicroSD/USB adapter (containing an 2GB MicroSD card) and a plain 2GB USB stick."
Understand "ssh key" as keys. Understand "gpg key" as keys. Understand "usb" as keys. Understand "ssh" as keys. Understand "gpg" as keys.

After taking the keys:
    account for the keys.

my nightstand is a supporter in my bedroom. Description is "Next to my bed. It used to be piled with books, now mostly just my Kindle."

my Kindle is on my nightstand. Description is "My ebook reader. I've got Jane Austen's entire canon on there."

After inserting the Kindle into my backpack:
    account for the Kindle.

my dresser is a supporter in my bedroom. Description is "This sometimes holds clothes, but most of them are either dirty or packed right now."

my fishing cap is a wearable thing on the dresser. Understand "hat" as the cap. Description is "Trusty fishing cap. Some people like to call me Gilligan, but they have a twinkle of desire in there eye when they do. Seriously."

After wearing the fishing cap:
    account for the fishing cap.