max hp
Jan 16 2009, 1:01 am
By: poison_us  

Jan 16 2009, 1:01 am poison_us Post #1

Back* from the grave

Does anybody know the maximum amount of health a unit can have? Units that are preplaced can only have up to like 10k without starting hurt, but spawned units can have....9 mil? thats the highest I've heard.




Jan 16 2009, 1:22 am Roy Post #2

An artist's depiction of an Extended Unit Death

You should get used to the wiki.

Unit HP range: -8388608 to 8388607 1/2 (Source: Wiki - Map Limits)

You could also use armor to make the time to kill the unit longer, or use a Virtual Hit Point system.

Quote from Kenoli
The wiki is in a static state but still contains plenty of useful information. Please check in these sections before posting a question.
Map Making > Reference
Map Making > Tutorials





Jan 16 2009, 1:30 am blacklight28 Post #3



How can a unit have negative HP?



None.

Jan 16 2009, 1:31 am Vi3t-X Post #4



We can do what the SC data is willing to read. :bleh:



None.

Jan 16 2009, 1:34 am Toothfariy Post #5



what the heck does negitive hp do!? i have never heard of that one before



None.

Jan 16 2009, 1:39 am Roy Post #6

An artist's depiction of an Extended Unit Death

Negative hp pretty much sets a unit up for a one-hit-kill. You can have a unit with 0 damage kill a unit with -1000 hp in one shot.




Jan 16 2009, 1:42 am Toothfariy Post #7



i wonder if anyone has actually taken the time to explore this...

u know how the colored wireframes in SCMDraft are possible with that extra box, well i wonder what that would do when coupled with negtive hp



None.

Jan 16 2009, 1:48 am poison_us Post #8

Back* from the grave

I tried a negative HP before and I think it crashed...but that was a while ago. Probably because of a patch thingy
if you have negative shields, even -1, the unit is completely invincible, yet able to be attacked, since SC subtracts the damage from the shields. EMP kinda makes it pointless though.

The wiki doesn't explain vHP, but for my map that probably wont matter because it's probably too complicated for the map I want to use it on.




Jan 16 2009, 1:49 am blacklight28 Post #9



What does it show in-game when it has negative HP? Does it just read as 0? Or does it actually say -(number)/-(number)?



None.

Jan 16 2009, 1:53 am Roy Post #10

An artist's depiction of an Extended Unit Death

Quote from Toothfariy
i wonder if anyone has actually taken the time to explore this...

u know how the colored wireframes in SCMDraft are possible with that extra box, well i wonder what that would do when coupled with negtive hp
No.
Quote from poison_us
I tried a negative HP before and I think it crashed...but that was a while ago. Probably because of a patch thingy
if you have negative shields, even -1, the unit is completely invincible, yet able to be attacked, since SC subtracts the damage from the shields. EMP kinda makes it pointless though.
Negative shields turns the HP invisible, but the unit it still subject to damage. This works for all units, including those who do not actually have shields.
Quote from poison_us
The wiki doesn't explain vHP, but for my map that probably wont matter because it's probably too complicated for the map I want to use it on.
It briefly describes it. I'm sure there's a tutorial floating around here somewhere that goes into more detail.

Quote from blacklight28
What does it show in-game when it has negative HP? Does it just read as 0? Or does it actually say -(number)/-(number)?
It shows the negative value.




Jan 16 2009, 1:55 am poison_us Post #11

Back* from the grave

Quote from Roy
Quote from poison_us
if you have negative shields, even -1, the unit is completely invincible, yet able to be attacked, since SC subtracts the damage from the shields. EMP kinda makes it pointless though.
Negative shields turns the HP invisible, but the unit it still subject to damage. This works for all units, including those who do not actually have shields.

No, the negative shields will absorb the damage and a unit of -1 shields and 1 hp is impossible to kill. I can make a map and post a link if you want.




Jan 16 2009, 2:05 am Roy Post #12

An artist's depiction of an Extended Unit Death

Quote from poison_us
Quote from Roy
Quote from poison_us
if you have negative shields, even -1, the unit is completely invincible, yet able to be attacked, since SC subtracts the damage from the shields. EMP kinda makes it pointless though.
Negative shields turns the HP invisible, but the unit it still subject to damage. This works for all units, including those who do not actually have shields.

