Moderator
M
Moderator
12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.
2 Sep 2011
Bribe: It's not MUI.
IcemanBo: Too long as NeedsFix. Rejected.
2 Sep 2011
Bribe: It's not MUI.
Cleaving attacks

Events


Game - GDD_Event becomes Equal to 0.00

Conditions


(Level of Cleaving attacks for GDD_DamageSource) Greater than or equal to 1

Actions


Set Cleave_Level = (Level of Cleaving attacks for GDD_DamageSource)


Set Cleave_Chance = ((Cleave_Level x 10) + 10)


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



If - Conditions




(Random integer number between 1 and 100) Less than or equal to Cleave_Chance



Then - Actions




Set Cleave_Point = (Position of GDD_DamagedUnit)




Set Cleave_Dmg = (GDD_Damage x ((0.20 x (Real(Cleave_Level))) + 0.20))




Custom script: set bj_wantDestroyGroup = true




Trigger - Turn off (This trigger)




Unit Group - Pick every unit in (Units within 150.00 of Cleave_Point matching ((((Matching unit) is sleeping) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of GDD_DamageSource)) Equal to True) and ((Matching unit) Not equal to GDD_DamagedUnit)))) and do (Actions)





Loop - Actions






Special Effect - Create a special effect attached to the chest of (Picked unit) using Objects\Spawnmodels\Human\HumanBlood\HumanBloodLarge0.mdl






Special Effect - Destroy (Last created special effect)






Unit - Cause GDD_DamageSource to damage (Picked unit), dealing Cleave_Dmg damage of attack type Hero and damage type Normal




Custom script: call RemoveLocation(udg_Cleave_Point)



Else - Actions


Trigger - Turn on (This trigger)
(Unit-type of GDD_DamageSource) Equal to Your_Hero
Spell_Fired Equal to False
Spell_Fired Equal to True
Spell_Fired Equal to False