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

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