- Joined
- Jun 27, 2008
- Messages
- 2,557
Hello.
How to reduce damage taken by unit by exactly 40 percent? For example when certain item have been consumed.
I tried playing with damage detection system, I detect the amount taken, then immediately set life of unit to life of unit + damage taken x 0.4, yet for some reason this did not work at all, it still took full damage. I also tried spell book with Defend spell, giving it to unit, ordering to activate Defend and then disabling spellbook for player, it won't work either.
Help would be appreciated. Thanks.
How to reduce damage taken by unit by exactly 40 percent? For example when certain item have been consumed.
I tried playing with damage detection system, I detect the amount taken, then immediately set life of unit to life of unit + damage taken x 0.4, yet for some reason this did not work at all, it still took full damage. I also tried spell book with Defend spell, giving it to unit, ordering to activate Defend and then disabling spellbook for player, it won't work either.
Help would be appreciated. Thanks.
Last edited: