- Joined
- Oct 18, 2008
- Messages
- 1,591
Hey guys!
I'm just really in problem... How the hell can I make a loop trigger leakless which makes 2 special effects every 0.03-0.05 seconds?
Is it okay like this?
I'm just really in problem... How the hell can I make a loop trigger leakless which makes 2 special effects every 0.03-0.05 seconds?
Is it okay like this?
-
Storms Wrath Loop
-

Events
-


Time - Every 0.03 seconds of game time
-
-

Conditions
-

Actions
-


Set SWRandom = (Random integer number between 1 and 500)
-


Set SWR = (SWCPos offset by (Real(SWRandom)) towards (Random angle) degrees)
-


Special Effect - Create a special effect at SWR using war3mapImported\Lightnings Long.mdx
-


Set SWSE[SWSEC] = (Last created special effect)
-


Special Effect - Create a special effect at SWR using war3mapImported\EMPBomb.mdx
-


Set SWSE[(SWSEC + 1)] = (Last created special effect)
-


Set SWTarget = (Units within 100.00 of SWR matching (((Matching unit) belongs to an enemy of (Owner of SWCaster)) Equal to True))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




SWSEC Less than 8190
-
-



Then - Actions
-




Set SWSEC = (SWSEC + 2)
-
-



Else - Actions
-




Set SWSEC = 0
-
-
-


Unit Group - Pick every unit in SWTarget and do (Actions)
-



Loop - Actions
-




Unit - Cause SWCaster to damage (Picked unit), dealing ((Real((Intelligence of SWCaster (Include bonuses)))) x 1.00) damage of attack type Spells and damage type Lightning
-
-
-


Wait 0.00 seconds
-


Custom script: call DestroyGroup ( udg_SWTarget )
-


Special Effect - Destroy SWSE[SWSEC]
-


Special Effect - Destroy SWSE[(SWSEC + 1)]
-
-
Last edited:








