- Joined
- May 10, 2014
- Messages
- 41
Hello!
Spell, that I trying to make should work like this:
1. Hero cast spell on unit;
2. Unit takes damage and specific buff (may be by a spell book, may be by poison - no matter);
3. During the next 30 seconds, everytime target unit will lose mana (use spells, or somebody drain his mana), he will take damage equal to lost mana.
The 1st problem is BUFF...
I plan to use it for a condition (if unit has specific buff)... is any other simple way to identify unit?
The 2nd problem is MANA...
I plan to subtract real variable from health... but how can I catch each mana lost event? And how can I get size of mana lost?
Spell can be used on several units at one time, so storing every unit is no good, i think. Also, I trying not to use Periodic Events and Timers...
Is it possible to realize this? Using GUI and Custom Script?
And without buging the map...
Anyway, Thanks for any help!
Spell, that I trying to make should work like this:
1. Hero cast spell on unit;
2. Unit takes damage and specific buff (may be by a spell book, may be by poison - no matter);
3. During the next 30 seconds, everytime target unit will lose mana (use spells, or somebody drain his mana), he will take damage equal to lost mana.
The 1st problem is BUFF...
I plan to use it for a condition (if unit has specific buff)... is any other simple way to identify unit?
The 2nd problem is MANA...
I plan to subtract real variable from health... but how can I catch each mana lost event? And how can I get size of mana lost?
Spell can be used on several units at one time, so storing every unit is no good, i think. Also, I trying not to use Periodic Events and Timers...
Is it possible to realize this? Using GUI and Custom Script?
And without buging the map...
Anyway, Thanks for any help!