Trigger health calculations.

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.

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
 

BarzahdX

Active Member
Reaction score
18
I don't know about the whole 100-3000 thing, because I don't really understand it, but setting your life gauge(life %) is one simple action.

Code:
Unit - Set life of (Triggering Unit) to percentage life of (Attacking Unit)%

Except substitute Triggering and Attacking to whatever you need.. Be sure to notice the "%" at the end, or else it won't work properly.
 

CysticCraze

New Member
Reaction score
12
awesome ty :) +rep

HealthGaugecomplete.jpg


LifeGauge system now, thanks :) looks good ingame also.

Using it for this.
http://www.thehelper.net/forums/showthread.php?t=111953
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top