- Joined
- Feb 28, 2013
- Messages
- 1,898
Hello, i would like to ask what's wrong with my triggers, i can't figure out how to make it work.
The goal is when the storm duration ends all the collector units (collector without water) should have been replaced with a new unit (collector with water).
Edit: Yes i did convert Real to Integers, im sure there's something wrong with that part. Also, i've set the divisor to "/ 5" at the second trigger because the loop at the third trigger is set to 5 seconds. There are also 64 water collectors (empty) placed.
The goal is when the storm duration ends all the collector units (collector without water) should have been replaced with a new unit (collector with water).
Edit: Yes i did convert Real to Integers, im sure there's something wrong with that part. Also, i've set the divisor to "/ 5" at the second trigger because the loop at the third trigger is set to 5 seconds. There are also 64 water collectors (empty) placed.
-
Rad Storm Init
-
Events
-
Time - Elapsed game time is 0.00 seconds
-
-
Conditions
-
Actions
-
Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Light)
-
Set Storm_Weather = (Last created weather effect)
-
Set Storm_Countdown = 5.00
-
Set Storm_Duration = 30.00
-
Set Storm_CountdownInt = (Integer(Storm_Countdown))
-
Set Storm_DurationInt = (Integer(Storm_Duration))
-
Environment - Turn Storm_Weather Off
-
Trigger - Run Rad Storm Setup <gen> (ignoring conditions)
-
-
-
Rad Storm Fill Water Collectors
-
Events
-
Conditions
-
Actions
-
Set Storm_MathStuff = (Storm_DurationInt / 5)
-
Set Storm_WaterCollectorsGroup = (Random ((Number of units in (Units of type Rain Collector (Without Water))) / Storm_MathStuff) units from (Units of type Rain Collector (Without Water)))
-
Unit Group - Pick every unit in Storm_WaterCollectorsGroup and do (Actions)
-
Loop - Actions
-
Unit - Add a 0.03 second Generic expiration timer to (Picked unit)
-
-
-
Custom script: call DestroyGroup(udg_Storm_WaterCollectorsGroup)
-
-
-
Rad Storm Loop
-
Events
-
Time - Every 5.00 seconds of game time
-
-
Conditions
-
Actions
-
Set Storm_Sound = (Last played sound)
-
Sound - Play MonsoonLightningHit <gen>
-
Cinematic - Fade in over Storm_RealLoop seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 90.00% transparency
-
Custom script: call SetDayNightModels("Environment\\DNC\\DNCDungeon\\DNCDungeonTerrain\\DNCDungeonTerrain.mdl" , "Environment\\DNC\\DNCDungeon\\DNCDungeonUnit\\DNCDungeonUnit.mdl")
-
Wait 0.05 seconds
-
Custom script: call SetDayNightModels("Environment\\DNC\\DNCAshenvale\\DNCAshenvaleTerrain\\DNCAshenvaleTerrain.mdl" , "Environment\\DNC\\DNCAshenvale\\DNCAshenvaleUnit\\DNCAshenvaleUnit.mdl")
-
Trigger - Run Rad Storm Fill Water Collectors <gen> (ignoring conditions)
-
Sound - Stop Storm_Sound After fading
-
Sound - Destroy Storm_Sound
-
-
Last edited: