Omit the Contents Example 1 — 1 of 1

John Timmons

Release 1

"Omit the Contents Example 1" by John Timmons

The story headline is "A simple method to prevent the contents of a specific container or a specific supporter from being listed in the room description".

The story description is "A demonstration of a simple method to 'hide' or not list what is in a specific open container or on a specific supporter in the room description. In other words, the player must explicitly examine a container or supporter in order to see what is inside or on top of these objects respectively."

Release along with the source text, a website, and an interpreter.

The Foyer is a room.

The barrel is a container in Foyer.

An apple is in the barrel. It is edible.

The coffee table is a supporter in the foyer.

An empty glass is on the coffee table.

[Note the couch does not have an after rule applied to it so the contents will be displayed.]
The couch is an enterable supporter in the foyer.

On the couch is a pillow.

[This after rule prevents whatever is in the barrel from being listed in the room description.]
After printing the name of the barrel:

omit contents in listing.

[This after rule prevents whatever is on the coffee table from being listed in the room description.]
After printing the name of the coffee table:

omit contents in listing.