- Joined
- Jan 22, 2010
- Messages
- 2,583
Weather System Malfunctioning [Solved]
Hey guys, indomitable1319 here; and now, I need some help with my weather system. The effects that are supposedly applied to the player's unit isn't affecting the unit.
There are two core abilities.
The first one's called Curse [Weather: Rains]; based off Curse. (Banshee)
Level 1 gives you a 5% chance to miss, and Level 2 gives you a 10% chance to miss. When Light Rain happens, Level 1 will be cast on PlayerUnit. When Heavy Rain happens, Level 2 will be cast on PlayerUnit.
The second one's called Impede [Weather: Windy]; based off Endurance Aura.
Level 1 has no effects, so it's like an off switch. Level 2 has a -10% movespeed aura and it activates when the weather is Windy.
Now, there's a fourth type of weather, Normal. Nothing will happen.
Now, Windy weather works, but neither of the Rains work; and when Normal happens, the Light Rain effects still play on the map. Please check my triggers for errors. If you need more information, I'll be happy to PM you the test map.
Thanks for reading, and hopefully, answering! If you need to inspect the map's triggers, PM me and I'll PM back with the map itself.
Solved.
Hey guys, indomitable1319 here; and now, I need some help with my weather system. The effects that are supposedly applied to the player's unit isn't affecting the unit.
There are two core abilities.
The first one's called Curse [Weather: Rains]; based off Curse. (Banshee)
Level 1 gives you a 5% chance to miss, and Level 2 gives you a 10% chance to miss. When Light Rain happens, Level 1 will be cast on PlayerUnit. When Heavy Rain happens, Level 2 will be cast on PlayerUnit.
The second one's called Impede [Weather: Windy]; based off Endurance Aura.
Level 1 has no effects, so it's like an off switch. Level 2 has a -10% movespeed aura and it activates when the weather is Windy.
Now, there's a fourth type of weather, Normal. Nothing will happen.
Now, Windy weather works, but neither of the Rains work; and when Normal happens, the Light Rain effects still play on the map. Please check my triggers for errors. If you need more information, I'll be happy to PM you the test map.
-
Setting Weather Types
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Light)
-
Set Weather[1] = (Last created weather effect)
-
Environment - Turn Weather[1] Off
-
Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
-
Set Weather[2] = (Last created weather effect)
-
Environment - Turn Weather[2] Off
-
Environment - Create at (Playable map area) the weather effect Outland Wind (Heavy)
-
Set Weather[3] = (Last created weather effect)
-
Environment - Turn Weather[3] Off
-
-
-
Weather
-
Events
-
Time - Every 300.00 seconds of game time
-
-
Conditions
-
Events
-
Environment - Turn Weather[Weather_Int] Off
-
Unit - Set level of Impede [Weather: Windy] for Dummy [Weather] 041 to 1
-
Set Weather_Int = (Random integer between 0 to 5)
-
Environment - Turn Weather[Weather_Int] On
-
If (All Conditions) are True, Then (Then Actions), Else (Else Actions)
-
If - Conditions
-
Weather_Int Equal to 1
-
-
Then - Actions
-
Game - Show a text message to (All Players): |c007EBEE1Today's Weather: Light Rain - Your hands get wet and slippery, causing you to have a chance to miss your attacks. (You now have a 5% chance to miss)
-
Unit - Set level of Curse [Weather: Rains] for Dummy [Weather] 041 <gen> to 1
-
Unit - Order Dummy [Weather] 041 <gen> to Undead Banshee - Curse PlayerUnit
-
-
Else - Actions
-
If (All Conditions) are True, Then (Then Actions), Else (Else Actions)
-
If - Conditions
-
Weather_Int Equal to 2
-
-
Then - Actions
-
Game - Show a text message to (All Players): |c007EBEE1Today's Weather: Heavy Rain - Your hands get wet and slippery, water seeps into your helmet and gets into your eyes, causing you to have a chance to miss your attacks. (You now have a 10% chance to miss)
-
Unit - Set level of Curse [Weather: Rains] for Dummy [Weather] 041 <gen> to 2
-
Unit - Order Dummy [Weather] 041 <gen> to Undead Banshee - Curse PlayerUnit
-
Else - Actions
-
If (All Conditions) are True, Then (Then Actions), Else (Else Actions)
-
If - Conditions
-
Weather_Int Equal to 3
-
-
Then - Actions
-
Game - Show a text message to (All Players): |c007EBEE1Today's Weather: Windy - Your steps are impeded by the strength of the gusts of wind. (Your movement speed is reduced by 10%)
-
Unit - Set level of Impede [Weather:Windy] for Dummy [Weather] 041 <gen> to 2
-
If (All Conditions) are True, Then (Then Actions), Else (Else Actions)
-
If - Conditions
-
Weather_Int Equal to 4
-
-
Then - Actions
-
Game - Show a text message to (All Players): |c007EBEE1Today's Weather: Normal - You will not experience anything out of the ordinary.
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
-
Last edited: