Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
How can you change the damage delt when a unit is damaged?
How can you change the damage delt when a unit is damaged?
01-11-2004, 08:45 PM
#1
Zealot888
Is there a way to just subtract x life from a unit? Right now it seams the only way is to set the units life to itself - what I want.
set (attacked unit's life) = (attacked unit's life) - (x + 30)
01-11-2004, 09:31 PM
#2
Starcraftfreak
Thats the only way.
01-12-2004, 02:08 PM
#3
Darky28
or..
if you want it experience and bounty save, create an invisible unit which casts a damage spell which does that damage to your unit