YesNoOk
avatar

Powebar in char (Read 1578 times)

Started by Doottah, September 25, 2022, 05:17:27 pm
Share this topic:
Powebar in char
#1  September 25, 2022, 05:17:27 pm
  • *
    • Chile
    • bastian.zenteno@live.cl
Hello, the truth is that I have some knowledge of mugen but when it comes to vars my head can't understand it, I would like someone to explain or help me implement this:

I wish I had a power bar for certain attacks
example : power 1 - power bar 1
                   power 2 - power bar 2
and so...
without occupying the general power bar, and so that each attack drains its own energy without occupying that of the others, I understand that vars is used but the method of doing it I still do not understand, I already have the graph of the power bar, but I can't make it work as I want, since it drains the general energy.

PS: I also use chars with an example of power bars to understand a little how it works, I do not attach images because I find it unnecessary (?)

pd2: I just need to implement that system to be able to finish my char uwu
Re: Powebar in char
#2  September 26, 2022, 02:14:18 pm
  • *****
  • Shame on you!
    • USA
so instead of using          
poweradd = -1000
and similar lines of code, you'll need to switch to VarAdd and VarSet.

You'll also need to make TriggerAll in your CMD file to make sure you cant enter the move when the matching variable isn't high enough.
So instead of
triggerall = Power >= 1000
you'd use
triggerall = Var(718) >= 1000 ;change the 718 to what you need.

This thread might help you connect some ideas together.
https://mugenguild.com/forum/topics/all-things-variables-a-variable-tutorial-129930.0.html

How do you want your power bar(s) to increase in "power"? What is the maximum value? What makes it go down?
vVv Ryuko718 Updated 10/31/22 vVv
Last Edit: September 26, 2022, 02:18:11 pm by Odb718