YesNoOk
avatar

Power Gain Equation? (Read 156 times)

Started by BC, November 27, 2014, 08:24:43 pm
Share this topic:

BC

Power Gain Equation?
#1  November 27, 2014, 08:24:43 pm
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
I want to store my characters power gain inside a variable but I'm unsure which triggers/equation would be used. Is there any known equation that mugen uses to build it's own power bar?

I've tried using gethitvar but it doesn't contain the necessary arguments like getpower/poweradd.
click the image to join my forum ;)
Re: Power Gain Equation?
#2  November 27, 2014, 10:36:28 pm
  • *****
  • Video Game Veteran
    • USA
    • gcnmario.free.fr
Can't you force your characters power bar within a variable? In other words, use the Variable to trigger super moves, or restricted moves instead of the power bar itself?

"You must defeat my flaming
dragon punch to stand a chance."
Re: Power Gain Equation?
#3  November 28, 2014, 12:09:56 pm
  • ***
    • USA
I'm not sure if you can actively find "givepower".  As in, I dont think there's a trigger1 = enemy near, givepower =50
So what you may be able to do is convert all of your characters GetPower to a VarAdd. Keep track of it that way. var(718) would become your custom powerbar.

Then you can do a second var that keeps track of power, but doesnt always update.
[State -2, ]
type = varadd
triggerall =sometriggerthat'sthesame
trigger1 = power != var(187) && power >= var(187)
var(718)= power - var(187)

[State -2, ]
type = varset
triggerall =sometriggerthat'sthesame
trigger1 = power != var(187) && power >= var(187)
var(187)= power

Maybe something like that?