help with coding a punch

Started by kingofsouls, April 13, 2009, 06:23:14 PM

Previous topic - Next topic

Byakko

First the block that defines your command in the command definition part.
Then, in the "state entry" part, you put the changestate - the block of code that will tell Mugen "go to this statedef when I press x under this and that other conditions".
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

kingofsouls

...you just lost me again.

in teh command area, the command of "X" is there, but i am not sure where to put the command for "light punch"

Byakko

The command for light punch is x. what yo need is the state entry that says "when I press x, if I'm standing, if I have control, then I want my character to go  to this state number which is the action for the light punch".

In the file, you have
Quote; Two parts: 1. Command definition and  2. State entry
; (state entry is after the commands def section)
;
; 1. Command definition
; ---------------------
then, much later
Quote;---------------------------------------------------------------------------
; 2. State entry
; --------------
; This is where you define what commands bring you to what states.
;
; Each state entry block looks like:
;   [State -1, Label]           ;Change Label to any name you want to use to
;                               ;identify the state with.
;   type = ChangeState          ;Don't change this
;   value = new_state_number
;   trigger1 = command = command_name
;   . . .  (any additional triggers)
[...]
; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

kingofsouls

#23
okay, i have this for light punch:

;Light Punch
[State -1, Light Punch]
type = ChangeState
value = 200
trigger1 = command = "x"
trigger1 = statetype = S
trigger1 = 1

however, it's not working so something I typed in something wrong and I have no clue on how to fix it.

Byakko

#24
So, open the .cns file (same as the .cmd) and look for "statedef 200" (because this block of code you just copy-pasted in your post says "when I do the COMMAND "X" and I'm STANDING, then do CHANGESTATE to VALUE 200").
Also you have a problem, the last line "trigger1 = 1" should read "trigger1 = ctrl". Change it. You must have control for the move to trigger.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

kingofsouls

Okay, thank you for your help...but I kinda figureed out the problem (I was using fighter factory and i labeled teh lgith punch animation wrong....who knew?)

I would like to also thnak you for putting up with me and for trying ot explain thigs to me. My family lets me know every noe and again that it is frustrating to explain things to me, and they are 100% right.

Your awesome