No, the negative shields will absorb the damage and a unit of -1 shields and 1 hp is impossible to kill. I can make a map and post a link if you want.

Ah sorry. I forgot that there is an exception for Protoss units. If they have negative shield values and positive HP values, you're right. However, if they have negative HP as well, they will still die in one hit. That EMP fact is interesting, though.

My earlier statement holds true for units that do not have shields.

Triple quote...

Edit: This topic has too many replies to irrelevant "what if" questions... These things only take two minutes to test.

Post has been edited 2 time(s), last time on Jan 16 2009, 2:19 am by Roy.




Jan 16 2009, 2:10 am poison_us Post #13

Back* from the grave

awww...I went ahead and made the map...it has all the possible units attacking a lone high templar, with a ghost and a nuke silo to make nuclear launches too...

Oh, I'm not exactly sure about the EMP thing. I'll test it in a minute [hey! that map does have a use now!]

hmm, I didn't know units without shields will have no HP display...thats cool. But protoss units with both values negative will still die?

What about the triple quote?

EDIT:
Oh, wow

The test map revealed one correct, one false fact, and one nobody cares about: negative shielded-units can be killed, it just takes a really, really, really super-long time. And the EMP does remove the shield [yay]. And irradiate doesn't do anything to a high templar. That too.

I kinda thought this through: this could be considered double-posting, but I think this should be an exception...the subject of the posts are totally different.

Post has been edited 1 time(s), last time on Jan 16 2009, 11:21 am by NudeRaider. Reason: merged posts




Jan 16 2009, 2:33 am Biophysicist Post #14



Uhm. You could just use a trigger and constantly set the units HP to 100% for the same effect. Right?



None.

Jan 16 2009, 2:54 am poison_us Post #15

Back* from the grave

that only works if the units' max HP is below a certain amount [10k ish]. Above that, and it acts like a preplaced unit: it cuts it down to whatever the limit is. If the unit is made after the game starts, it'll have full HP.

The reason I wanted to know the answer to the original question is because I'm making a defense map, and I wanna know what # I can't go over.




Jan 18 2009, 1:44 am Heinermann Post #16

SDE, BWAPI owner, hacker.

-8388608. If a unit takes 1 hp damage, will it follow the rules of an unsigned integer and become 8388607?
If this is true, then you could make for an interesting new concept. Only units that do a small amount of damage could kill it.
What are the effects of setting %hp on a unit with negative health?

I may test these two questions myself, and post back the results.

EDIT: Any damage will kill the unit.
Setting %hp does not work on units with negative hp.

I did find out however, that the maximum damage a unit can deal is 8388607, just like unit HP, the damage will be negative if it's above that, including the upgrades. However, negative damage deals 0.5, and doesn't heal the unit like I hoped.

Post has been edited 3 time(s), last time on Jan 18 2009, 2:22 am by Heinermann.




Jan 18 2009, 2:24 am O)FaRTy1billion[MM] Post #17

👻 👾 👽 💪

SCMDraft fails and doesn't let you input a negative number.

As far as I know, any negative number is one hit kills.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jan 18 2009, 2:48 am Roy Post #18

An artist's depiction of an Extended Unit Death

Quote from O)FaRTy1billion[MM]
SCMDraft fails and doesn't let you input a negative number.

As far as I know, any negative number is one hit kills.

Correct. When SC detects a change in HP below 0, it automatically assumes that the unit has taken some overkill damage (at least that's my theory; in any case, they're one-hit-kills). You know, a sort of "If unit's HP has changed and HP is equal to or less than 0, then kill unit."

I think SCMDraft allows you to put a number higher than 8388607 which will be read as a negative value. Well, more than think. -1000000 = 15777216

If you enter 8388609, the life is -8388607
If you enter 16777215, the life is -1

Basically, Subtract the positive value of the negative number you want from 16777216.

What was this thread about, again? Something about max HP?

Post has been edited 6 time(s), last time on Jan 18 2009, 3:01 am by Roy.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: adelinedfischer, Moose