CMD error

Started by Thagr8test, January 19, 2014, 08:47:51 AM

Previous topic - Next topic

Thagr8test

Im creating a character for the first time and right now im stuck on an error that keeps happening, every time I add the command code for medium punch below light punch the move doesnt work at all and the run backwards/forwards move stops working but the light punch works properly. If I remove the code for medium punch the run animations work properly and if I place the medium punch command where light punch is then the medium punch works properly while light punch and the run moves stop working

Heres how it looks

[Statedef -1]
;standing light punch
[state -1, standing light punch]
type = changeState
value = 200
trigger1 = command = "x"
trigger1 = statetype = S
trigger1 = ctrl
;----------------------------------------------------------------------------------
[Statedef -1]
;standing medium punch
[state -1, standing medium punch]
type = changeState
value = 210
trigger1 = command = "y"
trigger1 = statetype = S
trigger1 = ctrl
;---------------------------------------------------------------------------------
;---------------------------------------------------------------------------
;Run Fwd or Dash is left in here by default along with Run Back or Back Dash
;---------------------------------------------------------------------------
;Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF" ;This command is listed above under default commands
trigger1 = statetype = S
trigger1 = ctrl
;---------------------------------------------------------------------------
;Run Back
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB" ;This command is listed above under default commands
trigger1 = statetype = S
trigger1 = ctrl
;-----------------------------------------------------------------------------------------------------------------------------------------------------

any help or recommendations is welcome and if it helps I'm using the template made by black chaos aka darren buckley

Cobra Caddie

It's because you copied [Statedef -1]. That means there are 2 [Statedef -1] and one cancels the other out. Move

;standing light punch
[state -1, standing light punch]
type = changeState
value = 200
trigger1 = command = "x"
trigger1 = statetype = S
trigger1 = ctrl

To below the second [Statedef -1] and delete the first one. Remember, each number for a state may only have one statedef. Everything you want in that statedef just has a [state] instead.

Thagr8test

thanks alot bro im using tired eyes to code so i easily missed that one