PDA

View Full Version : Help With Unit's HP!


Polkaman
06-07-2008, 4:40 PM
Soz im makin a naruto map (Agian, no not for the contest) and an average unit has 570000 HP, though when the game starts all the preplaced units have like 1 or 2% HP. And when i do the Create Units trigger, it's still like that. Same with Create Units With Properties. Soz im like "WTF I didn't even change anything". Help? Map is attached.

Thanks.

markosmarky
06-07-2008, 4:43 PM
well change the unit's hp to 500000 or to 50000

Polkaman
06-07-2008, 4:45 PM
Other maps have done it.:rolleyes:

Durandal
06-07-2008, 4:59 PM
What are your unit build times set to?

And why 570,000? The maximum acceptable value is 65535, since I believe that's the highest a single byte can go to.

DarkMirror
06-07-2008, 5:53 PM
Actually, you can put 999999999 if you want to. Theres no limit, as far as I know.

Polkaman
06-07-2008, 6:08 PM
heck the 2 maps i posted. They have it.

SilverCrusader
06-07-2008, 6:36 PM
Actually, you can put 999999999 if you want to. Theres no limit, as far as I know.
10144255
^ thats the limit.
I haven't tried it, but thats as high as SCMDraft will let you.

Twitch6000
06-07-2008, 7:53 PM
Polkaman,I tried to tell you on Starcraft,but you wouldn't listen.
Now though since you have given more info...I can say it can be more then just 4 problems.
what is your build time also change its health to 50000 or 500000.

Polkaman
06-07-2008, 8:22 PM
Why 500000 health? I have 570000

Dem0nS1ayer
06-08-2008, 8:13 AM
I thought it was because he put in so much hp, the wireframe looked funky. I remember in one map, the unit had 30k hp, and its wireframe was brown.

ForTheSwarm
06-08-2008, 8:34 AM
I heard you can change the wireframe color using SCMDraft, but I don't think it has anything to do with the unit's HP.

Polkaman
06-08-2008, 2:56 PM
</Topic-Hijack> :P

Twitch6000
06-08-2008, 3:15 PM
I heard you can change the wireframe color using SCMDraft, but I don't think it has anything to do with the unit's HP.
Well messing with the wireframe has to deal with the 8/8 or 6/4 or what/ever thing in scmdraft and SF.

NoobOfLore
06-08-2008, 4:49 PM
When the wireframe has funky colors it means the creator SOMEHOW messed up the HP so it has more than max.
So the unit has 3/2 HP. As in it has more than 100% HP
And about your HP...Yeah, modify the build time...and try to make the HP a more even number. It's easier to deal with that way. You can't even see that much HP in the game, am I correct?

Polkaman
06-08-2008, 10:14 PM
Okay, ill try tat.

Wait change build time up or down

Twitch6000
06-08-2008, 11:14 PM
Okay, ill try tat.

Wait change build time up or down
up ofcourse...

Polkaman
06-09-2008, 12:34 PM
I Did. All Set To 1000. No Luck.

Durandal
06-10-2008, 1:26 AM
10144255

Maybe I'm thinking of shields then, because anything higher than 65535 results in a buffer overflow in-game, from my experience. Maybe unit hit points are controlled by more than one byte, but the map limits are here if you want to see stuff for yourselves.

http://www.staredit.net/maplantis/index.php?pg=wiki;id=23

Polkaman
06-10-2008, 12:14 PM
Nvm, i changed the units HP to about 80000, now works perfectly. =]

Though now i have to convert everything from attacking a 600000 HP unit to a 80000 HP unit :P

Durandal
06-10-2008, 2:11 PM
You'll live.

Polkaman
06-10-2008, 3:44 PM
Barely.