A Basic Door — 1 of 0

John Timmons

Release 1

"A Basic Door" by John Timmons

The release number is 1. The story creation year is 2007. The story headline is "Creating A Basic Door". The story description is "Doors are pretty common elements in most buildings. Creating a door in Inform is like having another room between the two rooms that a door connects. Here is a simple example of how to create a door."

Release along with the source text and a website.

The Front Porch is a room. "Standing outside the house, you see a front door to the north."

[Here we create a door called 'front door'. We also make it scenery so that it won't be mentioned in the room description. We then say how it is situated direction-wise between the two rooms the door connects. This will also need to be explicitly mentioned in each of the room descriptions that the door connects so the player will know which way to go. By default, the player will have to open the door before going through it (and will stay open unless the player closes it.)]

The front door is an open door and scenery. It is south of the Foyer and north of the Front Porch.

The Foyer is a room. "The foyer is at the front of the house and has a door leading south."[1]

Note

[1]. Note that when a door used we do not have to include directions when creating the room itself.