Rage

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.

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
        • Else - Actions
      • Countdown Timer - Start RageTimer as a One-shot timer that will expire in 10.00 seconds


Thanks :D
 
Err not sure.. But that's not the bit i'm having trouble with :/ It's the checking to see if the hero kills another unit during the 10 seconds that I don't know how to do.

Well you don't need to check, because you have a trigger that already checks when a unit is killed! Just add some actions at the end of your trigger to reset the timer and then restart it for 10 seconds.
 
Just a short note, if you set your abilities to ability arrays, you can jsut simple do

For each integer A do:
If level of rage caster equal to integer A
Then give the abilities[integer A]
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      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