Stacking Damage Loss (Dilema)

Pigger

New Member
Reaction score
13
I'm back again and full of questions....again. I'm working on a spell right now that reduces an attacker's damage by a percentage, and by and increasing percentage the more they attack. I have made the dummy abilities for it using cripple and the orb of slow, there are four levels to this ability, each level the percentage damage reduction goes up by a set amount. Now, first level for example goes up by 1% every level of the ability, to a cap of 50%. I can trigger everything for the very first attack on the unit, spawning a dummy unit and ordering it to attack, but here comes the problem. I have no clue how to make it count however many attacks are made (The buff duration of the damage reduction is 3 seconds) within the 3 seconds to increase the level every time the attacker attacks. (If any clarification to this jumble of words is needed please ask, I'd love to figure this out).

Thanks,
Pigger
 
Add all your pre-placed units/ buildings and newly created units/ buildings to event "unit takes damage" then use comparison to check does damage done unit equal to your unit who has ability. If yes increase counter.
 
Just a note: Unit Takes Damage will register any kind of damage inflicted on a target, even damage from abilities and spells.
 
Find an ability which reduces by percent damage received.I think hardened skin is what you need but i am not sure.Give to this ability 50 lvls.

Code:
Event
a unit is attacked
Condition
attacked unit has buff (your buff)
Actions
Set level of hardened skinn for attacked unit to ((level of hardened skinn) + 1)

Thats what i think.:D
 
@CrazyWolf

I was actually looking for a way to make it reduce the attacker's damage and show the red "-##" for the attacker, but the way I seem to be going about it isn't working as smoothly as I thought and I never thought of Hardened Skin, I may just end up doing that. Thank you sir.

EDIT: On second thought it seems Hardened Skin only uses real numbers, not percentages :(
 
Heres what I suggest you to do:
You know the Orb of Corruption? The orb on the undead team, if you give it to lich in a melee game, and you got like level 2 coil, = GG? Yes, you know that orb? good! Well
I suggest you arg..how can I explain this...Yes, you create the ability, with 4 levels...and proper tooltips etc... With 0 armor reduction!!!! The armor reduction comes from a "dummy ability", then you can simply add/remove/increase the level of this dummyability. Like this:
Code:
Untitled Trigger 002
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Hero Ability Corruption Bonus for (Attacking unit)) Equal to 1
            Then - Actions
                Unit - Increase level of Dummy Attack Corruption Bonus for (Attacked unit)
            Else - Actions
Something simple as that.. and just check if the unit has buff (the attacked one) then to that.. if not, then dont do that;) Jesus!;) But this will not be percentage (%)... therefore, you might add..arg ill edit;)
Cheerio! Hope you got my point^^

Edit; do as I've said above, buuut, instead of adding this ability above (corruption whatever) to the hero that is attacking, you can always add "Devotion Aura" to the TARGET! make it % and NEGATIVE! -1 and check "percentage" to self and range 88 and ehm...hide it (spellbook whatever;)) (make it unit ability OFC! with 100 levels or so..)
And yes, thats mostly it, remember to change the buff color, with a color code type red! and yes...love you 2!=)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/
  • The Helper The Helper:
    Happy Thursday!
  • Ghan Ghan:
    I'm not so sure, there's still a lot of Thursday left for it to become unhappy.
    +3
  • The Helper The Helper:
    still a few hours
  • The Helper The Helper:
    Its Friday!!!!
    +1
  • Ghan Ghan:
    Thursday 7/10 would Thursday again
    +3

      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