- Joined
- Apr 13, 2008
- Messages
- 1,608
Hi, I want to register Unit Damage Events and I want to execute functions BEFORE the damage would be dealt.
Why I want to do this?
I'm making a map where I handle the units on the map as unit stacks.
Have you ever played any Heroes of Might and Magic games? Well if yes, then just like that, if not then look at this:
http://linuxgazette.net/issue60/misc/andreiana/homm_combat1.jpg
So my units should only die in the Warcraftly means if their "stack" (integer value attached to them) becomes less than 1.
Spirit linking every unit with a dummy unit seemed a brilliant idea but then I had to realize that I can't make the attacked spirit linked unit suffer no damage. Even though you can set the "main target damage factor" field to 0 in the Ability Editor.
Is there a solution to my case?
(Remember, when the unit dies its buffs will be gone when I resurrect it with resurrect or reincarnation.
And I don't want my unit to have Stack*UnitDefaultMaxLife HP.)
Why I want to do this?
I'm making a map where I handle the units on the map as unit stacks.
Have you ever played any Heroes of Might and Magic games? Well if yes, then just like that, if not then look at this:
http://linuxgazette.net/issue60/misc/andreiana/homm_combat1.jpg
So my units should only die in the Warcraftly means if their "stack" (integer value attached to them) becomes less than 1.
Spirit linking every unit with a dummy unit seemed a brilliant idea but then I had to realize that I can't make the attacked spirit linked unit suffer no damage. Even though you can set the "main target damage factor" field to 0 in the Ability Editor.
Is there a solution to my case?
(Remember, when the unit dies its buffs will be gone when I resurrect it with resurrect or reincarnation.
And I don't want my unit to have Stack*UnitDefaultMaxLife HP.)
Last edited: