Weather?

Wratox1

Member
Reaction score
22
i made a random weather trigger by setting an array at 0.01, but when i turn on an random weather effect its only number 1,3 and 14 thats shows up, its
Trigger:
  • Environment - Create at Wierd Whether Corridor <gen> the weather effect Ashenvale Rain (Heavy)

Trigger:
  • Environment - Create at Wierd Whether Corridor <gen> the weather effect Dalaran Shield

and
Trigger:
  • Environment - Create at Wierd Whether Corridor <gen> the weather effect Northrend Blizzard


anyone knows why only these 3 shows up and no other?
 

bLu3_eYeS

New Member
Reaction score
31
Did you use:
Trigger:
  • Environment - Turn (Last created weather effect) On

or
Trigger:
  • Environment - Turn RandomEffect On
if its a variable
 

Wratox1

Member
Reaction score
22
Trigger:
  • Weather effects
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Ashenvale Rain (Heavy)
      • Set Weather[1] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Ashenvale Rain (Light)
      • Set Weather[2] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Dalaran Shield
      • Set Weather[3] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Dungeon Blue Fog (Heavy)
      • Set Weather[4] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Dungeon Blue Fog (Light)
      • Set Weather[5] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Dungeon Green Fog (Heavy)
      • Set Weather[6] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Dungeon Green Fog (Light)
      • Set Weather[7] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Dungeon Red Fog (Heavy)
      • Set Weather[8] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Dungeon Red Fog (Light)
      • Set Weather[9] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Dungeon White Fog (Heavy)
      • Set Weather[10] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Dungeon White Fog (Light)
      • Set Weather[11] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Lordaeron Rain (Heavy)
      • Set Weather[12] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Lordaeron Rain (Light)
      • Set Weather[13] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Northrend Blizzard
      • Set Weather[14] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Northrend Snow (Heavy)
      • Set Weather[15] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Northrend Snow (Light)
      • Set Weather[16] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Outland Wind (Heavy)
      • Set Weather[17] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Outland Wind (Light)
      • Set Weather[18] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Rays Of Light
      • Set Weather[19] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Rays Of Moonlight
      • Set Weather[20] = (Last created weather effect)
      • Environment - Create at Wierd Whether Corridor <gen> the weather effect Wind (Heavy)
      • Set Weather[21] = (Last created weather effect)


and

Trigger:
  • Wierd Weather Corridoor
    • Events
      • Time - Every (Random real number between 10.00 and 30.00) seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 21, do (Actions)
        • Loop - Actions
          • Environment - Turn Weather[(Integer A)] Off
      • Environment - Turn Weather[(Random integer number between 1 and 21)] On
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Just a small question (It can't really be this, but still :p), have you unticked "Use Fixed Random Seed" in Preferences in the World Editor ? :eek:
 

Wratox1

Member
Reaction score
22
ye, besides i did some testing by turning on only 1 weather effect but only 1,3 and 14 shows up:banghead: cant really understand this:confused:
 

jig7c

Stop reading me...-statement
Reaction score
123
maybe try this..

Trigger:
  • events
    • map init
    • conditions
    • actions
      • set weather[1]= ashenvale rain (heavy)
      • set weather[2]= ashenvale rain (light)
      • set weather[3]= wind (heavy)
      • ...


and then
Trigger:
  • events
    • elasped game time is .01 seconds
    • conditions
    • actions
      • for each integer A from 1 to 21
        • loop
          • Environment - Create at Wierd Whether Corridor <gen> the weather effect Weather[Integer A]
          • Environment - Turn Weather[(Integer A)] On


it might also remove some early lag during game startup
 

Bogrim

y hello thar
Reaction score
154
There's no such type of variable, jig7c.

Wratox1, I think your problem is that you create way too many weather effects in one region. Instead, create one at a time.

You can do this by creating a trigger for each weather effect:
Trigger:
  • Weather Rain
    • Events
    • Conditions
    • Actions
      • Environment - Create at Weird Weather Corridor <gen> the weather effect Ashenvale Rain (Heavy)
      • Environment - Turn (Last created weather effect) On
      • Set Last_Created_Weather = (Last created weather effect)
Trigger:
  • Weather Wind
    • Events
    • Conditions
    • Actions
      • Environment - Create at Weird Weather Corridor <gen> the weather effect Outland Wind (Heavy)
      • Environment - Turn (Last created weather effect) On
      • Set Last_Created_Weather = (Last created weather effect)
Trigger:
  • Weather Fog
    • Events
    • Conditions
    • Actions
      • Environment - Create at Weird Weather Corridor <gen> the weather effect Dungeon Blue Fog (Heavy)
      • Environment - Turn (Last created weather effect) On
      • Set Last_Created_Weather = (Last created weather effect)

And so on.

Then in your initialization trigger, create a trigger variable array instead:
Trigger:
  • Weather init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Weather_Trigger[1] = Weather Rain <gen>
      • Set Weather_Trigger[2] = Weather Wind <gen>
      • Set Weather_Trigger[3] = Weather Fog <gen>
      • ....

In your periodic trigger, just run a random trigger:
Trigger:
  • Random Weather
    • Events
      • Time - Every (Random real number between 10.00 and 30.00) seconds of game time
    • Conditions
    • Actions
      • Environment - Turn Last_Created_Weather Off
      • Environment - Remove Last_Created_Weather
      • Trigger - Run Weather_Trigger[(Random integer number between 1 and 21)] (ignoring conditions)

I guarantee this will work.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top