• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Spell] A form of Blink Strike (cooldown issue) [Solved]

Level 3
Joined
Sep 9, 2019
Messages
25
The ability is: A blink that teleports you behind and enemy, damages him and steals gold.

  • Blink Strike
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Swift Thrust
    • Actions
      • Set VariableSet BlinkStrike_Caster = (Casting unit)
      • Set VariableSet BlinkStrike_Target = (Target unit of ability being cast)
      • Set VariableSet BlinkStrike_Point[1] = (Position of BlinkStrike_Caster)
      • Set VariableSet BlinkStrike_Point[2] = (Position of BlinkStrike_Target)
      • Set VariableSet BlinkStrike_Angle = (180.00 + (Facing of BlinkStrike_Target))
      • Set VariableSet BlinkStrike_Point[3] = (BlinkStrike_Point[2] offset by 33.00 towards BlinkStrike_Angle degrees.)
      • Unit - Move BlinkStrike_Caster instantly to BlinkStrike_Point[3]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (BlinkStrike_Target belongs to an enemy of (Owner of BlinkStrike_Caster).) Equal to True
        • Then - Actions
          • Set VariableSet BlinkStrike_Gold = (Random integer number between 10 and 150)
          • Unit - Order BlinkStrike_Caster to Attack BlinkStrike_Target
          • Unit - Cause BlinkStrike_Caster to damage BlinkStrike_Target, dealing (40.00 x (Real((Level of Swift Thrust for BlinkStrike_Caster)))) damage of attack type Hero and damage type Normal
          • Player - Add BlinkStrike_Gold to (Owner of (Triggering unit)).Current gold
          • Floating Text - Create floating text that reads (+ + (String(BlinkStrike_Gold))) above BlinkStrike_Caster with Z offset 0.00, using font size 10.00, color (100.00%, 80.00%, 7.00%), and 0.00% transparency
          • Floating Text - Hide (Last created floating text) for (All players)
          • Floating Text - Show (Last created floating text) for (Player group((Triggering player)))
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
        • Else - Actions
          • Unit - Order BlinkStrike_Caster to Stop.
      • Custom script: call RemoveLocation (udg_BlinkStrike_Point[1])
      • Custom script: call RemoveLocation (udg_BlinkStrike_Point[2])
      • Custom script: call RemoveLocation (udg_BlinkStrike_Point[3])
I have two problems.
~First one: When killing an enemy with the ability, it doesn't enter in cooldown.
~Second one: When the ability is max level and I target allies, it doesn't enter in cooldown again.

Every bit of help will be welcome.
 
Indeed. I finally resolved my problem.

1758481171122.png
 
Back
Top