On attack trigger bonus damage based on current health

sunshinex3

You can change this now in User CP.
I don't think this trigger is working i also don't know why it wouldn't be working...
Please help me figure out why this on attack trigger isn't working, i've tested all levels of the ability eviscerate...

The ability is supposed to deal damage equal to 1-10% of attacking units current health.


Trigger:
  • Life Binder Passive
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Alexstrasza (Dragon)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Eviscerate (Alexstrasza) for (Attacking unit)) Equal to 1
        • Then - Actions
          • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Life of (Attacking unit)) x 0.01) damage of attack type Spells and damage type Fire
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Eviscerate (Alexstrasza) for (Attacking unit)) Equal to 2
            • Then - Actions
              • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Life of (Attacking unit)) x 0.02) damage of attack type Spells and damage type Fire
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Eviscerate (Alexstrasza) for (Attacking unit)) Equal to 3
                • Then - Actions
                  • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Life of (Attacking unit)) x 0.03) damage of attack type Spells and damage type Fire
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Level of Eviscerate (Alexstrasza) for (Attacking unit)) Equal to 4
                    • Then - Actions
                      • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Life of (Attacking unit)) x 0.04) damage of attack type Spells and damage type Fire
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Level of Eviscerate (Alexstrasza) for (Attacking unit)) Equal to 5
                        • Then - Actions
                          • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Life of (Attacking unit)) x 0.05) damage of attack type Spells and damage type Fire
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Level of Eviscerate (Alexstrasza) for (Attacking unit)) Equal to 6
                            • Then - Actions
                              • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Life of (Attacking unit)) x 0.06) damage of attack type Spells and damage type Fire
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Level of Eviscerate (Alexstrasza) for (Attacking unit)) Equal to 7
                                • Then - Actions
                                  • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Life of (Attacking unit)) x 0.07) damage of attack type Spells and damage type Fire
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Level of Eviscerate (Alexstrasza) for (Attacking unit)) Equal to 8
                                    • Then - Actions
                                      • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Life of (Attacking unit)) x 0.08) damage of attack type Spells and damage type Fire
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • (Level of Eviscerate (Alexstrasza) for (Attacking unit)) Equal to 9
                                        • Then - Actions
                                          • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Life of (Attacking unit)) x 0.09) damage of attack type Spells and damage type Fire
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • (Level of Eviscerate (Alexstrasza) for (Attacking unit)) Equal to 10
                                            • Then - Actions
                                              • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Life of (Attacking unit)) x 0.10) damage of attack type Spells and damage type Fire
                                            • Else - Actions
                                              • Do nothing
 

Accname

2D-Graphics enthusiast
1) Attacking unit is not equal to triggering unit in thise case. The triggering unit is the attacked unit. So your trigger will only work if the attacked unit is of type "Alexstrasza (Dragon)". (I dont think this is what you wanted, right?)

2) Dont use If-Then-Else statements here. Please. Just multiply 0.01 with the level of the ability.
 

Inflicted

Currently inactive
Also note that this will apply the damage when the attack is made rather than when the damage is received.
Considering using a damage detection system, such as: https://www.hiveworkshop.com/threads/gui-friendly-damage-detection-v1-2-1.149098/

As mentioned by Accname above, your condition is incorrect.
I would also recommend rather making the check if the unit has ability as the hero may not have learned the skill and this trigger would continue to activate on every attack.
 
General chit-chat
Help Users
  • The Helper The Helper:
    Back in the day conan was a young one and his mom was single and I used to tease him that I was going to date his mom and be his daddy - yeah sounds bad now but it was funny at the time
  • The Helper The Helper:
    his mom is my age
  • The Helper The Helper:
    i know right it was pretty funny
  • thewrongvine thewrongvine:
    its pretty funny
    +1
  • tom_mai78101 tom_mai78101:
    Thanks for the context.
    +1
  • The Helper The Helper:
    Happy Hump Day!!!
  • Blackveiled Blackveiled:
    TH old fart gotta have a beer with me one of these days
  • The Helper The Helper:
    I am down anytime Blackveiled
  • Blackveiled Blackveiled:
    count on it then cause you don't live that far from me hah
  • The Helper The Helper:
    really that is cool!
  • The Helper The Helper:
    Hey Tom I added a new Weird tag to the News Prefixes
  • The Helper The Helper:
    What is up Blackveiled?
  • Blackveiled Blackveiled:
    Chillin', lurkin'. :D
  • The Helper The Helper:
    I am working on a bunch of site projects right now doing a bunch of behind the scenes stuff and trying to clean up some stuff that I let slide when I got lazy with the site for a few years...
  • The Helper The Helper:
    Are you in Houston Blackveiled or just in Texas?
  • Blackveiled Blackveiled:
    Houston
  • Blackveiled Blackveiled:
    I've been living here since 2014.
  • The Helper The Helper:
    OK banlord we need to get together soon! The only other member of the site I know in Houston is XXX Conan
  • The Helper The Helper:
    and he does not want none lol
  • The Helper The Helper:
    he put up a picture of his mom one time and she was HOT!
  • The Helper The Helper:
    I wish we still had that
  • Blackveiled Blackveiled:
    Lmao you scared him off I see.
  • The Helper The Helper:
    he will be back
  • The Helper The Helper:
    Conan was like 12 when he started here

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top