Proc:Neighborhood

From SlothMUD Wiki
Revision as of 14:35, 20 October 2015 by Teker (Talk | contribs) (Created page with " = Overview = The neighborhood procedure allows players to build houses that attach to the current room. It also handles the outdoor portion of keyless entry if purchased in...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

The neighborhood procedure allows players to build houses that attach to the current room. It also handles the outdoor portion of keyless entry if purchased in a house.

There are no special KVPs used by the procedure. Once added to a room via the addproc command, the only other step is to enable it by setting the PROC_ENABLED value to 1.


Survey Command

The survey command is enabled by the procedure and is used by players to find available locations for building houses. New houses can only be built in directions that do not currently have an exit. Exits can be reserved for future use by creating an exit in the desired direction to room -1.


Build Command

The build command is enabled by the procedure and allows players to build a house if they are carrying an appropriate hovel object. The command syntax is build <hovel object> <direction> <one or more door names>. If the player has an appropriate hovel object and nothing exists in the direction specified, a new house will be created in that direction. If this is the player's first house, a key will be created and given to the player.