DIG

reference
--- Create or remove exits between rooms. Optionally add a generic door, make it locked, and assign a key vnum. The reverse exit is created automatically if missing; door/lock/key options apply to both sides. SYNTAX dig <direction> <room-vnum> [door|-d] [locked|-l] [key <vnum>|key=<vnum>] [room name...] dig <direction> -1 DETAILS direction One of: north east south west up down (and any aliases). room-vnum Target room vnum. If the room does not exist, it is created with the given [room name...] or a default name/description. -1 Deletes the exit in <direction> from the current room. door|-d Adds a generic closed door on both sides. locked|-l Marks the door locked (also implies 'door' if omitted). key <vnum> Sets the door's key to the given object vnum on both sides. Use either 'key 7001' or 'key=7001'. room name... Optional name for a newly created target room; must come after any door/locked/key options. NOTES • You must have permission to edit both the current room’s zone and the target room’s zone. • You cannot dig to room 0 (limbo). • If a reverse exit already exists, it is not replaced; if you pass door/locked/key options, those are applied to the existing reverse exit. • The generic door uses: keyword: "door" description: "A sturdy wooden door is set into the passage." flags: closed, isdoor (and locked if requested) • If 'locked' is specified with no key, the door is locked but has no key item assigned (only non-key mechanics can open it). EXAMPLES Create a plain exit north to 12345: dig north 12345 Create a closed door north to 12345: dig north 12345 door (alias) dig north 12345 -d Create a door and name the new room: dig north 12345 door North Hallway Create a locked door (no key item): dig north 12345 locked (alias) dig north 12345 -l Create a locked, keyed door (key vnum 7001): dig north 12345 door locked key 7001 (alt) dig north 12345 -d -l key=7001 Create a door up to 67890 with a key and a room name: dig up 67890 door key=7002 Trapdoor to the Loft Delete the north exit from the current room: dig north -1 dig north -1 Will remove the exit you just made. NOTE: Dig does not autosave on exit. you must type SAVEALL. This way if you mess up and want the links deleted we can just reboot and wipe them. See also:: SAVEALL, REDIT, OLC, RLIST, BUILDWALK