doorset
doorset <room> <dir> <+|-> <flags>
Set or clear exit flags on a room's exit.
Use it to open, close, lock, or unlock a door from a script, or to toggle any other exit property. The change applies to the named exit of the named room; if that room has no exit in that direction, nothing happens.
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.<+|->— a string:+sets (turns on) the flags,-clears them.<flags>— a string of one or more space-separated exit-flag names (for exampleclosed,locked,hidden). Unrecognized names are ignored.
Returns
null. Like the other action commands, a
successful doorset in the handle phase suppresses the event's default
action.
Examples
after command (say) {
doorset [room 1] north + closed
}
This sets the closed flag on the north exit of room 1.
Clear flags with -; list several at once:
after command (say) {
doorset [room 1] north - "closed locked"
}
This opens and unlocks the north exit in one call.
See also
doorexit— set or remove where an exit leads.room— resolve a room vnum to a room reference.- Handlers, events, and phases