| This might seem like a basic topic, but there are a few things about weather effects that are not as obvious. Hopefully this tutorial will help you to understand more about them.
1) What Are weather effects?A weather effect is pretty much what it's name implies. They are built in effects that can be used to increase the environmental realism of WarCraft III.
2) How do you use them?
Weather effects can be created/used in 2 methods. Pre-placed regions, and through triggers.
A) Pre-placed regions. The easiest method to create weather effects, but the least control over them.
Start by creating a region where you want your weather effect. Right-click the region in region palette (or double-click the region in the main window) to bring up the region properties. Here you can change the name, the coordinates, the color, add a weather effect and ambient sound. Check "Weather Effect" and select the effect you desire from the drop-down.

To make the effect more realistic, we can add some ambient sound. To do this we must open up the Sound Editor (Modulo > Sound Editor [F5]). Here we can add sounds to the map. I created a Rain effect, so I want to add the sound of rain to my region. To do this, I'm going to navigate through the left panel of folders, and select "Sounds\Internal\Sound\Ambient\RainAmbiance.wav" (Most of the ambient sounds you will need will be in the Ambient folder). Right-click the sound file and select "Use as Sound". The sound will now appear on the right of the screen, with any other sounds you have specified. You can right-click the sound on the right (called a Sound Variable) and rename, change the volume, pitch, fade in/out rate, and the channel WarCraft III will play it through (the defaults are shown in the screen shot).

Now, go back to the Region Palette, and check "Ambient Sound and select the Sound Variable you just specified.
B) Triggers Triggers may not be the simplest method, but at least they provide some control.
Start off by making a new trigger. Name it something so you will remember what it's for. To create a weather effect, use the action "Environment - Create Weather Effect" Select your region and select the effect desired. Weather effects are initially turned off, so to turn the weather effect on use "Environment - Enable/Disable Weather Effect" Use "Last Created Weather Effect" and "On" as the arguments. Pretty simple.
You can also remove weather effects in the same manor. Make a new trigger and use "Environment - Remove Weather Effect"
Note: I recommend using variables to store weather effects, instead of using Last Created Weather Effect. To do this, create a new "Weather Effect" variable and then add Trigger: Set WeatherEffect = (Last created weather effect) to your trigger, right after you create it, using the "Set Variable" action.
Like before, we want to make it more realistic, so we are going to add sound. I already have my sound variable from before, so I can jump to the next step. Use the action "Sound - Add/Remove 3D Sound Across Region" to add the 3D sound to the region. To remove the sound, simply use the same action again, but select "Remove".
3) Thing you need to know that you may not already know
A lot of this tutorial is basics, but now comes that part that even some experienced maps may not know.
The 512 square
Each weather effect, no matter the size of your region, is created in groups of 512x512 squares (the large Yellow grid squares when you have the grid turned on). Because of the way Regions work, to cover only 1 square, the region must not touch the North and East side of the 512x512 square. If you do, the weather effect will extend to the North, East and Northeast squares.
Proper Use

Improper Use

The one effect rule
There are different types of weather effects: Rain, Shield, Dungeon Fog, Snow, Rays and Wind. Each type of effect can only have one instance of itself per 512 square. This includes disabled weather effects. This means you cannot create Lordaeron Rain and Ashenvale Rain on the same square. The first one created will be viewable, while the other will be non-existent.
I hope people find this tutorial informative and useful. Those 2 special rules have annoyed me. With this tutorial, I hope others do not suffer like I did  . |