BYOND Environment This page contains an entry from the official DM Reference.

Areas are derived from /area. Regions on the map may be assigned to an area by painting it onto the map. Areas off the map serve as rooms that objects may enter and exit.

For each area type defined, one area object is created at runtime. So for areas on the map, all squares with the same area type belong to the same instance of the area.

Additional instances of rooms may be created from the same type by explicitly creating them with null as the initial location. That is, the first argument to new() should either be null or left unspecified.

The following example defines the area prototype /area/outside. It also defines an action to be taken when somebody enters an area, namely to display its description.


    if(desc) O << desc
    return ..()

    desc = "Ah!  A breath of fresh air!"

See alsoEdit

atom procs | vars client procs | vars movable procs | vars
area procs | vars datum procs | vars list procs | vars
turf procs | vars icon procs | savefile procs | vars
obj procs | vars image | vars sound | vars
mob procs | vars world procs | vars procs | vars