Inform 7 Home Page / Documentation

§18.17. Printing inventory details of something

1. When it happens. When an item is listed in an inventory of items carried by the player.

2. The default behaviour. A bracketed piece of extra information is added for certain items such as containers:

a flaming branch (providing light)

The " (providing light)" (note initial space) was added by this activity.

3. Examples. (a) To get rid of such addenda entirely, try:

Rule for printing inventory details: stop.

(b) To add a new form of addendum:

Rule for printing inventory details of something edible:
    say " (yummy!)[run paragraph on]".

arrow-up.png Start of Chapter 18: Activities
arrow-left.png Back to §18.16. Printing room description details of something
arrow-right.png Onward to §18.18. Printing a refusal to act in the dark