Hello.. in my map i have a spell called Hurricane which attracts enemies to the caster to melee-range and then damage them depending on the distance they traveled. per exemple the most far away unit will get 100 damage when the most close units will only get 20..
i dont know how to deal damage after the attract thing, and my attract trigger is not very much working ..
id really appreciate some help !!
here are my triggers
trigger 1
trigger 2
i dont know how to deal damage after the attract thing, and my attract trigger is not very much working ..
id really appreciate some help !!
here are my triggers
trigger 1
-
Hurricane Setup
-
Evènements
-
Unité - A unit Initie l'effet d'une compétence
-
-
Conditions
-
(Ability being cast) Egal à Hurricane (Airdancer - 6)
-
-
Actions
-
Set WW_Caster = (Triggering unit)
-
Set WW_PointCaster = (Position of (Triggering unit))
-
Déclencheur - Turn on Hurricane Run <gen>
-
Groupe unité - Pick every unit in (Units within 512.00 of WW_PointCaster matching ((((Matching unit) is A building) Egal à FALSE) and ((((Matching unit) belongs to an enemy of (Owner of WW_Caster)) Egal à TRUE) and (((Matching unit) is alive) Egal à TRUE)))) and do (Actions)
-
Boucle - Actions
-
Groupe unité - Add (Picked unit) to WW_Group
-
Set WWStartPoint = (Position of (Picked unit))
-
Wait ((Distance between WW_PointCaster and WWStartPoint) / 800.00) seconds
-
Unité - Cause (Triggering unit) to damage (Picked unit), dealing (((Real((Agility of (Triggering unit) (Including bonuses)))) x (3.70 + (0.30 x (Real((Level of Hurricane (Airdancer - 6) for (Triggering unit))))))) x ((Distance between WWStartPoint and WW_PointCaster) / 500.00)) damage of attack type Spell and damage type Sonic
-
-
-
-
trigger 2
-
Hurricane Run
-
Evénements
-
Temps - Every 0.02 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
(WW_Caster is dead) Egal Ã* FALSE
-
-
Alors - Actions
-
Groupe unité - Pick every unit in WW_Group and do (Actions)
-
Boucle - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
(Unit-type of (Picked unit)) Différent de Felstone Guardian
-
(Unit-type of (Picked unit)) Différent de Chaodyn
-
(Distance between WW_Knockback[2] and WW_PointCaster) Inférieur ou égal Ã* 512.00
-
-
Alors - Actions
-
Unité - Turn collision for (Picked unit) Off
-
Set WW_Knockback[1] = (Position of (Picked unit))
-
Set WW_Knockback[2] = (WW_Knockback[1] offset by 15.00 towards (Angle from WW_Knockback[1] to WW_PointCaster) degrees)
-
Unité - Move (Picked unit) instantly to WW_Knockback[2]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
(Distance between WW_Knockback[2] and WW_PointCaster) Supérieur ou égal Ã* 100.00
-
-
Alors - Actions
-
Groupe unité - Remove (Picked unit) from WW_Group
-
Unité - Turn collision for (Picked unit) On
-
-
Sinon - Actions
-
-
Custom script: call RemoveLocation(udg_WW_Knockback[1])
-
Custom script: call RemoveLocation(udg_WW_Knockback[2])
-
-
Sinon - Actions
-
Groupe unité - Remove (Picked unit) from WW_Group
-
Unité - Turn collision for (Picked unit) On
-
-
-
-
-
-
Sinon - Actions
-
Déclencheur - Turn off (This trigger)
-
Custom script: call DestroyGroup(udg_WW_Group)
-
-
-
-