CysticCraze
New Member
- Reaction score
- 12
Ok So I need help with a crazy idea. Someone tried to explain how to do it to me, but im a lil slow. Heres the deal. I need a trigger that will set the lifegauge of a specified unit, to the same healthgauge of a specified enemy unit.
something like this.
The unit I have will have 100 health, enemy units can have anywhere from 100-3000, so there will be some math involved. Can someone get me started on this? I honestly dont know where to start.
Oh and this unit of mine cant die, but enemies can. And when the enemy your attacking dies, my units health will be set back to 100
something like this.
Code:
Events: A unit is attacked
Condition: Unit is equal to <specified player>
Actions: change health of <My specified unit> to the health of attacked unit.
The unit I have will have 100 health, enemy units can have anywhere from 100-3000, so there will be some math involved. Can someone get me started on this? I honestly dont know where to start.
Oh and this unit of mine cant die, but enemies can. And when the enemy your attacking dies, my units health will be set back to 100