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

[Trigger] Weather system problem

Status
Not open for further replies.
Level 10
Joined
Nov 24, 2010
Messages
546
Here is my problem
I creat randomized weather system in ceratain region, but it somehow do not create that effect
Well you would have to see triggers
  • Time - Every (Random real number between 5.00 and 7.00) seconds of game time
  • Actions
    • Environment - Remove Weather_Effect[1]
    • Set Weather_Integer = (Random integer number between 1 and 4)
    • Game - Display to (All players) the text: (String(Weather_Integer))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Weather_Integer Equal to 1
      • Then - Actions
        • Environment - Create at Region1 <gen> the weather effect Ashenvale Rain (Heavy)
        • Environment - Turn (Last created weather effect) On
        • Set Weather_Effect[1] = (Last created weather effect)
        • Unit - Create 1 Footman for Player 1 (Red) at (Center of Region1 <gen>) facing Default building facing degrees
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Weather_Integer Equal to 2
      • Then - Actions
        • Environment - Create at Region1 <gen> the weather effect Ashenvale Rain (Heavy)
        • Environment - Turn (Last created weather effect) On
        • Set Weather_Effect[1] = (Last created weather effect)
        • Unit - Create 1 Knight for Player 1 (Red) at (Center of Region1 <gen>) facing Default building facing degrees
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Weather_Integer Equal to 3
      • Then - Actions
        • Do nothing
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Weather_Integer Equal to 4
      • Then - Actions
        • Do nothing
      • Else - Actions
http://www.hiveworkshop.com/forums/pastebin.php?id=jl7w09
 
Status
Not open for further replies.
Top