MUDL:is open

From SlothMUD Wiki
Jump to: navigation, search


Summary

Function Name is_open
Settable No
Returns Boolean


Parameter Options
Direction (string)
Room, Direction (string)
Item


In the first two cases, this function returns whether the exit in the given direction from the given room is open. This means that it must first be a passable sort of exit, and second it must not currently be impeded by, for example, a closed door. The second argument is the direction, as one of the strings 'north', 'south', 'east', 'west', 'up', or 'down'. While this function is not settable, the open status of a door can be set with the flag function.

In the third case, this function returns True if the specified item is a container and the container is currently open.


Example

TBD