HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Raining spell

11-14-2003, 10:15 PM#1
Sota
how would a spell trigger that causes a map-wide rain, A unit will cast the spell, and then it will rain for 30 seconds the same ammount of time that the unit casts the spell.
11-14-2003, 10:19 PM#2
Eriond
Easy Here's the trigger

Code:
Events - A unit finished casting an abiltiy

Conditions - (Ability Being Cast) equal to Rain

Actions - Create a Ashenvale Rain (Heavy) weather effect over (Playable Map Area). 
Turn on (last created weather effect)
Wait 30.00
Destroy Last Created Weather Effect
11-15-2003, 09:51 PM#3
Sota
did not work >.<
11-15-2003, 10:08 PM#4
Hunter0000
What do you mean it didnt work?

Did it do anything at all, or did it just do nothing?

Also, what abillity is it based off?

One more question, Did you want the rain to do somthing? because it seems awefull silly if all it does is make it rain.
11-16-2003, 12:34 AM#5
Sota
It's a spell caleld revealing rains, it's based off of big bad voodoo, when it is casted the map freezes for a slight second then nothing happens,. the spell is supposed to reveal certain things based on a boolean variable that is unrelated pretty much
11-16-2003, 12:37 AM#6
DarkenPride
Events - A unit Begins casting an abiltiy

Conditions - (Ability Being Cast) equal to Rain

Actions - Create a Ashenvale Rain (Heavy) weather effect over (Playable Map Area).
Turn on (last created weather effect)
Wait 30.00
Destroy Last Created Weather Effect

Try using Begin instead of finishing.

EDIT : Since Big Bad Voodoo is a channeling spell, I think you might wanna make the Event, "A unit begins Channeling"
11-16-2003, 12:39 AM#7
Sota
I did try that already too, maybe it is just a bug. :(
11-16-2003, 01:51 AM#8
theJ89
It has to be an actual region for some reason. Try making a worldwide region and applying the effect.
11-16-2003, 02:00 AM#9
FerretDruid
I just made this trigger and tested it, it works. Use it if you need to:

Code:
Rain
    Events
        Unit - A unit Begins channeling an ability
    Conditions
        (Ability being cast) Equal to Big Bad Voodoo
        (Casting unit) Equal to Shadow Hunter 0001 <gen>
    Actions
        Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
        Environment - Turn (Last created weather effect) On
        Set rainvariable = (Last created weather effect)
        Wait 10.00 seconds
        Environment - Turn rainvariable Off

Edit: The variable shouldn't be necessary unless you are using multiple triggers with created weather effects that might overlap eachother. But I didn't try it without.. it's just becoming a habit of mine to make variables for everything.
11-16-2003, 02:15 AM#10
Dragon
Yes, you need to use "Unit begins channeling a spell" as your event.
11-16-2003, 02:15 AM#11
35263526
If more than one unit is going to be channeling it at the same time, add this Custom Script event to the beginning of FerretDruid's trigger:

Custom Script: local weathereffect udg_rainvariable