troylowyee
Active Member
- Reaction score
- 0
I am making a hero,but there is this skill where he slashes a target unit 10 time dealing 250 damage,i made that but i do not know why there is no cooldown.
Lightning Slash
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Lightning Slash
Actions
Set LS_Caster = (Triggering unit)
Set LS_CasterLoc = (Position of LS_Caster)
Set LS_Target = (Target unit of ability being cast)
Set LS_TargetLoc = (Position of LS_Target)
Special Effect - Create a special effect attached to the weapon of (Triggering unit) using Abilities\Spells\Orc\LightningBolt\LightningBoltMissile.mdl
Set LightningSlashSE = (Last created special effect)
Unit - Make LS_Caster Invulnerable
Animation - Change LS_Caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
Selection - Remove LS_Caster from selection
Unit - Move LS_Caster instantly to (Position of LS_Target)
Custom script: call RemoveLocation(udg_LS_CasterLoc)
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Animation - Change (Triggering unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Unit - Make (Triggering unit) Vulnerable
Selection - Add (Triggering unit) to selection for Player 1 (Red)
Special Effect - Destroy LightningSlashSE
Lightning Slash
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Lightning Slash
Actions
Set LS_Caster = (Triggering unit)
Set LS_CasterLoc = (Position of LS_Caster)
Set LS_Target = (Target unit of ability being cast)
Set LS_TargetLoc = (Position of LS_Target)
Special Effect - Create a special effect attached to the weapon of (Triggering unit) using Abilities\Spells\Orc\LightningBolt\LightningBoltMissile.mdl
Set LightningSlashSE = (Last created special effect)
Unit - Make LS_Caster Invulnerable
Animation - Change LS_Caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
Selection - Remove LS_Caster from selection
Unit - Move LS_Caster instantly to (Position of LS_Target)
Custom script: call RemoveLocation(udg_LS_CasterLoc)
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Wait 0.04 seconds
Sound - Play MetalLightSliceFlesh2 <gen>
Animation - Play LS_Caster's attack animation
Unit - Cause LS_Caster to damage LS_Target, dealing (250.00 x (Real((Level of Lightning Slash for LS_Caster)))) damage of attack type Spells and damage type Normal
Animation - Change (Triggering unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Unit - Make (Triggering unit) Vulnerable
Selection - Add (Triggering unit) to selection for Player 1 (Red)
Special Effect - Destroy LightningSlashSE