News:

MFG's Character of the Month: October 2026 Voting

Main Menu

HITPOINTS

Started by Marius121, April 28, 2008, 11:47:04 PM

Previous topic - Next topic

Marius121

I need help with coding to make HITPOINTS come up everytime my chars take/recieve damage for my AoA project.

RPG Style!!

Also Note: I need the damage to be random everytime too so the same numbers arent popping up all the time something like this.

LP = 15-20 dmg
MP= 20-25 dmg
FP= 25-30 dmg

Anyone follow what I am trying to do here.

I believe I could get this to work if I did it with a HELPER for the Numbers and added so that it reacts to all hits LMF

Anyway If we can even get the points up that way, I would still need to figure out how to make mugen understand that I need the damage to be random, between these above numbers.

Someone please PM ME if they want to help me figure this out, CREDIT WILL BE GIVEN TO HELP IN FINAL CREATION OF AoA.

THANX MUCH.

By Marius121 at 2008-04-29

Bastard Mami

pm is bad.

Quote from: Marius121 on April 28, 2008, 11:47:04 PM
I need help with coding to make HITPOINTS come up everytime my chars take/recieve damage for my AoA project.

This is bad too.

you should focus only on receive.


Quote from: Marius121 on April 28, 2008, 11:47:04 PM

LP = 15-20 dmg
MP= 20-25 dmg
FP= 25-30 dmg

Anyway If we can even get the points up that way, I would still need to figure out how to make mugen understand that I need the damage to be random, between these above numbers.


in the hitdef:
for LP
damage = 15 + random% 6
for MP
damage = 20 + random% 6
FP is homework.

Marius121

#2



yeah I see what you mean fo sho with the recieve thing, thanx with the random DMG works fine, but I still need to figure how to make the points come up proper as a visual.

By Marius121 at 2008-04-29

Bastard Mami

Read on gethitvar and explod, you need to have anims for every number, then call explods based on the damage. I suggest you to use anim 456000 for the 0,456001 for the 1, etc.. then just do something like:

in statedef 5000

explod
anim=456000 + (gethitvar(damage)%10)

explod2
anim=456000 + (gethitvar(damage)%100)/100
etc..

Marius121


By Marius121 at 2008-04-29

make it pots style

You could make numbers as animations and use them as hitsparks.
Quote from: Jango
Quote from: Robert the small
OH, SO YOU WANNA FIGHT!? I'LL SHALALY YA, YA DRIED UP STINKY DICKLICKER!
MY RAPEFEST WILL BE SO GREAT YOU'LL HAVE TO SHUT DOWN YOUR YOUTUBE ACCOUNT LIKE FLOOFIEKUN

Marius121

Quote from: PPF on April 29, 2008, 04:37:13 AM
You could make numbers as animations and use them as hitsparks.

I could do that but then I would not have Hitsparks.... --;

Are you suggesting that I overlap the sparks with Numbers on top of them??

I dont understand what you mean by replacing hitsparks with animations of numbers?

Or is it also possible to have two animations activate simoultaneously upon hit?

Anyway please let me know what you mean -k-

By Marius121 at 2008-04-29

make it pots style

Quote from: Marius121 on April 29, 2008, 05:31:49 AM
Quote from: PPF on April 29, 2008, 04:37:13 AM
You could make numbers as animations and use them as hitsparks.

I could do that but then I would not have Hitsparks.... --;

Are you suggesting that I overlap the sparks with Numbers on top of them??
You can position them over the hitsparks.
Quote from: Jango
Quote from: Robert the small
OH, SO YOU WANNA FIGHT!? I'LL SHALALY YA, YA DRIED UP STINKY DICKLICKER!
MY RAPEFEST WILL BE SO GREAT YOU'LL HAVE TO SHUT DOWN YOUR YOUTUBE ACCOUNT LIKE FLOOFIEKUN

Marius121

Will try to do that and see how it works with random % for LP-MP-FP

Know what I mean?

I cant have the same number always popping up all the time.

So I would have to make at least 5 seperate animations for each point

LP=15
LP=16
LP=17
LP=18
LP=19
LP=20

See what I mean??

Im just not sure how to get this to work yknow?

By Marius121 at 2008-04-29

Cybaster

random % N gives back a random number going from 0 to N-1.
So 15+random%6 would give randomly a number going from 15 to 20.

Bastard Mami

there are two ways, you can have one animation per number that means having a few hundred animations, but it will be easier to code, or you can have one animation per digit which only needs 10 animations but slightly more complex code.