wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Tutorials > General Mapping Tutorials
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 01-29-2007, 09:35 PM   #1
Ammorth
I blink, therefore I am.
 
Ammorth's Avatar
 
Join Date: Sep 2006
Posts: 1,812

Submissions (10)

Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)

Default Creating/Using Weather Effects

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.

Zoom (requires log in)

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).

Zoom (requires log in)

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.

Trigger:
Rain
Collapse Events
Map initialization
Conditions
Collapse Actions
Environment - Create at Rain <gen> the weather effect Ashenvale Rain (Heavy)
Environment - Turn (Last created weather effect) On

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
Zoom (requires log in)


Improper Use
Zoom (requires log in)
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 .
Attached Images
File Type: jpg Screen 1.jpg (84.3 KB, 841 views)
File Type: jpg Screen 2.jpg (82.9 KB, 817 views)
File Type: jpg Screen 3.jpg (59.3 KB, 800 views)
File Type: jpg Screen 4.jpg (59.9 KB, 828 views)
__________________

Last edited by Ammorth : 02-04-2007 at 05:57 PM.
Ammorth is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 01-30-2007, 01:00 AM   #2
Anopob
Yay!
 
Anopob's Avatar
 
Join Date: May 2006
Posts: 870

Anopob has a spectacular aura about (120)

Default

Cool, never knew about the last ones.
__________________
Give +REP to people who help you with things or make good resources.
Better Ways of Requesting For Help - Race Contest #2 WIP Thread (Bone Race)
As of December 1st I have my blue rep. Yay :D
Anopob is offline   Reply With Quote
Old 02-04-2007, 12:08 AM   #3
WILL THE ALMIGHTY
. . .
 
WILL THE ALMIGHTY's Avatar
 
Join Date: Oct 2006
Posts: 1,529

Submissions (21)

WILL THE ALMIGHTY is just really nice (284)WILL THE ALMIGHTY is just really nice (284)

Default

same here, I didn,t know of the one effect rule or the 512 squares.

Useful.
WILL THE ALMIGHTY is offline   Reply With Quote
Old 02-04-2007, 05:59 PM   #4
Ammorth
I blink, therefore I am.
 
Ammorth's Avatar
 
Join Date: Sep 2006
Posts: 1,812

Submissions (10)

Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)

Default

I didn't either until the weather system for a map of mine wasn't working how I thought it would and I did some testing.

Changed a mistake in the tutorial [mutters]<-- Left - Right -->[/mutters]
__________________
Ammorth is offline   Reply With Quote
Old 02-16-2007, 02:32 PM   #5
CommanderZ
Ayreonaut
 
CommanderZ's Avatar
 
Join Date: Feb 2007
Posts: 313

Submissions (1)

CommanderZ will become famous soon enough (48)CommanderZ will become famous soon enough (48)

Send a message via ICQ to CommanderZ
Default

The info about 512pt squares is very useful, thanks

+Rep
__________________
My skills are my fantasy and creativity, nothing else
CommanderZ is offline   Reply With Quote
Old 03-11-2007, 10:19 PM   #6
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

Good tutorial, approved.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 03-16-2007, 05:59 PM   #7
Deck-boy
User
 
Join Date: Dec 2006
Posts: 41

Deck-boy is on a distinguished road (19)

Default

Very useful. . .I learned some things.
Deck-boy is offline   Reply With Quote
Old 02-17-2009, 01:31 PM   #8
rrockr
User
 
Join Date: Jan 2008
Posts: 12

rrockr has little to show at this moment (0)

Default

That's funny...The last time I played this game called SotDRP and I was able to view 2 different weathers at once. Triggers maybe?
rrockr is offline   Reply With Quote
Old 06-15-2009, 02:43 PM   #9
Opossum
User
 
Opossum's Avatar
 
Join Date: Mar 2008
Posts: 205

Submissions (4)

Opossum will become famous soon enough (59)Opossum will become famous soon enough (59)

Default

I think you should add this annoying weather effect "bug" to the tutorial:
Weather effects are the first handles in the handle table and because of this the very first weather effect created is assigned the handle id 0. Thus comparisons like WeatherEffect != null aren't reliable because the very first effect (or any effect that is assigned id 0) will return null. Also whenever you destroy a null weather effect the weather effect with id 0 will be destroyed.
You can read about this in more detail here: http://www.wc3c.net/showthread.php?t=105947
Opossum is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 07:46 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2018, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services