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

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