News:

MFG's Character of the Month: October 2026 Voting

Main Menu

Damage and Variable

Started by Kenthos, September 17, 2009, 10:55:31 PM

Previous topic - Next topic

Kenthos

Is there a way to transfer damage number to a Variable? like if they are set to hit you with a damage set to 25, then a variable will record what you got hit by?

Cyanide



In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Kenthos

Thanks, this will make it add the damage to the Variable right?

[State 0, VarAdd]
type = VarAdd
trigger1 = movehit
v = 6
value = gethitvar(damage)

Cyanide

No, that won't i thought you were saving the damage you took, not the damage you did.

Do you want to save the damage that's hitting YOU
Or how much you hit them WITH.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Kenthos

how much they hit me, but now that i'm looking at it that was pretty dumb of me. I got it to work now thanks.