YesNoOk
avatar

Building power by walking forwards? Like in DBFZ. How do I do that? (Read 572 times)

Started by Mimikyutest77, October 09, 2019, 09:52:18 pm
Share this topic:
Building power by walking forwards? Like in DBFZ. How do I do that?
#1  October 09, 2019, 09:52:18 pm
  • avatar
  • **
    • UK

  • Online
In Dragon Ball FighterZ you steadily gain power as you walk forwards. It's clearly inspired by the Tension system in the previous Guilty Gear game only simplified, so it builds your meter instead of a separate meter. Also you don't lose that meter by walking back or staying still.

How do I add something like that in mugen? I think I would need to custom state 20, my walking forwards state. I know how to do that but not what code would achieve this gradual build of power while still letting me walk forwards.
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#2  October 10, 2019, 12:22:09 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
In statedef -2

[State -2]
type = poweradd
Trigger1 = stateno=20
Value = xxxx
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#3  October 14, 2019, 03:40:57 am
  • avatar
  • **
    • UK

  • Online
Sorry, that didn't work. Even when I set the value to 1000, my unchanged Kung Fu Man walking forwards state won't give me power.

Am I missing something obvious? That DBFZ "gradual buildup of power as you advance" is what I'm after. It rewards players for being aggressive and cool with free meter.
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#4  October 14, 2019, 04:13:06 am
  • ***
  • CPU Purple Heart
    • USA
    • www.dailymotion.com/2a8130871d2742d2f4da3b069
 Put a poweradd in state 20 that gives a certain amount of power every tick (or, if you want longer intervals, use persistent = (how many ticks you want it to occur) whenever vel x > 0. It's not really hard at all, I feel like you're not actually doing the research because these questions are really simple things that can be figured out from reading the documentations that come with MUGWN.
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#5  October 14, 2019, 04:55:41 am
  • avatar
  • **
    • UK

  • Online
Put a poweradd in state 20 that gives a certain amount of power every tick (or, if you want longer intervals, use persistent = (how many ticks you want it to occur) whenever vel x > 0. It's not really hard at all, I feel like you're not actually doing the research because these questions are really simple things that can be figured out from reading the documentations that come with MUGWN.

Sorry, I'm legally retarded but I'm trying my best. I don't know how to make this poweradd activate every tick. I don't know what you mean by documentation either.
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#6  October 14, 2019, 11:45:23 am
  • ***
    • Brazil
    • deathscythemugen.neocities.org
Code:
[State 20, PowerAdd]
type = PowerAdd
trigger1 = 1
value = 5

Put this under statedef 20. If there is no statedef 20, create one for your character (you can copy it from common1.cns)

Edit: Ah, I noticed you want it only when walking forward, the code I provided add power if you walk backward too. If you want only for walk forward, replace "trigger1 = 1" with "trigger1 = vel x > 0".
Last Edit: October 14, 2019, 03:20:44 pm by DS
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#7  October 14, 2019, 01:23:43 pm
  • avatar
  • **
    • UK

  • Online
Something disabled every keyboard shortcut on my Fighter Factory. Did it get updated?
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#8  October 14, 2019, 01:25:46 pm
  • avatar
  • **
    • UK

  • Online
Also no, that didn't work either. It didn't break anything, it just didn't have any change on my character.
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#9  October 14, 2019, 01:36:51 pm
  • ***
    • Brazil
    • deathscythemugen.neocities.org
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#10  October 14, 2019, 06:56:40 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
Maybe your character has 2 (or more) statedef 20, and you are modifying the wrong one. So, delete all the redundant states, because mugen will only read the first statedef 20
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#11  October 22, 2019, 05:02:54 am
  • avatar
  • **
    • UK

  • Online
Where would I find Statedef 20 if I had one? I don't see a statedef 20 anywhere in his states.
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#12  October 22, 2019, 05:05:20 am
  • ***
  • CPU Purple Heart
    • USA
    • www.dailymotion.com/2a8130871d2742d2f4da3b069
 That's where the issue lies, the character that you're working with doesn't have a custom commons.

 If this is the case, copypaste the common1.cns that comes with MUGEN, paste that copy into the character folder, rename it to whatever you want, add the filename in the character's DEF file, save and it should be added.
Re: Building power by walking forwards? Like in DBFZ. How do I do that?
#13  October 22, 2019, 10:08:02 am
  • ***
    • Brazil
    • deathscythemugen.neocities.org
If your character doesn't have a statedef 20, where were you adding the codes I provided??