![]() |
|
[solved] More than 500?????how could it be? - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7) +--- Forum: Data Changing (https://lf-empire.de/forum/forumdisplay.php?fid=11) +---- Forum: Solved Problems (https://lf-empire.de/forum/forumdisplay.php?fid=14) +---- Thread: [solved] More than 500?????how could it be? (/showthread.php?tid=7462) Pages:
1
2
|
[solved] More than 500?????how could it be? - A-Man - 01-31-2012 My problem is that I have a type 0 state 3000 ball with a negative injury in it. When the ball hits the character, he gains that amount. However if the character hp is 500 the hp bar goes all dark red. when he receive another ball the character hp goes empty. And now when I hit that character with a normal attack his hp bar goes dark red again then normal as if the character had gained more than 500 hp points. Is there any explaining for this??? Regards, A-MAN RE: More than 500?????how could it be? - Silverthorn - 01-31-2012 Health-bars are optimized for 500hp. That's hardcoded. It guarantees a flawless working under normal circumstances. In fact, you can increase the normal red to ~510 or so ![]() I haven't checked out the logic behind the bar-drawing, but I assume it's just some random division-stuff (seeing that around 5hp or something like that map onto 1px) together with modulo-madness. Generally, you can get as many hp as possible (or as many as the variable-type supports (guess something like 2^32)), it's just that the hp-bar doesn't work then. This is the reason why it's good style to spawn a milk bottle after healing to revert the hp to 500 in case it was over (refer to >this<). @v: harr harr, I'm a ninja
RE: More than 500?????how could it be? - empirefantasy - 01-31-2012 This is what happen when HP goes more than 500.I think it's known. Characters don't loose a single point of HP when they become so. If you haven't play this http://www.lf-empire.de/en/lfe-fileplanet/mods/631-potion-lf2 ,here is such effect and some similar things as i remember,if you are interested. Fast writer BP RE: More than 500?????how could it be? - YinYin - 01-31-2012 too much hp will also delete or kill a character ... neat side effect RE: More than 500?????how could it be? - Silverthorn - 01-31-2012 (01-31-2012, 06:17 PM)YinYin Wrote: too much hp will also delete or kill a character ... neat side effect Do you remember the limit that was needed for it to happen? Never tested it that far
RE: More than 500?????how could it be? - bashscrazy - 01-31-2012 (01-31-2012, 06:17 PM)YinYin Wrote: too much hp will also delete or kill a character ... neat side effect really? Didn't know that. (no sarcasm intended) That's pretty c00l RE: More than 500?????how could it be? - symaroth1 - 02-01-2012 can healing a character kill it if its mark is 550 hp? in not into dc much but im a much better dcer than spriter @everyone: havent been on lately been to bored RE: More than 500?????how could it be? - Hero destroyer - 02-01-2012 (01-31-2012, 06:17 PM)YinYin Wrote: too much hp will also delete or kill a character ... neat side effectAre you sure? I know exactly that the char will die in stage mode, but it works fine in VS or battle mode. I gained about 10000 hps and the bar goes blank, but nothing goes wrong.(One of my self-made, over-powerd char. )To topic: Yeah, if you don't want to have that over-flowing hp, use a techniques like this: Code: <frame> 360 heal500
pic: 84 state: 3 wait: 1 next: 362 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 40 y: 40 action: 20 dvx: 0 dvy: 0 oid: 122 facing: 0
opoint_end:
wpoint:
kind: 1 x: 40 y: 40 weaponact: 20 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 362 heal500
pic: 84 state: 17 wait: 1 next: 363 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 40 y: 40 weaponact: 20 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 363 heal500
pic: 84 state: 17 wait: 2 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_j: 0 hit_d: 0
wpoint:
kind: 1 x: 40 y: 40 weaponact: 1000 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>RE: More than 500?????how could it be? - A-Man - 02-01-2012 so you are saying that spawning a milk will solve the problem.... is there any way I can tell how much hp and mp the milk will recover?? RE: More than 500?????how could it be? - Silverthorn - 02-01-2012 (02-01-2012, 05:33 AM)A-MAN Wrote: is there any way I can tell how much hp and mp the milk will recover??The milk in that trick is not giving you any remarkable amount of hp. It's just that it'll limit your hp to 500 max because that's hardcoded. The actual amount you want to restore has to happen via an additional object running on state 18 with negative injury etc. |