• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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