• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Weather Effect Help

Status
Not open for further replies.
Level 4
Joined
Nov 1, 2006
Messages
54
Weather Effect HELP!!!!!!!!!!!!!

I am making a map where i need to turn on weather effects Here is the trigger idk why it doesnt work can anyone help me?

[TRIGGER=GUI Trigger]
Events
Time - Every 2.00 seconds of game time

Actions
Trigger - Turn off (This trigger)
Sound - Play NukeCreated <gen>
Wait 7.00 seconds
Sound - Play Tension <gen>
Wait 20.00 seconds
Trigger - Turn on NukeDefault <gen>
Game - Display to (All players) the text: Humanity has in its...
Environment - Create at nukewint1 <gen> the weather effect Northrend Blizzard
Set Blizzard = (Last created weather effect)
Environment - Turn Blizzard On
Environment - Create at nukewint2 <gen> the weather effect Northrend Blizzard
Set Blizzard2 = (Last created weather effect)
Environment - Turn Blizzard2 On
Environment - Create at nukewint3 <gen> the weather effect Northrend Blizzard
Set Blizzard3 = (Last created weather effect)
Environment - Turn Blizzard3 On
Environment - Create at nukewint4 <gen> the weather effect Northrend Blizzard
Set Blizzard4 = (Last created weather effect)
Environment - Turn Blizzard4 On
Environment - Create Blight for Neutral Hostile across (Entire map)
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Unit - Set life of (Picked unit) to 33.00%)
Wait 250.00 seconds
Environment - Turn Blizzard On
Environment - Turn Blizzard2 Off
Environment - Turn Blizzard3 Off
Environment - Turn Blizzard4 Off
Environment - Create at nukewint1 <gen> the weather effect Northrend Snow (Heavy)
Set HeavySnow = (Last created weather effect)
Environment - Turn HeavySnow On
Environment - Create at nukewint2 <gen> the weather effect Northrend Snow (Heavy)
Set HeavySnow2 = (Last created weather effect)
Environment - Turn HeavySnow2 On
Environment - Create at nukewint3 <gen> the weather effect Northrend Snow (Heavy)
Set HeavySnow3 = (Last created weather effect)
Environment - Turn HeavySnow3 On
Environment - Create at nukewint4 <gen> the weather effect Northrend Snow (Heavy)
Set HeavySnow4 = (Last created weather effect)
Environment - Turn HeavySnow4 On
Wait 250.00 seconds
Game - Display to (All players) the text: Humanity has taken ...
Environment - Turn HeavySnow Off
Environment - Turn HeavySnow2 Off
Environment - Turn HeavySnow3 Off
Environment - Turn HeavySnow4 Off
Environment - Create at nukewint1 <gen> the weather effect Northrend Snow (Light)
Set LightSnow = (Last created weather effect)
Environment - Turn LightSnow On
Environment - Create at nukewint2 <gen> the weather effect Northrend Snow (Light)
Set LightSnow2 = (Last created weather effect)
Environment - Turn LightSnow2 On
Environment - Create at nukewint3 <gen> the weather effect Northrend Snow (Light)
Set LightSnow3 = (Last created weather effect)
Environment - Turn LightSnow3 On
Environment - Create at nukewint4 <gen> the weather effect Northrend Snow (Light)
Set LightSnow4 = (Last created weather effect)
Environment - Turn LightSnow4 On
Wait 250.00 seconds
Game - Display to (All players) the text: The humans have mad...
Environment - Turn LightSnow Off
Environment - Turn LightSnow2 Off
Environment - Turn LightSnow3 Off
Environment - Turn LightSnow4 Off
Environment - Create at nukewint1 <gen> the weather effect Rays Of Light
Set LightRays = (Last created weather effect)
Environment - Turn LightRays On
Environment - Create at nukewint2 <gen> the weather effect Rays Of Light
Set LightRays2 = (Last created weather effect)
Environment - Turn LightRays2 On
Environment - Create at nukewint3 <gen> the weather effect Rays Of Light
Set LightRays3 = (Last created weather effect)
Environment - Turn LightRays3 On
Environment - Create at nukewint4 <gen> the weather effect Rays Of Light
Set LightRays4 = (Last created weather effect)
Environment - Turn LightRays4 On
Trigger - Turn on Nukewinterrestsrt <gen>
[/TRIGGER]
 
