• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[General] [Trigger Editor] Day/Night weather

Status
Not open for further replies.
Level 4
Joined
Nov 17, 2015
Messages
91
Hello, I have defined a region for my city.
I'd like rays of moonlight (a default weather effect) to shine down on it during the night.
I'd like rays of light (a default weather effect) to shine on it during the day.

Can anyone tell me the trigger combination to achieve this? Thanks in advance. :goblin_good_job:
 
There is a game event that let you fire trigges on certain times of the day.
  • Game - The in-game time of day becomes == 12.00

There is a GUI function that allows you to create weather.
  • Environment - Create at <RECT> the weather effect <WEATHER>

Use them and you can create weather at any time you want.
Note that there are also functions to enablde/disable weather.
 
Level 4
Joined
Nov 17, 2015
Messages
91
There is a game event that let you fire trigges on certain times of the day.
  • Game - The in-game time of day becomes == 12.00

There is a GUI function that allows you to create weather.
  • Environment - Create at <RECT> the weather effect <WEATHER>

Use them and you can create weather at any time you want.
Note that there are also functions to enablde/disable weather.

I know about those features (thanks for the speedy reply), but in this script, no weather effects at all show up no matter how long I wait.
Here is a picture of my disabled scripts:
jpg_by_darkvinylscratch-d9h1nnv.jpg
 
Last edited:
Level 4
Joined
Nov 17, 2015
Messages
91
I think you need manually to enable the weather effect.

I recommend to create both weather effects and store into variables at start.
In other triggers you can refer to them and enable/disable them.

Hey thanks for the reply! I'll try that out, that'll probably work out just fine. Thanks for the help! :goblin_good_job:
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
In-Game time of day becomes equal to 12:00
In-Game time of day becomes greater than 12:00

You do realize that those two actions are runned almost instantly after each other?

use
In-Game time of day becomes greater than 12:00
In-Game time of day becomes greater than 00:00
instead.

(and enable those triggers)
 
Level 4
Joined
Nov 17, 2015
Messages
91
In-Game time of day becomes equal to 12:00
In-Game time of day becomes greater than 12:00

You do realize that those two actions are runned almost instantly after each other?

use
In-Game time of day becomes greater than 12:00
In-Game time of day becomes greater than 00:00
instead.

(and enable those triggers)

Hey thanks for the reply, that helps a ton!
 
Don't forget to destroy old effects. I do it this way.
  • Day
    • Events
      • Game - The in-game time of day becomes Equal to 6.00
    • Conditions
    • Actions
      • Sound - Remove AllianceGlueScreen <gen> across (Playable map area)
      • Sound - Add GlueScreenWindLoop1 <gen> across (Playable map area)
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Dungeon White Fog (Light)
      • Environment - Turn (Last created weather effect) On
  • MidDay
    • Events
      • Game - The in-game time of day becomes Equal to 12.00
    • Conditions
    • Actions
      • Sound - Remove AllianceGlueScreen <gen> across (Playable map area)
      • Sound - Add GlueScreenWindLoop1 <gen> across (Playable map area)
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Light)
      • Environment - Turn (Last created weather effect) On
      • Sound - Play RollingThunder1 <gen>
If you are using regions, then store effect in a variable like Icemanbo said. I only use one at a time. I think it can bug if you stack them like Dr. Super Good said.
 
Status
Not open for further replies.
Top