BEHAVIOR-CLOSESESAME
Behavior Room Behavior.
This behavior can be used to automatically close a given door or object whenever a player performs an action in the given room. If the optional room argument is supplied, this behavior will close a door/object in the specified room, otherwise the current room will be assumed.
| Arguments: | <trigger> [<room>] <object name>|<<door name> [door direct.]> [.] |
| Next Lines: | [<behavior responses>] |
| Example: | rb room closesesame moon full oak-door |
Where a number names a room, a creature or an object, its address works too: club.west-bridge, or .west-bridge in the behaviour's own zone. The number is the old form (BEHAVIOR-ADDRESSES).