Staredit Network

Staredit Network -> UMS Assistance -> Subtracting Health
Report, edit, etc...Posted by Mpstark on 2004-08-09 at 17:52:26
Is there a way to subtract health? I know the way to SET health, but that does me no good.
Report, edit, etc...Posted by DT_Battlekruser on 2004-08-09 at 18:00:30
No, the only way to do that is have a variable representing health. It's a tricky and often debated topic. There is no simple solution. Sorry. mellow.gif
Report, edit, etc...Posted by Staredit.Net Essence on 2004-08-09 at 18:39:04
Doom Dragoon once posted a map on blizzforums that creates an irridated unit next to yours.

So if your unit is organic then it would slowly subtract health. Thats about all i got. :/
Report, edit, etc...Posted by Vindexus on 2004-08-09 at 18:52:45
You could move the unit to another area of the map where it will be attacked then move it back. Have maybe a unit that does 1 dmg every 1 second or something, then move the unit there for 3 seconds to subtract 3 damage.
Report, edit, etc...Posted by (U)Bolt_Head on 2004-08-09 at 19:09:27
I did something like that for a healer deal. Made a set of triggers that would heal your unit by 10hp each time you went to the beacon.

You have to first kill the unit of detecting how long it took to kill it and how much damage that relates to. Then respawn it according to the health it had plus X. Oh well lol
Report, edit, etc...Posted by Revelade on 2004-08-09 at 19:35:37
Here's my map, subtracts hp randomly based when your lurker dies... It's worth a look I guess... Keep in mind that it uses custom points for hp, which is A LOT more flexible than regular battle systems...
Report, edit, etc...Posted by Silent[wolf] on 2004-08-10 at 00:49:13
well i did it once but now i forgot how to sry :/ pokey.gif
Report, edit, etc...Posted by Kenoli on 2004-08-10 at 01:00:47
To heal, you could try spawning a medic for a friendly computer for a short time.. or a unit for a hostile computer to damage it.
Report, edit, etc...Posted by Mpstark on 2004-08-10 at 12:05:47
Well... darn. The impression I got was that subtracting health is either impossible or really really hard to do. Guess I will have to do with out. As for using custom score for health, I'm doing that for a repair trigger, the more your hurt, the more you pay.

In case you wanted to know, I'm making a new map, tenitivly called Mech Arena. You'll see it when it comes out, hopefully in the next week or so.
Next Page (1)