Login
Remember
IF Answers
Ask a Question

# How can I prevent appending (open), (closed) etc. to an object in Inform 7?

+1 vote
141 views
asked Apr 17 in Authoring by EatenByAGrue (75 points)

There are some cases where they work, but other cases where appending (open) and similar descriptions are unnecessary, and at least one point in the game I'm working on where having an object obviously be a container gives away a puzzle. How can I stop Inform 7 from describing the state of an object this way?

- inform7
- programming
- objects

## 1 Answer

+1 vote
answered Apr 17 by Joseph Geipel (207 points)
selected Apr 17 by EatenByAGrue
Best answer

See §18.16 in the documentation for removing the parenthetical statements in the "You can also see" in a room description. Let's assume your object is named foo.

    Rule for printing room description details of foo:
         stop.

If you also want to remove it from an inventory listing, follow §18.17.

    Rule for printing inventory details of foo:
         stop.

commented Apr 17 by EatenByAGrue (75 points)
Thank you! I knew I'd seen it somewhere, but finding something specific in the documentation can be a bit maddening sometimes.

## Related questions

- How do I move an item I have more of in the world (since it's a kind of thing)?
- How do I force Inform's listing to separate out identical items?
- How do I debug in Inform 7?
- Copying the location of a thing to a variable when it's in something other than a room.
- Is there a way to reduce the right margin for a play-in-browser website released by Inform 7?

...