JS-ZONE
The Zone object represents zones.
Class Methods:
rooms( code [, pattern] ) | An array of the rooms the zone owns, in order. The pattern picks rooms by name, * standing for any run: Zone.rooms( 'fig', 'maze-*' ).random(). An unloaded zone gives an empty array. |
Properties:
shortDesc | The name of this zone. |
inWorld | World object that this zone is in (see JS-WORLD). |
id | The zone's code: 'moz' (see JS-NAMES). |
uid | The zone's number, which never changes. |
Methods:
isActive() | Returns true if this zone has not been deleted. |
clouds() | Returns one of "clear", "cloudy", "drizzling", "raining", "downpour", "thunderstorm", "hail", "flurries", "snowing", or "blizzard" depending on the weather. |
winds() | Returns one of "calm", "breeze", "windy", or "gale" depending on the weather. |
humidity() | Returns the current humidity. |
temperature() | Returns the current temperature. |
pressure() | Returns the current pressure. |
isRaining() | Returns true if it is raining. |
isSeasonal() | Returns true if this zone has seasons. |
hasPlayers() | Returns true if the zone has players in it. |
msg( string ) | Sends a message to players in this zone. See JS-MSG for more information. |
randomPlayer() | This returns a player in this zone at random or null if the zone is empty of players. |
visitPlayers( f ) | Applies the passed in function or array to all of the players in this zone. See JS-VISIT for more information. |
toString() | Returns the name of the zone. |
valueOf() | Returns the name of the zone. |