Staredit Network

Staredit Network -> UMS Assistance -> Can you 'read' % of life?
Report, edit, etc...Posted by Shift- on 2006-12-02 at 05:22:14
Is there any way to read a units % of life at a location?
If there isn't, damn... If there is, could someone point me in the right direction? =D

(Probably been asked quite a few times, but I can't seem to find a thread with it. u.u)

Oh and also, is it possible to give units to player 12?

Thanks in advance~
Report, edit, etc...Posted by JaFF on 2006-12-02 at 07:04:46
No, you can't detect a unit's HP without EUD's. The only way for you is Virtual Hit Points.

It's a method of holding the value of a unit's life in a form of a deathcounter (for example). To detect damage so you can reduce the deathcounter's value you must have burrowed units under your unit, so the burrowed units will be attacked instead of your main unit (make the unit invincible so the burrowed units become the target). Now, with each burrowed unit's death, you reduce the deathcounter to a value you want to, and create a new burrowed unit underneath your unit.

Deathcounters are more flexible - you can "read" their value. Use the "player X has suffered atleast/at most/exactly N deaths of Y unit" condition.
Report, edit, etc...Posted by Shift- on 2006-12-02 at 08:41:45
Woah, thanks for help. Sounds good too.
But, i was going to do it for a building, would it work the same way?

and, question from before, can you give units to player 12?
Report, edit, etc...Posted by JaFF on 2006-12-02 at 08:54:59
Virtual HP tutorial

And yes, you can give units to P12.
Report, edit, etc...Posted by Undead-Fox on 2006-12-06 at 12:19:27
Wait, you should be able to still detect it with EUD's... all it is, is detection, thus, a condition, not an action. EUD Conditions are still legal.
Report, edit, etc...Posted by Zeratul_101 on 2006-12-06 at 12:29:40
its technically possible... but its not as easy as you seem to think it is...
Report, edit, etc...Posted by spinesheath on 2006-12-06 at 12:35:11
Also, don't forget that it is a unit at a location, no certain unit in the units list. Impossible with less than 100,000,000 triggers.
Next Page (1)