Parent: build
Function used for building a room (room/room.lpc) like in rooms. Refer to:
http://swlpc.sourceforge.net/doc/build/room
http://swlpc.sourceforge.net/doc/build/room2
for official SWLPC functions. The following is extra functions added for the mud client:
set_xy
Sets the room centre. For example:
set_xy(300.2,200.1);
Exits and object positions can be given relative to this point.
set_exitdist
Use this to override the default exit distance calculated by SWLPC. For example if two rooms are linked with room centres x=253,y=295 and x=254,y=295 then SWLPC calculates the exit distance to be 0.5 by default. To set the exit distance say to 0.4 in room x=253,y295 you would use
set_exitdist("east",0.4);
set_doorxy
Use this function to specify a doorway position of an exit. For example for a southern exit for a room at x=253,y=295 you might specify it as:
set_doorxy("south",252.5,294.7);
The door width can be specified by a 4th parameter
set_doorxy("south",252.5,294.7,0.2);
will make the door width 0.2
nohome
add_property("nohome");
A player cannot respawn in this room. Player will respawn at the previous saved location if there is one