News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Power Charge Command Error

Started by astermasterix, July 14, 2018, 01:21:01 AM

Previous topic - Next topic

astermasterix

I'm modifying Master Gouken's Akuma so he can Power Charge, and he's programmed to charge everytime C and Z are pressed together and held down, but it reacts everytime I press and hold down C or Z, regardless of if they're pressed together or not. Here's the command code:
[Command]
name = "powercharge"
command = /c+z

Any help would be appreciated.

Odb718


[Command]
name = "pc1"
command = /z
time = 1

[Command]
name = "pc2"
command = /c
time = 1


triggerall = command = "pc1" && command = "pc2"
vVv Gouken718 vVv SabreTooth718 vVv


Manson Rees

Quote from: Odb718 on July 14, 2018, 09:15:29 AM

[Command]
name = "pc1"
command = /z
time = 1

[Command]
name = "pc2"
command = /c
time = 1


triggerall = command = "pc1" && command = "pc2"

And to stop power charging:

[Statedef XXXX] ; Power Charge State
(...)

[State XXXX, ChangeState]
type = ChangeState
trigger1 =command != "pc1" || command != "pc2"
value = 0

Odb718

You can also add checks to the changestate to see if you've reached maximum power.
You may want to make a second state so when you let go of the buttons you still have some open time. It makes it a little more fair to P2 trying to hit you.
vVv Gouken718 vVv SabreTooth718 vVv