I'll use KFM as an example.
Let's say I want to change the motion for state 1000. I'll open his CMD file in Notepad, use ctrl + F to find state 1000, which gives me this:
;Light Kung Fu Palm
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1000
triggerall = command = "QCF_x"
trigger1 = var(1) ;Use combo condition (above)
Notice the "command = "QCF_x", this is the name of the command this move uses. Now I'll press ctrl + F again and search for this exact command, QCF_x, whic gives me this:
[Command]
name = "QCF_x"
command = ~D, DF, F, x
This is what I want to change, let's say instead of down > forward > x, I want to use down > back > any punch, I can edit this or create a new command. As an example I'll be creating a new command with another name, say, "qcb_punch", and since I'm going to use all punch buttons I'll make many of these with the same name, you can even specify a time if you want:
[Command]
name = "qcb_punch"
command = ~D, DB, B, x
[Command]
name = "qcb_punch"
command = ~D, DB, B, y
[Command]
name = "qcb_punch"
command = ~D, DB, B, z
And then go back to state 1000 in the CMD and change the command to the new one (you don't need to do this if you edited the command instead):
;Light Kung Fu Palm
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1000
triggerall = command = "qcb_punch"
trigger1 = var(1) ;Use combo condition (above)