Writers' Atlas

Room description and the parser

A location written to be re-read, with its exits and nouns matching what the parser will accept.

West of House. You are standing in an open field west of a white house, with a boarded front door.

In parser interactive fiction the room description is the unit of prose. It names the place, says what is here and where the exits are, and will be read again every time the player returns. Colossal Cave Adventure (1976-77) set the tone: a narrator with a dry voice describing locations and the results of actions, as the Wikipedia page notes, much as a dungeon master would. Zork added hundreds of locations and a parser that understood more than verb and noun.

The description and the parser are one system. Every noun the prose mentions is a noun the player may type, so a description that lists a rug must answer when the rug is moved. Infocom's parser was prized because it accepted full sentences; the standard commands, north, east, look, take, became conventions the whole form shares.

The craft is terse prose that invites action without listing it, and that still reads well on the twentieth visit.

Example

Zork I (Infocom, 1980)

The famous opening, west of a white house with a boarded door and a mailbox, puts one object and one obvious action in front of the player. The mailbox opens; the leaflet reads; the player has learned the grammar. The house itself is reached by going round it, not through the door.

How to use it

Common mistakes

Alternatives

Builds on / part of

Used with

Sources

  1. Colossal Cave Adventure (Wikipedia)
  2. Zork (Wikipedia)
  3. Interactive fiction (Wikipedia)