A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/room/set_weather


Name: set_weather - set the weather and light conditions in a room

Syntax:
	#include <room2.h>
	set_weather(int light, int weather, int climate)

Description:
	The set_weather call sets the weather, climate and condition in a room.
	The values are defined in /include/room_defines.h. If the second and
	third arguments are omitted, default arguments are used.

	Light can have the following values:

		LIGHT     - weather dependent light
		LIGHT_ON  - light always on
		LIGHT_OFF - light always off

	Weather can have the following values:

		DEFAULT   - default weather for your castle (default)
		NONE      - absolutely no weather
		INSIDE    - inside weather, the player can look at the sky and is
		            informed about weather changes
		SHELTER   - same as inside apart from the the messages
		OUTSIDE   - full weather, the player gets all the weather effects

	Climate can have the following values:

		STANDARD  - standard climate (default)
		BAD       - bad weather (mostly raining)
		TROPIC    - tropic climate (mostly sunshine)
		JUNGLE    - jungle climate (humid and hot)
		DESERT    - desert climate (hot and dry)
		ARCTIC    - arctic climate (cold with snowstorms)
		OCEAN     - weather you get, when you are in a boat (waves and things)
		FOG       - foggy weather, no sun, dismal weather (e.g. cemetery)

Return value: none

Examples:
	set_weather(LIGHT, OUTSIDE, STANDARD);

See also:


This page was generated in LPC

Imprint / Impressum