On attack trigger bonus damage based on current health

sunshinex3

You can change this now in User CP.
Reaction score
7
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
Reaction score
1,462
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
Reaction score
63
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
  • No one is chatting at the moment.
  • Varine Varine:
    No, I'm still looking into them and kind of leaning towards a Rebel T7 at the moment because it's pretty cheap and lenses seem pretty easy to come by. Used ones are only like 3-400 dollars, which is much cheaper than I was planning
  • jonas jonas:
    I can't really recommend you any specific lens or body due to lack of knowledge, but in my experience camera shops are very helpful, especially those that also sell used parts
  • Varine Varine:
    There's only one camera shop in my town and they seem to specialize in film, but I have time before I need it. I'm not in a rush so I'll keep researching them
  • jonas jonas:
    I think since you have such specific needs, you should find a way to give a try for different systems without having to commit to one
  • jonas jonas:
    It would suck to spend 400$ on a system that doesn't have the capability you need
  • jonas jonas:
    and it will probably take a couple of tries to get the settings right
  • Varine Varine:
    It would but I can also just make sure I can return them. The system I have works, it's pretty straightforward and I tested it with a camera I have. All it really is is a little cartridge that holds the transparency film and a white light source behind it that projects the image into the lens
  • Varine Varine:
    I'll have to fuck with the light a bit and try some different lighting methods to get color accuracy, but I have IT8 targets for that
    +1
  • The Helper The Helper:
    get that color accuracy :)
  • Varine Varine:
    They're really helpful for calibrating things because I'm really colorblind, so I'm not great at doing it by eye
    +2
  • Varine Varine:
    Well the long, slow slog of winter has officially begun here
  • Varine Varine:
    I have a bunch of community service I have to do, and I have a feeling there will be a lot of snow shoveling involved now
  • The Helper The Helper:
    don't know why people choose to live in that kind of weather :)
  • Varine Varine:
    Well
  • Varine Varine:
    My job is here
  • Varine Varine:
    I was born here man I didn't choose shit
  • Varine Varine:
    And also, I keep moving away and it doesn't get any better. I moved to San Antonio and shit froze there AND we had blackouts
  • tom_mai78101 tom_mai78101:
    I'm back, suffering from severe jet lag.
  • The Helper The Helper:
    Cold is following your ass around Varine - I just dont think I could handle a snowy winter.
  • The Helper The Helper:
    Welcome Back Tom!
  • The Helper The Helper:
    I hear that taking a Melatonin around your normal bedtime can really fix jet lag
  • tom_mai78101 tom_mai78101:
    Yeah, I also heard about that as well. I think I'm good. I'm just lucky it's the weekend so I have some time to readjust.
    +1

    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