MUDL:is open
From SlothMUD Wiki
Revision as of 15:45, 24 November 2018 by Teker (Talk | contribs) (Created page with " __TOC__ = Summary = {|class="abilitiestable" border="0" cellspacing="0" cellpadding="0" ! Function Name | is_open |- ! Settable | No |- ! Returns | Boolean |} {|class="a...")
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