# [Trigger]Weather system problem

Status
Not open for further replies.

#### Palooo3

Level 10
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

#### Bannar

Level 26
Time - Every (Random real number between 5.00 and 7.00) seconds of game time
>> Heh the periodic value is contant. Game will choose one at the begining and that one will stay untill the end :S

Use my Weather System - next time try search engine first

Status
Not open for further replies.

Replies
4
Views
675
[Solved] Weather Effect
Replies
7
Views
992
Replies
34
Views
3K
Replies
16
Views
1K
Replies
9
Views
2K