|
The general format of a direction field is:
D<direction number>
<general description>
~
<keyword list>~
<door flag> <key number> <room linked>
- Direction Number
-
The compass direction that this Direction Field describes. It must be one
of the following numbers:
0 North
1 East
2 South
3 West
4 Up
5 Down
6 Northeast
7 Northwest
8 Southeast
9 Southwest
- General Description
-
The description shown to the player when she types ``look
<direction>.'' This should not be confused with the room description
itself. Unlike the room description which is automatically viewed when a
player walks into a room, the General Description of an exit is only seen when
a player looks in the direction of the exit (e.g., ``look north'').
- Keyword List
-
A list of acceptable terms that can be used to manipulate the door with
commands such as ``open,'' ``close,'' ``lock,'' ``unlock,'' etc. The list
should be separated by spaces, e.g.: door oak big~
- Door Flag
-
Can take one of five values (0, 1, 2, 3, 4):
- 0
-
An unrestricted exit that has no door, or a special door cannot be opened
or closed with the ``open'' and ``close'' commands. The latter is useful for
secret doors, trap doors, or other doors that are opened and closed by
something other than the normal commands, like a special procedure assigned
to the room or an object in the room.
- 1
-
Normal doors that can be opened, closed, locked, unlocked, and
picked.
- 2
-
Pickproof doors: if locked, can be opened only with the key.
- 3
-
Secret doors: they cannot be seen by players. They are only noticed if
the player tries to move in the direction of the door.
- 4
-
Doors that are both pickproof and secret.
The initial state of all doors is open, but doors can be opened, closed,
and locked automatically when zones reset (see the zone file documentation for
details).
- Key Number
-
The virtual number of the key required to lock and unlock the door in the
direction given. A value of -1 means that there is no keyhole; i.e., no key
will open this door. If the Door Flag for this door is 0, the Key Number is
ignored.
- Room Linked
-
The virtual number of the room to which this exit leads. If this number is
-1 (NOWHERE), the exit will not actually lead anywhere; useful if you'd like
the exit to show up on ``exits,'' or if you'd like to add a description for
``look <direction>'' without actually adding an exit in that
direction.
|