Under the Damage effect the Effect - Vital Fraction Current field.
Can't test this right now, but if I were to set the Effect - Vital Fraction Current to 0.1 every time this damage effect fires the target would lose 10% of its current health in addition to its current effects right?
Yes, basically. Not sure, if the base damage or the percentage is calculated first, though.
Ok I did some extensive testing. Here are the results:
If you want a damage effect to deal % hp damage add the value as a fraction of 1 to the desired fields in the damage effects (30% = 0.300).
If the damage effect is triggered only the amount which would deal the most damage is applied! Afaik there is no way to change this. It is possibly connected to the fact that a damage effect always tries to maximize its effect. For example if you have an effect dealing 10 (20 vs armored, 5 vs bio) and it would encounter a "bio+armored" unit, the effect would deal 20 damage.
Example 2: If your damage effect deals 10% life damage and 10 damage a unit with 5000 hitpoints would suffer 500 damage. A diffrent unit with 10 hitpoints would die.
However, this mechanic will make for a very cool balanced oh-sh*t-button-nuke worker ability in my td map :)
If the damage effect is triggered only the amount which would deal the most damage is applied! Afaik there is no way to change this. It is possibly connected to the fact that a damage effect always tries to maximize its effect. For example if you have an effect dealing 10 (20 vs armored, 5 vs bio) and it would encounter a "bio+armored" unit, the effect would deal 20 damage. Example 2: If your damage effect deals 10% life damage and 10 damage a unit with 5000 hitpoints would suffer 500 damage. A diffrent unit with 10 hitpoints would die.
This makes sense, because you can easily realize the added effect by using 2 separate damage effects. Thanks for the test :)
is there a way to do this with data?
Under the Damage effect the Effect - Vital Fraction Current field.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Can't test this right now, but if I were to set the Effect - Vital Fraction Current to 0.1 every time this damage effect fires the target would lose 10% of its current health in addition to its current effects right?
Yes, basically. Not sure, if the base damage or the percentage is calculated first, though.
Ok I did some extensive testing. Here are the results:
However, this mechanic will make for a very cool balanced oh-sh*t-button-nuke worker ability in my td map :)
This makes sense, because you can easily realize the added effect by using 2 separate damage effects. Thanks for the test :)
@BlacKcuD: Go
Actually that is assuming the Effect - Total field is not set to Combine.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg