hide/unhide question

SyrisX

New Member
Reaction score
3
Are you trying to get abilities to reset? Or trying to avoid them resetting when you use hide?

I believe there is an action to reset ability cooldowns "unit - reset ability cooldown"
 

kaboo

New Member
Reaction score
45
im trying to avoid reseting, actualy its a bit strange:
-i made skill based on fan of knives and nulled all effects it has (except of mana and cooldown)
-and here is the trigger:
Trigger:
  • blade rush
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Blade Rush
    • Actions
      • Set charge_start = (Position of (Casting unit))
      • Unit - Create 1 dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 dummy for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by 900.00 towards (Facing of (Casting unit)) degrees) facing Default building facing degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit - Hide (Casting unit)
      • Unit - Turn collision for (Casting unit) Off
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Unit - Move (Casting unit) instantly to (charge_start offset by ((Real((Integer A))) x 150.00) towards (Facing of (Casting unit)) degrees)
          • Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
          • Unit Group - Pick every unit in (Units within 170.00 of (Position of (Casting unit)) matching ((((Owner of (Matching unit)) is an ally of (Owner of (Casting unit))) Equal to False) and ((Casting unit) Not equal to (Matching unit)))) and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) is in charge_used_targets) Equal to False
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Level of Blade Rush for (Casting unit)) Equal to 11
                    • Then - Actions
                      • Unit - Cause (Casting unit) to damage (Picked unit), dealing (8.00 x (Real((Agility of (Casting unit) (Include bonuses))))) damage of attack type Hero and damage type Normal
                    • Else - Actions
                      • Unit - Cause (Casting unit) to damage (Picked unit), dealing (100.00 + (60.00 x (Real((Level of Blade Rush for (Casting unit)))))) damage of attack type Hero and damage type Normal
                  • Unit Group - Add (Picked unit) to charge_used_targets
                • Else - Actions
          • Wait 0.01 seconds
          • Special Effect - Destroy (Last created special effect)
      • Unit - Unhide (Casting unit)
      • Unit - Turn collision for (Casting unit) On
      • Unit Group - Remove all units from charge_used_targets
      • Selection - Select (Casting unit) for (Owner of (Casting unit))

-it is supposed to move the caster towards 900 range and damage all enemies in his path.
-that works perfectly but when he unhides the spell is ready to be used again
-the strange thing about it is that mana is consumed, and only this spell gets cooldown reset, all others are cooldowning normally
(yes the cooldown is high enough to not end while the hero is moving)
 

kaboo

New Member
Reaction score
45
Trigger:
  • actions
    • Animation - Play (Casting unit)'s attack slam animation
    • Wait 0.30 seconds


problem solved, seems like fan of knives goes into cooldown after it starts the effect :/
anyway, thx for help
 
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