Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
What is the value of this "damage" ?splashes damage
sorry if i wasnt clear enough but yeah a skill like cleave would work, but there also has to be a percent chance of slow, also the units will take damage. But how do I use a damage detection system
Remember, the shape of the "cleaving AOE" is not circle, but rather conical shape, draws outwards towards attacker's facing angle.Thx for link and i got the system to work as far as I know, but for the AoE, I need it so the units around the targeted unit is affected by slow. Also i think some thing like Orb of Annihilation would be a better skill to use rather than cleave.
Cleaving Stun

Events

Conditions


(Level of Cleaving Stun for (Damage source)) Greater than 0

Actions


Set CS_Chance = 30.00


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



If - Conditions




(Random percentage) Less than or equal to CS_Chance



Then - Actions




Set CS_SourcePoint = (Position of (Damage source))




Set CS_TargetPoint = (Position of (Triggering unit))




Set CS_Angle = (Angle from CS_SourcePoint to CS_TargetPoint)




Set CS_Distance = ((Distance between CS_SourcePoint and CS_TargetPoint) - 50.00)




For each (Integer CS_Int) from 1 to 5, do (Actions)





Loop - Actions






Set CS_CleavePoints = (CS_TargetPoint offset by CS_Distance towards CS_Angle degrees)






Set CS_Targets = (Units within 100.00 of CS_CleavePoints matching (((Matching unit) belongs to an enemy of (Owner of (Damage source))) Equal to True))






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







Loop - Actions








Unit - Create 1 Caster Dummy for (Owner of (Damage source)) at CS_CleavePoints facing Default building facing degrees








Unit - Add Stun to (Last created unit)








Unit - Order (Last created unit) to Neutral - Firebolt (Picked unit)








Unit - Add a 1.00 second Generic expiration timer to (Last created unit)






Set CS_Angle = (CS_Angle + 20.00)






Set CS_Distance = (CS_Distance + 12.50)






Custom script: call RemoveLocation (udg_CS_CleavePoints)






Custom script: call DestroyGroup (udg_CS_Targets)






Game - Display to (All players) the text: (String(CS_Int))




Custom script: call RemoveLocation (udg_CS_SourcePoint)




Custom script: call RemoveLocation (udg_CS_TargetPoint)



Else - Actions
Set CS_Angle = (Angle from CS_SourcePoint to CS_TargetPoint)
Set CS_Angle = ((Angle from CS_SourcePoint to CS_TargetPoint) - 40.00)
Set CS_Chance = 30.00
Basically I placed MortAr's trigger actions into an if/then/else, with the condition checking a random percentage (real between 0.00 and 100.00) against a preset chance variable.
(Level of Cleaving Stun for (Damage source)) Greater than 0
