The_Reaping
Member
- Reaction score
- 2
Okay, so my ability rage is a passive ability that whenever my hero kills a unit, he recieves a rage counter that increases his damage and attack speed by a small amount but can stack up to 5 times. Each counter lasts 10 seconds, but if the hero kills another enemy before the timer expires, the timer resets and the rage counter increases.
My problem: I don't know how to reset the timer after he kills another unit.. :/
The trigger I have at the moment is.
Thanks
My problem: I don't know how to reset the timer after he kills another unit.. :/
The trigger I have at the moment is.
Trigger:
- Rage Counters
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Killing unit)) Equal to Rage Demon
- Actions
- Set Caster = (Killing unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Dying unit) belongs to an enemy of (Owner of Caster)) Equal to True
- Then - Actions
- Set RageCounter = (RageCounter + 1)
- Floating Text - Create floating text that reads (String(RageCounter)) at (Position of Caster) with Z offset 90.00, using font size 15.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Rage for Caster) Equal to 1
- Then - Actions
- Unit - Add Rage Attack Speed (Level 1) to Caster
- Unit - Add Rage Damage (Level 1) to Caster
- Unit - Set level of Rage Attack Speed (Level 1) for Caster to RageCounter
- Unit - Set level of Rage Damage (Level 1) for Caster to RageCounter
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Rage for Caster) Equal to 2
- Then - Actions
- Unit - Add Rage Attack Speed (Level 2) to Caster
- Unit - Add Rage Damage (Level 2) to Caster
- Unit - Set level of Rage Attack Speed (Level 2) for Caster to RageCounter
- Unit - Set level of Rage Damage (Level 2) for Caster to RageCounter
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Rage for Caster) Equal to 3
- Then - Actions
- Unit - Add Rage Attack Speed (Level 3) to Caster
- Unit - Add Rage Damage (Level 3) to Caster
- Unit - Set level of Rage Attack Speed (Level 3) for Caster to RageCounter
- Unit - Set level of Rage Damage (Level 3) for Caster to RageCounter
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Rage for Caster) Equal to 4
- Then - Actions
- Unit - Add Rage Attack Speed (Level 4) to Caster
- Unit - Add Rage Damage (Level 4) to Caster
- Unit - Set level of Rage Attack Speed (Level 4) for Caster to RageCounter
- Unit - Set level of Rage Damage (Level 4) for Caster to RageCounter
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Else - Actions
- If - Conditions
- Countdown Timer - Start RageTimer as a One-shot timer that will expire in 10.00 seconds
- Events
Thanks