YesNoOk
avatar

Can I change the way I do classic combos? (Read 4891 times)

Started by lcr8, February 05, 2024, 06:18:27 pm
Share this topic:
Can I change the way I do classic combos?
#1  February 05, 2024, 06:18:27 pm
  • New here
    • Turkey
So it seems like the current combo paths will cause my keyboard to break :/
I used to play JFC 10, now I'm playing a game where the combo mechanics are at a higher level for the first time.
I want to change the way we do combos in the game.
Instead of using different buttons for light,medium or heavy attacks (LK,MK,HK and LP,MP,HP) if the same button is pressed for the second or third time when a succesful hit lands to the opponent, the hit type will automatically switch from light to medium or medium to heavy. Is it possible?

Here are original codes:
[Command]
name = "a"
command = a
time = 1

[Command]
name = "b"
command = b
time = 1

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

[Command]
name = "x"
command = x
time = 1

[Command]
name = "y"
command = y
time = 1

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

And I want it to be like this one:
(Please keep in mind that I do not have advanced coding experience, the ones in {} are made up.)

[Command]
name = "a"
command = a
time = 1

[Command]
name = "b"
command = {Target's got first hit},a
time = 1

[Command]
name = "c"
command = {Target's got second hit},a
time = 1

[Command]
name = "x"
command = x
time = 1

[Command]
name = "y"
command = {Target's got first hit},x
time = 1

[Command]
name = "z"
command = {Target's got second hit},x
time = 1
 
Note2: I will continue to use b,c,y,z keys when making special combos, I'll only change LP,LK,MK,MP,HK and HP controls. Hope you understand what I mean.
Last Edit: February 09, 2024, 12:07:02 pm by lcr8
Re: Can I change the way I do classic combos?
#2  February 06, 2024, 07:29:10 pm
  • ****
    • crepa.neocities.org

  • Online
I know you got a bit of help on the discord server, idk how is your progress on this but I'll try to help you anyway.

Basically you won't touch that part of the cmd. You will find the move itself and change the command for it.

Examples!

Usually the state numbers of a character for mugen are 200 for light punch, 210 for medium punch, 220 for heavy punch, and so on.
With that in mind, if you want medium punch to use the same input as the light punch, find the changestate to state 210 (assuming it is set to medium punch) in the cmd, it will probably have a trigger with a "command".
Code:
trigger1 = command = "y"

Change it to the same input as the light punch.
Code:
trigger1 = command = "x"

And also, add a trigger for when you are in state 200 (assuming it is set to light punch).
Code:
trigger1 = command = "x" && StateNo = 200

If you want even more control over it, you can use movecontact of movehit. They are pretty self explanatory.
Code:
trigger1 = command = "x" && StateNo = 200 && MoveHit


Now you do the same to the other moves! Hope my explanation was helpful :)
Re: Can I change the way I do classic combos?
#3  February 09, 2024, 01:51:53 pm
  • New here
    • Turkey
I solved the problem myself. It was enough to just make changes to the CNS file without messing with CMD.

[State 200, ChangeState]
type = ChangeState
triggerall = movecontact
trigger1 = (command = "x") || (command = "y")
value = 210
ctrl = 1

[State 210, ChangeState]
type = ChangeState
triggerall = movecontact
trigger1 = (command = "x") || (command = "y") || (command = "z")
value = 220
ctrl = 1

Instead of ignoring the "y" and "z" keys, I changed my old idea to a strategy of being able to start your combo wherever and you want.

no matter if you press "x" "y" and "z" in order or just pressing "x" 3 times. Both will do the same job ^^ (Light Punch>Medium Punch>Heavy Punch ).

In addition

There is no need for the L,M,H order to be the same type (punch and kick) in the game. You can also do this during LK>MP>HK if you want.

for this feature

[State 230, ChangeState]
type = ChangeState
triggerall = movecontact
trigger1 =  (command = "a") || (command = "b")
value = 240
ctrl = 1

[State 230, ChangeState]
type = ChangeState
triggerall = movecontact
trigger1 =  (command = "x") || (command = "y")
value = 210
ctrl = 1

and do the same for others (don't forget to add  || (command = "c") or  || (command = "z") for heavies.)
Hope it helps anyone who want to make adjustments like mine.

Still thank you for your interest and help!