Shambala MUSH Banner

Advanced Building Topics

Shambala MUSH Home
What's a MUSH?
Getting Started
MU* Clients
Concepts
Commands
Examples
Etiquette
Glossary
Building
Links

So what if you want to add a new room to your new apartment? You have a living room, but now you want a bedroom. Well get inside that living room and use the @dig command.

@dig <room>

The name of your new room is <room>. So do create that bedroom, type:

@dig Bedroom

You will be notified of the database number of your room after you create it.

Bedroom created with room number 1195

That is important to remember. That's because you have a room without a way to get in, or a way to get out. To open an exit leading in, use the @open command.

@open <exit>;<alias> = <room database number>

In this command, <exit> is the name of the exit. You can have an alternate name for that exit, which is <alias>. A player will move through the exit by typing either the exit name or the alias. As a matter of fact, an exit can have many aliases. So, we could create a door to the bedroom by typing:

@open Bedroom Door <BD>;bedroom;bd = #1195

If you look now, you might see:

Apartment 805 -- Friendly Apartments (#1102Rh)
This is an average-looking apartment. It has average-looking furniture. It has some average-sized windows.
Obvious exits:
Bedroom Door <BD>  Out <O>

Alright, let's go into the bedroom.

bd
You go through Bedroom Door <BD> to Bedroom
Bedroom (#1195R)
This is an empty, bare room that does not have a description yet.
=> To describe this room, type: @desc here = <text>
where <text> is the description you want people to see when they enter and look at your room.
=> For help, type: help @desc
=> To set this room at your home, type: @link me = here

As you notice, there is no exit out back to your living room. So you have to create it with the @open command.

@open Out <O>;out;o;exit;back;return = #1192

Notice how, in the above example, that the exit has a lot of aliases for out? You should always build your places so that if anyone ever gets lost, that person can simply type "out" or obvious variations until that person gets out of the place. It's a good building practice.

There is an easier way to do everything that has been described so far on this page. A room, an exit in, and an exit out, can all be created with one command. This is done in the format:

@dig <room> = <exit in>;<alias>,<exit out>;<alias>

Notice carefully that the two exits are separated by a comma (whereas exit name and aliases are separated by semi-colons). So, to create that bedroom with exits in and out, you could have:

@dig Bedroom = Bedroom Door <BD>;bedroom;bd,Out <O>;out;o;exit;back;return

You can change the room to which an exit leads with the @link command. The format is:

@link <exit> = <room database number>

So if you created another room, with database number #1198, and you want the bedroom door to lead to that new room, you would type:

@link bd = #1198

It is possible to pick up exits with the get command and put them down with the drop command. One reason that you may want to do this is to arrange the order of the exits in your room as they appear on the list of Obvious Exits. Drop them in order of last to first. You can also take an exit and drop it in a different room, but only if you own the room.

E-mail:shambala@mudshell.com
Last updated: August 8, 2003