SkullBasher / BlinkStrike Jumps

Jonn

New Member
Reaction score
0
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 )


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)
 

Jonn

New Member
Reaction score
0
Thx. It works but another problem rises, It stops the "attack+slam" animation or Blademaster. >_<
 

Arie

Cool Member
Reaction score
5
Well, you have something wrong with the code.

Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster

It means that when that unit does an attack slam animation and stop at the same time.

Try to make it like this:

Unit - Pause SkullBasher_Caster
Animation - Play (Casting unit)'s (attack + slam) animation

Hope it helps you. :):):)
 

lindenkron

You can change this now in User CP
Reaction score
102
Well, you have something wrong with the code.

Animation - Play (Casting unit)'s (attack + slam) animation
Unit - Pause SkullBasher_Caster

It means that when that unit does an attack slam animation and stop at the same time.

Try to make it like this:

Unit - Pause SkullBasher_Caster
Animation - Play (Casting unit)'s (attack + slam) animation

Hope it helps you. :):):)

Actually, you can pause a unit, and then play its animation. The unit pausing only disable the ability to use the unit, but doesnt stop the units animation.
To stop a units animation, you'd have to use Animation - Change Unit's animation speed to 0% of its original speed.

So if you paused a unit, and played its lets say "spell" animation, it would cast it once, and then just stand there paused (but still having its 'look alive' animations running, like breathing etc.)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top