• 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 problem

Status
Not open for further replies.
Level 8
Joined
Nov 2, 2007
Messages
160
owkey i want to make a weather which changes every 250 seconds i ive made the following trigger

(sorry but i have a german we version so there are some german parts)

  • wetter
    • Ereignisse
      • Zeit - Elapsed game time is 1.00 seconds
      • Zeit - Every 250.00 seconds of game time
    • Bedingungen
    • Aktionen
      • For each (Integer A) from 1 to 8, do (Actions)
        • Schleifen - Aktionen
          • Set Wetter[(Integer A)] = Wetterarten[(Random integer number between 1 and 6)]
      • For each (Integer A) from 1 to 8, do (Actions)
        • Schleifen - Aktionen
          • Umgebung - Remove AktuellesWetter[(Integer A)]
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • Wetter[(Integer A)] Gleich Wetterarten[2]
            • 'THEN'-Aktionen
              • Umgebung - Create at Wettergebiet[(Integer A)] the weather effect Lordaeron-Regen (leicht)
              • Umgebung - Turn (Last created weather effect) Ein
              • Set AktuellesWetter[(Integer A)] = (Last created weather effect)
            • 'ELSE'-Aktionen
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • Wetter[(Integer A)] Gleich Wetterarten[3]
            • 'THEN'-Aktionen
              • Umgebung - Create at Wettergebiet[(Integer A)] the weather effect Weißer Dungeon-Nebel (dicht)
              • Umgebung - Turn (Last created weather effect) Ein
              • Set AktuellesWetter[(Integer A)] = (Last created weather effect)
            • 'ELSE'-Aktionen
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • Wetter[(Integer A)] Gleich Wetterarten[4]
            • 'THEN'-Aktionen
              • Umgebung - Create at Wettergebiet[(Integer A)] the weather effect Ashenvale-Regen (stark)
              • Umgebung - Turn (Last created weather effect) Ein
              • Set AktuellesWetter[(Integer A)] = (Last created weather effect)
            • 'ELSE'-Aktionen
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • Wetter[(Integer A)] Gleich Wetterarten[6]
            • 'THEN'-Aktionen
              • Umgebung - Create at Wettergebiet[(Integer A)] the weather effect Lordaeron-Regen (stark)
              • Umgebung - Turn (Last created weather effect) Ein
              • Set AktuellesWetter[(Integer A)] = (Last created weather effect)
            • 'ELSE'-Aktionen
the array variables:
wetterarten (1-6) these are the possible kinds of weather (setted in annother trigger) (1 and 5 are norma lweather => no change)
wettergebiete (1-8) here the 8 weather zones are stored
wetter (1-8) here the weather of zone 1-8 is stored
aktuelles wetter (1-8) here the weather effekt is saved in order to remove it when the weather changes

the problem is that this doesn't work in game :(
 
Status
Not open for further replies.
Top