As the title says, I need to fix the code on how to make my unit "jump" into random points near the target and to prevent him from making a normal attack which stops his slam animation.
( You can also give the omislash code instead )
( You can also give the omislash code instead )
Code:
DarkSlayer SkullBasher
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to (==) Skull Basher
Actions
Set SkullBasher_Caster = (Triggering unit)
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Skull Basher for SkullBasher_Caster) Equal to (==) 1
Then - Actions
Set SkullBasher_Caster = (Triggering unit)
Set SkullBasher_Target = (Target unit of ability being cast)
Set Temp_Point = (Position of SkullBasher_Target)
Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster
Unit - Move SkullBasher_Caster instantly to Temp_Point, facing (Facing of SkullBasher_Target) degrees
Unit - Unpause SkullBasher_Caster
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(SkullBasher_Target belongs to an enemy of (Owner of SkullBasher_Caster)) Equal to (==) True
Then - Actions
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Set SkullBasher_Damage = 100.00
Unit - Cause SkullBasher_Caster to damage SkullBasher_Target, dealing SkullBasher_Damage damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_Point)
Else - Actions
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Skull Basher for SkullBasher_Caster) Equal to (==) 2
Then - Actions
Set SkullBasher_Caster = (Triggering unit)
Set SkullBasher_Target = (Target unit of ability being cast)
Set Temp_Point = (Position of SkullBasher_Target)
Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster
Unit - Move SkullBasher_Caster instantly to Temp_Point, facing (Facing of SkullBasher_Target) degrees
Unit - Unpause SkullBasher_Caster
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(SkullBasher_Target belongs to an enemy of (Owner of SkullBasher_Caster)) Equal to (==) True
Then - Actions
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Set SkullBasher_Damage = 100.00
Unit - Cause SkullBasher_Caster to damage SkullBasher_Target, dealing SkullBasher_Damage damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_Point)
Wait 0.02 seconds
Set Temp_Point = (Random point in (Region centered at (Position of SkullBasher_Target) with size (0.00, 0.00)))
Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster
Unit - Move SkullBasher_Caster instantly to Temp_Point, facing (Facing of SkullBasher_Target) degrees
Unit - Unpause SkullBasher_Caster
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(SkullBasher_Target belongs to an enemy of (Owner of SkullBasher_Caster)) Equal to (==) True
Then - Actions
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Set SkullBasher_Damage = 100.00
Unit - Cause SkullBasher_Caster to damage SkullBasher_Target, dealing SkullBasher_Damage damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_Point)
Else - Actions
Else - Actions
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Skull Basher for SkullBasher_Caster) Equal to (==) 3
Then - Actions
Set SkullBasher_Caster = (Triggering unit)
Set SkullBasher_Target = (Target unit of ability being cast)
Set Temp_Point = (Position of SkullBasher_Target)
Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster
Unit - Move SkullBasher_Caster instantly to Temp_Point, facing (Facing of SkullBasher_Target) degrees
Unit - Unpause SkullBasher_Caster
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(SkullBasher_Target belongs to an enemy of (Owner of SkullBasher_Caster)) Equal to (==) True
Then - Actions
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Set SkullBasher_Damage = 100.00
Unit - Cause SkullBasher_Caster to damage SkullBasher_Target, dealing SkullBasher_Damage damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_Point)
Wait 0.02 seconds
Set Temp_Point = (Random point in (Region centered at (Position of SkullBasher_Target) with size (0.00, 0.00)))
Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster
Unit - Move SkullBasher_Caster instantly to Temp_Point, facing (Facing of SkullBasher_Target) degrees
Unit - Unpause SkullBasher_Caster
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(SkullBasher_Target belongs to an enemy of (Owner of SkullBasher_Caster)) Equal to (==) True
Then - Actions
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Set SkullBasher_Damage = 100.00
Unit - Cause SkullBasher_Caster to damage SkullBasher_Target, dealing SkullBasher_Damage damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_Point)
Wait 0.02 seconds
Set Temp_Point = (Random point in (Region centered at (Position of SkullBasher_Target) with size (0.00, 0.00)))
Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster
Unit - Move SkullBasher_Caster instantly to Temp_Point, facing (Facing of SkullBasher_Target) degrees
Unit - Unpause SkullBasher_Caster
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(SkullBasher_Target belongs to an enemy of (Owner of SkullBasher_Caster)) Equal to (==) True
Then - Actions
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Set SkullBasher_Damage = 100.00
Unit - Cause SkullBasher_Caster to damage SkullBasher_Target, dealing SkullBasher_Damage damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_Point)
Else - Actions
Else - Actions
Else - Actions
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Skull Basher for SkullBasher_Caster) Equal to (==) 4
Then - Actions
Set SkullBasher_Caster = (Triggering unit)
Set SkullBasher_Target = (Target unit of ability being cast)
Set Temp_Point = (Position of SkullBasher_Target)
Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster
Unit - Move SkullBasher_Caster instantly to Temp_Point, facing (Facing of SkullBasher_Target) degrees
Unit - Unpause SkullBasher_Caster
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(SkullBasher_Target belongs to an enemy of (Owner of SkullBasher_Caster)) Equal to (==) True
Then - Actions
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Set SkullBasher_Damage = 100.00
Unit - Cause SkullBasher_Caster to damage SkullBasher_Target, dealing SkullBasher_Damage damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_Point)
Wait 0.02 seconds
Set Temp_Point = (Random point in (Region centered at (Position of SkullBasher_Target) with size (0.00, 0.00)))
Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster
Unit - Move SkullBasher_Caster instantly to Temp_Point, facing (Facing of SkullBasher_Target) degrees
Unit - Unpause SkullBasher_Caster
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(SkullBasher_Target belongs to an enemy of (Owner of SkullBasher_Caster)) Equal to (==) True
Then - Actions
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Set SkullBasher_Damage = 100.00
Unit - Cause SkullBasher_Caster to damage SkullBasher_Target, dealing SkullBasher_Damage damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_Point)
Wait 0.02 seconds
Set Temp_Point = (Random point in (Region centered at (Position of SkullBasher_Target) with size (0.00, 0.00)))
Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster
Unit - Move SkullBasher_Caster instantly to Temp_Point, facing (Facing of SkullBasher_Target) degrees
Unit - Unpause SkullBasher_Caster
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(SkullBasher_Target belongs to an enemy of (Owner of SkullBasher_Caster)) Equal to (==) True
Then - Actions
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Set SkullBasher_Damage = 100.00
Unit - Cause SkullBasher_Caster to damage SkullBasher_Target, dealing SkullBasher_Damage damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_Point)
Wait 0.02 seconds
Set Temp_Point = (Random point in (Region centered at (Position of SkullBasher_Target) with size (0.00, 0.00)))
Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster
Unit - Move SkullBasher_Caster instantly to Temp_Point, facing (Facing of SkullBasher_Target) degrees
Unit - Unpause SkullBasher_Caster
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(SkullBasher_Target belongs to an enemy of (Owner of SkullBasher_Caster)) Equal to (==) True
Then - Actions
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Set SkullBasher_Damage = 100.00
Unit - Cause SkullBasher_Caster to damage SkullBasher_Target, dealing SkullBasher_Damage damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_Point)
Else - Actions
Else - Actions
Else - Actions
Else - Actions
Else - Actions
Custom script: call RemoveLocation(udg_Temp_Point)