Last edited:
Level 4
Joined
Nov 1, 2006
Messages
54
Well i am making a map where this trigger gets turned on by another and i need to have weather effects happen on this trigger. First a blizzard then after 250 sec it changes to heavy snow then 250 sec later light snow then 250 sec later rays of light.I used variables instead of environment now because turning on and off the environment weather effects wasn't working. No weather effects happen when i try it on the map, I cant see them at least. Anyone know what the problem is?
 
Last edited:
Level 3
Joined
Mar 6, 2007
Messages
48
Your Turn off (This trigger) should be at the very end, because everytime this trigger gets enabled or turned on, every 2 seconds it's going to turn it off before it gets through all of your other actions.

If this doesn't work, remove the event that causes the trigger to run every 2 seconds OR seperate all of your triggers and activate one after another disabling the one before.
 
Level 6
Joined
Feb 2, 2005
Messages
205
You wont need the turn off (This Trigger) at all, because you Trigger it via another Trigger. But like Mazurite stated you should also remove the 2seconds of gametime event. Also you should use Run Trigger (checking Conditions). To give a bit feedback on the Trigger itself. If you use loops with combinded Arrays, you could save some space.

  • Example
    • Events
    • Conditions
    • Actions
      • For each Integer tmp 1 to 4 do
        • Loop Actions
          • Environment - Create at Nukeregion[tmp] the weather effect Northrend Blizzard
          • Set Blizzard[tmp] = (Last created weather effect)
          • Environment - Turn Blizzard[tmp] On
This Example will create 4 Blizzards in your 4 Nukeregions. To create an Array you will have to check the field ind the variable menu [ ] array. To use the Arrays later in the loop, you must set them before once (only the static stuff, like regions, units, items). Here The Trigger

  • Example Ini
    • Events
      • Map Ini
    • Conditions
    • Actions
      • Set Nukeregion[1] = nukewint1 <gen>
      • Set Nukeregion[2] = nukewint2 <gen>
      • Set Nukeregion[3] = nukewint3 <gen>
      • Set Nukeregion[4] = nukewint4 <gen>
Also there is a littel Typo in the Trigger
  • Environment - Turn Blizzard On
  • Environment - Turn Blizzard2 Off
  • should be Off
 
Level 4
Joined
Nov 1, 2006
Messages
54
ty for the help, but before u guys replied i fixed this trigger by messing with it. Now it works pll say they see snow on battlenet but one thing. I am the host of the game i CANNOT SEE the weather effects all the others can. Help?
[TRIGGER=GUI Trigger]
Events
Time - Every 2.00 seconds of game time
Conditions
Actions
Trigger - Turn off (This trigger)
Sound - Play NukeCreated <gen>
Wait 7.00 seconds
Wait 20.00 seconds
Sound - Play Tension <gen>
Trigger - Turn on NukeDefault <gen>
Game - Display to (All players) the text: Humanity has in its...
Environment - Turn (Last created weather effect) Off
Environment - Remove (Last created weather effect)
Environment - Create at (Playable map area) the weather effect Northrend Blizzard
Environment - Turn (Last created weather effect) On
Environment - Create Blight for Neutral Hostile across (Entire map)
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Unit - Set life of (Picked unit) to 33.00%)
Wait 250.00 seconds
Environment - Turn (Last created weather effect) Off
Environment - Remove (Last created weather effect)
Environment - Create at (Playable map area) the weather effect Northrend Snow (Heavy)
Environment - Turn (Last created weather effect) On
Wait 250.00 seconds
Game - Display to (All players) the text: Humanity has taken ...
Environment - Turn (Last created weather effect) Off
Environment - Remove (Last created weather effect)
Environment - Create at (Playable map area) the weather effect Northrend Snow (Light)
Environment - Turn (Last created weather effect) On
Wait 250.00 seconds
Game - Display to (All players) the text: The humans have mad...
Environment - Turn (Last created weather effect) Off
Environment - Remove (Last created weather effect)
Environment - Create at (Playable map area) the weather effect Rays Of Light
Environment - Turn (Last created weather effect) On
Trigger - Turn on Nukewinterrestsrt <gen>
[/TRIGGER]
 
Last edited:
Status
Not open for further replies.
Top