Escapade!

An interactive fiction by Juhana Leinonen (2008) - the Inform 7 source text

Home page

Contents
Previous
Next

Complete text
Book 10 - Inventory listing

Definition: A thing is cell inventory if it is in the cell and it is handled.

Instead of taking inventory:
    say "You are carrying [a list of things carried by the player including contents] and wearing [a list of things worn by the player].";
    if a cell inventory thing is in the cell, say "[line break]Also, [a list of cell inventory things in the cell including contents] [if the number of cell inventory things in the cell > 1 or a random cell inventory thing in the cell is plural-named]are[otherwise]is[end if] on the floor."