doorexit
doorexit <room> <dir> <room|"none">
Set or remove where a room's exit leads.
Point an exit at a different destination room, create an exit that did not
exist, or remove an exit entirely. To change the flags on an existing
exit (open, closed, locked, …) rather than its destination, use
doorset.
Arguments
<room>— the room whose exit to change. An int is accepted and resolved as a room vnum (seeroom).<dir>— the exit direction, a string such asnorth,south,east,west,up, ordown. An unknown direction is a run-time error.<room|"none">— the destination. A room makes the exit lead there (creating the exit if needed); the literal string"none"removes the exit. Any other string is a run-time error.
Returns
null. Like the other action commands, a
successful doorexit in the handle phase suppresses the event's default
action.
Examples
after command (say) {
doorexit [room 1] north "none"
}
This removes the north exit from room 1.
Point an exit at a destination room instead:
after command (say) {
doorexit [room 1] north [room 3001]
}
This makes room 1's north exit lead to room 3001, creating the exit if room 1 had none in that direction.
See also
doorset— set or clear flags on an existing exit.room— resolve a room vnum to a room reference.- Handlers, events, and phases