Building: Rooms

A room is an object in the game that represents a location that you can be in. We use the term room to apply to outdoor locations as well indoor locations. Rooms are, as with most things in the game, 'objects'.

A room is an object with the Room flag set on it. A room's main properties are its name and description. Rooms may have zero or more exits, which are contained objects that represent the directions you can travel. See that page for more information on how to construct those.

A room's name is the text displayed in the first line of "look". This is stored in the name property. We try to get the prepositions and articles correct in "look" and "go" with this, but sometimes it doesn't always work, and you may want to use the namestyle command to set it. ('help namestyle' for valid options).

If there's a room_name it'll go for that instead of the main name property. This can be useful when building objects that can act as items and rooms, or other more complex cases.

If you use the 'exits' verb in a flag.OutDoors location, it will name the room according to the 'building' property. This can be used to make the room actually be called 'Lobby', but appear to be called 'Oceanography Centre' from the outside. You can also make a room appear to have a different building name when viewed from 2 differently ajoining rooms e.g. building.outsidestreet_1 = "The Park" vs building.innerpark_2 = "Park entrance and shop".

The description comes from the last which exists of desc.internal, desc.[0-9].internal, $desc.internal, $desc.[0-9].internal,!desc.internal, !desc.[0-9 ].internal, (where [0-9] represents the object's current state) of either the object, or the object the room's descfrom points to. This will be auto-unwordwrapped prior to wordwrapping, unless the enpara property is set to 0.

Some popular flags for rooms include: