System Refreshing cooldowns without refreshing the ability

F

flyingphippo

Guest
ever tried refreshing the cooldown for every spell without the spell itself being refreshed?

when finding out how to do this, i searched the forums and found some people unable to do this. so i tried to find a solution on my own. hope this thread helps those who couldnt do it!

heres my spell. For 10 seconds, all of the spells for the hero has no cooldown! and the skill itself cant be used for 2 minutes.

Code:
concentration
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Concentration 
    Actions
        Set unit = (Triggering unit)
        Unit - Remove Concentration  from unit
        Trigger - Turn on conceffect <gen>
        Trigger - Turn on conc level up <gen>
        Wait 10.00 seconds
        Trigger - Turn off conceffect <gen>
        Unit - Create 1 dummy for (Owner of unit) at (Position of unit) facing Default building facing degrees
        Unit - Add Cooldown  to (Last created unit)
        Unit - Order (Last created unit) to Human Priest - Inner Fire unit
        Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
        Wait 110.00 seconds
        Trigger - Turn off conc level up <gen>
        Unit - Add Concentration  to unit
the inner fire buff is a buff that is called "cant concentrate for 2minutes"

Code:
conceffect
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        Unit - Reset ability cooldowns for unit
this makes no cooldown

Code:
conc level up
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Concentration 
    Actions
        Unit - Remove Concentration  from unit
        Hero - Modify unspent skill points of unit: Add 1 points
this makes the hero unable to learn it again when the spell is deleted
 

Sim

Forum Administrator
Staff member
Reaction score
534
This is a system.

Please add an example map as an attachment. :)
 

Psiblade94122

In need of sleep
Reaction score
138
hmmm i dont have my editor to check right now but...
Code:
conceffect
    Events
        Unit - A unit starts the effects of an ability
    Conditions
    Actions
        Unit - Reset ability cooldowns for Triggering unit
would this code still work for resetting the abils on cast?
if it dose, i think it would be more effective then haveing a trigger shoot off at .01 seconds
 

Chocobo

White-Flower
Reaction score
409
hmmm i dont have my editor to check right now but...
Code:
conceffect
    Events
        Unit - A unit starts the effects of an ability
    Conditions
    Actions
        Unit - Reset ability cooldowns for Triggering unit
would this code still work for resetting the abils on cast?
if it dose, i think it would be more effective then haveing a trigger shoot off at .01 seconds

This resets abilities every cast.

Though it is better to disable an ability instead of removing it (for heroes; as example).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top