Reset cooldown on attack

keeper77

New Member
Reaction score
3
I was wondering if there was a way to reset the cooldown of a units spells when he attacks (using triggers). The main idea behind this is based off a passive spell, and X% chance to reset cooldowns on attacking. I have the idea of how to do the actions, but the event / conditions I do not. Thanks again for the help.
 

keeper77

New Member
Reaction score
3
Err... yes I know how to do that, however, I do not know how to set the events/conditions for a passive spell "% chance per attack to reset cooldowns." I know how to set the actions, but not the event/conditions.
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
Trigger:
  • Reset Chance
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of Acid Bomb for (Attacking unit)) Not equal to 0
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to (20 x (Level of Acid Bomb for (Attacking unit)))
        • Then - Actions
          • Unit - Reset ability cooldowns for (Attacking unit)
        • Else - Actions


This sort of thing can work for any passive chance spell, just compare a random number between 1 and 100 (to simulate percent chance), and compare that with the chance percentage.
 

keeper77

New Member
Reaction score
3
Ah, thank you. I was looking for a "a unit attacks" event, but I forgot that a unit is attacked contains both attacking and attacked. Thank you a lot.
 
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