How do I get between 1 - 30 units without adding 30 if then else then statements which that process usually doesnt work for me anyhow?
O let me explain what im trying to do... basically im trying to make an item that even distributes damage
O let me explain what im trying to do... basically im trying to make an item that even distributes damage
-
Stat Aura
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


((Triggering unit) belongs to an ally of Player 1 (Red)) Equal to True
-
-

Actions
-


Custom script: set bj_wantDestroyGroup = true
-


Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






(Number of units in (Units in (Playable map area))) Equal to 5
-
-





Then - Actions
-






Set DT = (Damage taken)
-






Set unts = (Number of units in (Units in (Playable map area)))
-






Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Undead\CarrionSwarm\CarrionSwarmDamage.mdl
-






Special Effect - Destroy (Last created special effect)
-






Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - ((DT x 0.24) / 5.00))
-
-





Else - Actions
-
-
-
-
-









