How would I go about triggering the damage for an execute ability?
I checked all the reals/integers in triggers but I cant find anything that would give me the # I am looking for.(Though I assume I am just missing how to do the arithmetic)
Basically, I want it so the more health the unit you are attacking is missing the more damage you do.
so for example 1000 max HP unit who currently has 800health remaining Execute would only do 200 damage. 1000-800=200 damage
If the 1000 max HP unit had 300 remaining health you would do 700 damage 1000-700= 300 damage
this of course before armor and everything, so you don't just auto kill anything once its 50%
life of the target unit isn't the current health,
I thought it would just be a simple units max HP- Units HP, but for some reason they are the same, as this would result in killing the unit if hes at max health.
I checked all the reals/integers in triggers but I cant find anything that would give me the # I am looking for.(Though I assume I am just missing how to do the arithmetic)
Basically, I want it so the more health the unit you are attacking is missing the more damage you do.
so for example 1000 max HP unit who currently has 800health remaining Execute would only do 200 damage. 1000-800=200 damage
If the 1000 max HP unit had 300 remaining health you would do 700 damage 1000-700= 300 damage
this of course before armor and everything, so you don't just auto kill anything once its 50%
life of the target unit isn't the current health,
I thought it would just be a simple units max HP- Units HP, but for some reason they are the same, as this would result in killing the unit if hes at max health.