- Joined
- May 15, 2009
- Messages
- 169
I have looked through a lot of damage detection systems, and it seems as though none of them have what I need...
Is it possible to combine "A unit is attacked" with "A unit takes damage"?
Example:
Foul Earth is considered damage; if I set the tick time on it to .2 and I have an ability that heals me when I take damage. I get healed a lot. This is bad.
I have 50% evasion; I am attacked. though 50% of the attacks miss, I still heal on every attack. This is bad.
What I need is something along the lines of checking if after a unit is attacked, he takes damage or not; and to check if the damage is from a spell, or an attack. (Some spells are actually counted as attacks, not sure why, but immo is, if you use "a unit is attacked").
This would be easy; if there wasnt a delay between the time an attack is made; and when the damage is dealt. On long range, slow missile units; this time can be very noticeable.
Anyone got an idea? Is there a system made to detect this that I havent found yet?
Is it possible to combine "A unit is attacked" with "A unit takes damage"?
Example:
Foul Earth is considered damage; if I set the tick time on it to .2 and I have an ability that heals me when I take damage. I get healed a lot. This is bad.
I have 50% evasion; I am attacked. though 50% of the attacks miss, I still heal on every attack. This is bad.
What I need is something along the lines of checking if after a unit is attacked, he takes damage or not; and to check if the damage is from a spell, or an attack. (Some spells are actually counted as attacks, not sure why, but immo is, if you use "a unit is attacked").
This would be easy; if there wasnt a delay between the time an attack is made; and when the damage is dealt. On long range, slow missile units; this time can be very noticeable.
Anyone got an idea? Is there a system made to detect this that I havent found yet?