I have 3 different heroes which you can buy starting with a low amount of life.
I was working on a trigger to increase the specified heroes life by +1 for every kill he makes.
I have tried setting up a trigger as you can see below, but im kinda stuck on the action.... i was thinking i could put (current life + 1) or sometin in the last sentence but no... if you have any idead, hit me up
Hey, yeh that was propbably it, but now i have the problem that it changes the life of my hero to 46 hp while the hero start with 2000 max life.
this is the code line i got now:
Unit - Set (Killing unit) Maximum Life to (((Triggering unit) Maximum Life (Current)) + 1.0)
@Rice87: Go
Because Killing unit is the killer and Triggering unit (where you take maximum life from) is the the unit that got killed.
So your hero gets enemy unit's life+1.
Hey guys,
I have 3 different heroes which you can buy starting with a low amount of life. I was working on a trigger to increase the specified heroes life by +1 for every kill he makes. I have tried setting up a trigger as you can see below, but im kinda stuck on the action.... i was thinking i could put (current life + 1) or sometin in the last sentence but no... if you have any idead, hit me up
@Rice87: Go
It sounds like you want to be modifying their Maximum life, rather than their Current life.
@Chiquihuite: Go
your right, but the problem which i was searching a solution for stays exactly the same -.-
Unit - Set (Killing unit) Maximum Life to ((Killing unit) Maximum Life (Current))
i cant change current to anything, its either default or current, i possibly need another action so for now the life and maximum life doesnt matter
What you are looking for is probably "Arithmetic (Real)", in which you can do math stuff (use this first and put unit property into one part of it).
@Talon0815: Go
Hey, yeh that was propbably it, but now i have the problem that it changes the life of my hero to 46 hp while the hero start with 2000 max life. this is the code line i got now:
Unit - Set (Killing unit) Maximum Life to (((Triggering unit) Maximum Life (Current)) + 1.0)
@Rice87: Go Because Killing unit is the killer and Triggering unit (where you take maximum life from) is the the unit that got killed. So your hero gets enemy unit's life+1.
@Talon0815: Go
ofcourse man thnx, i wasnt looking properly! :D