FILE: DOOR.TXT HUB - Henry's Universe Builder Basic Area and Object Construction Manual DOOR VALUES This file is Copyright 1995-1997 by Henry McDaniel. All rights reserved. See NOTICE for further details. -------------------------------------------------------------------- @@@@@@@@@@@@@@@@@@ KEYS @@@@@@@@@@@@@@@@@@ To create a key you simply make an other object with the attribute "key", where key specifies a passcode. key: <passcode> The more complicated part is creating a lockable or closeable door or container. For rooms: In the exit that you wish to be a door, add the number X, where X is one of these bits: 2 Door is open 4 Door is closed 8 Door is lockable but open 16 Door is lockable but closed 32 Door is lockable AND LOCKED 64 Door will close self So an example exit list with a lockable door in it is: exits{ door: 0 d543 0 48 ra7732 } In the above example, there is a door in THIS room leading to room d543. The door is closed and locked (16+32 = 48) The passcode a key would have to contain to unlock the door is: "ra7732" For a door to work like one would expect in the real world, both sides should be set to the same lock/open/closed values and with the same passcodes. If you set the close self bit (64) the door will close (AND LOCK if it is lockable) on its own when rooms are updated (the period of updates is specified in the config file by ROOM_PERIOD.) END OF DOOR.TXT