;================================================================================================
;================================================================================================
;-Comandos de este personaje.
;================================================================================================
;================================================================================================


;-| Button Remapping |-----------------------------------------------------
; This section lets you remap the player's buttons (to easily change the
; button configuration). The format is:
;   old_button = new_button
; If new_button is left blank, the button cannot be pressed.
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;-| Default Values |-------------------------------------------------------
[Defaults]
; Default value for the "time" parameter of a Command. Minimum 1.
command.time = 30

; Default value for the "buffer.time" parameter of a Command. Minimum 1,
; maximum 30.
command.buffer.time = 1

;================================================================================================
;================================================================================================
;-Inteligencia artificial del personaje.

;-Comandos para la activación de la AI, deves cambiarlos
;-de acuerdo al nombre de tu personaje,yo uso 15,puedes
;-agregar asta 30 si tu gustas,pero los que agregues deben
;-ser diferentes a los 15 que ya tiene.

;-Ejemplo:
 ;[Command]
;name = "Shogun_AI_1"
;command = F, D, F, D, D, F,U,B,B,F
;time = 0
;================================================================================================
;================================================================================================
 [Command]
name = "kof_AI_1"
command = F, D, F, D, D, F,U,B,B,F
time = 0

[Command]
name = "kof_AI_2"
command = D, F, D, F, D, F,x,x,x,x
time = 0


[Command]
name = "kof_AI_3"
command = B, B, F, F, B, B,y,y,y,y
time = 0

[Command]
name = "kof_AI_4"
command = U, U, D, D, D, U,b,b,b,b
time = 0

[Command]
name = "kof_AI_5"
command = B, F, U, U, D, B,a,a,a,a
time = 0

[Command]
name = "kof_AI_6"
command = D, D, D, F, B, U,U,U,U,U
time = 0

[Command]
name = "kof_AI_7"
command = F, F, F, F, F, F,a,x,y,b
time = 0

[Command]
name = "kof_AI_8"
command = D, D, D, D, D, D,b,b,y,y
time = 0

[Command]
name = "kof_AI_9"
command = U, U, U, U, U, U,a,a,x,x
time = 0

[Command]
name = "kof_AI_10"
command = B, B, B, B, B, B, z+x
time = 0


[Command]
name = "kof_AI_11"
command = D, D, D, F, F, F,U,U,U,B, a+b
time = 0


[Command]
name = "kof_AI_12"
command = F, F, U, U, F, F,U,B,U,B, x+y+z
time = 0


[Command]
name = "kof_AI_13"
command = U, U, B, B, D, F,D,U,U,D, b+c
time = 0

[Command]
name = "kof_AI_14"
command = B, F, D, U, B, D,F,B,B,B, c+a
time = 0

[Command]
name = "kof_AI_15"
command = D, F, D, F, B, F,U,F,F,F, a+b+c
time = 0

;================================================================================================
;-| Neo Max Move |--------------------------------------------------------
;================================================================================================

[command]
name =  "Trinity Geyser"
command = ~D, DF, F, D, DF, F, x+y
time = 25

;================================================================================================
;-| Súper Desesperation Move |--------------------------------------------------------
;================================================================================================

[command]
name =  "Buster Wolf Ex"
command= ~D, DF, F, D, DF, F, a+b
time = 30

[command]
name =  "Power Geyser Ex"
command= ~D, DB, B, DB, D, DF, F, x+y
time = 30

;================================================================================================
;-| Desesperation Move |--------------------------------------------------------
;================================================================================================

[command]
name =  "Buster Wolf"
command= ~D, DF, F, D, DF, F, a
time = 30

[command]
name =  "Buster Wolf"
command= ~D, DF, F, D, DF, F, b
time = 30

[command]
name =  "Power Geyser"
command= ~D, DB, B, DB, D, DF, F, x
time = 30

[command]
name =  "Power Geyser"
command= ~D, DB, B, DB, D, DF, F, y
time = 30

;================================================================================================
;-| Special Move |------------------------------------------------------
;================================================================================================
[Command]
name = "Crack Shoot EX"
command = ~D, DB, B, a+b

[Command]
name = "Crack Shoot 1"
command = ~D, DB, B, a

[Command]
name = "Crack Shoot 2"
command = ~D, DB, B, b

[Command]
name = "Power Wave Ex"
command = ~D, DF, F, x+y

[Command]
name = "Power Wave 1"
command = ~D, DF, F, x

[Command]
name = "Power Wave 2"
command = ~D, DF, F, y

[Command]
name = "Burn Knuckle Ex"
command = ~D, DB, B, x+y

[Command]
name = "Burn Knuckle 1"
command = ~D, DB, B, x

[Command]
name = "Burn Knuckle 2"
command = ~D, DB, B, y

[Command]
name = "Rising Tackle Ex"
command = ~F, D, DF, x+y
Time = 15

[Command]
name = "Rising Tackle 1"
command = ~F, D, DF, x

[Command]
name = "Rising Tackle 2"
command = ~F, D, DF, y

[Command]
name ="salto corto"
command =~a+b

[Command]
name ="Ge Shiki Gou Fu You"
command =/$F,a

[Command]
name ="Puño_especial_1"
command =/$B, x

[Command]
name ="Puño_fuerte_de_pie_1"
command =/$F, y

[Command]
name ="Puño_especial_2"
command =/$F,x

[Command]
name ="Patada_media_de_pie"
command =/$F,a



;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 10

;-| 2/3 Button Combination |-----------------------------------------------

[Command]
name = "Aereo_golpe_de_rechace" ;Required (do not remove)
command = y+b
time = 1

[Command]
name = "Aereo_golpe_de_rechace" ;Required (do not remove)
command = c
time = 1

[Command]
name = "Golpe_de_rechace"  ;Required (do not remove)
command = y+b
;time = 1

[Command]
name = "Golpe_de_rechace"  ;Required (do not remove)
command = c
;time = 1

[Command]
name = "recovery" ;Required (do not remove)
command = x+a
;time = 1  ;sin tiempo para que se active de inmediato

[Command]
name = "recovery" ;Required (do not remove)
command = z
;time = 1

[Command]
name = "HDCANCEL"
command = y+a
time = 1



;-| Dir + Button |---------------------------------------------------------

[Command]  ;Required (do not remove)
name = "longjump" ;-Super salto
command = ~$D, $U
time = 8


[Command]
name = "back_x"
command = /$B,x
time = 1

[Command]
name = "back_y"
command = /$B,y
time = 1

[Command]
name = "back_z"
command = /$B,z
time = 1

[Command]
name = "down_x"
command = /$D,x
time = 1

[Command]
name = "down_y"
command = /$D,y
time = 1

[Command]
name = "down_z"
command = /$D,z
time = 1

[Command]
name = "fwd_x"
command = /$F,x
time = 1

[Command]
name = "fwd_y"
command = /$F,y
time = 1

[Command]
name = "fwd_z"
command = /$F,z
time = 1

[Command]
name = "up_x"
command = /$U,x
time = 1

[Command]
name = "up_y"
command = /$U,y
time = 1

[Command]
name = "up_z"
command = /$U,z
time = 1

[Command]
name = "back_a"
command = /$B,a
time = 1

[Command]
name = "back_b"
command = /$B,b
time = 1

[Command]
name = "back_c"
command = /$B,c
time = 1

[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,b
time = 1

[Command]
name = "down_c"
command = /$D,c
time = 1

[Command]
name = "fwd_a"
command = /$F,a
time = 1

[Command]
name = "fwd_b"
command = /$F,b
time = 1

[Command]
name = "fwd_c"
command = /$F,c
time = 1

[Command]
name = "up_a"
command = /$U,a
time = 1

[Command]
name = "up_b"
command = /$U,b
time = 1

[Command]
name = "up_c"
command = /$U,c
time = 1

;-| Single Button |---------------------------------------------------------



;_Estos comandos son para recuperarse del dizzy por combos
;-que esta en el estado 5300,no quitar.
;-| commandos recovery dizzy|---------------------------------------------------------

[Command]
name = "recovery_dizzy_x"
command = x,x,x,x,x
time = 30

[Command]
name = "recovery_dizzy_y"
command = y,y,y,y,y
time = 30

[Command]
name = "recovery_dizzy_a"
command = a,a,a,a,a
time = 30

[Command]
name = "recovery_dizzy_b"
command = b,b,b,b,b
time = 30
;----------------------------------------------------------


[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

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

;-| Single Dir |------------------------------------------------------------
[Command]
name = "fwd" ;Required (do not remove)
command = $F
time = 1

[Command]
name = "downfwd"
command = $DF
time = 1

[Command]
name = "down" ;Required (do not remove)
command = $D
time = 1

[Command]
name = "downback"
command = $DB
time = 1

[Command]
name = "back" ;Required (do not remove)
command = $B
time = 1

[Command]
name = "upback"
command = $UB
time = 1

[Command]
name = "up" ;Required (do not remove)
command = $U
time = 1

[Command]
name = "upfwd"
command = $UF
time = 1

;-| Hold Button |--------------------------------------------------------------
[Command]
name = "hold_x"
command = /x
time = 1

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

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

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

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

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

[Command]
name = "hold_s"
command = /s
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd" ;Required (do not remove)
command = /$F
time = 1

[Command]
name = "holddownfwd"
command = /$DF
time = 1

[Command]
name = "holddown" ;Required (do not remove)
command = /$D
time = 1

[Command]
name = "holddownback"
command = /$DB
time = 1

[Command]
name = "holdback" ;Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdupback"
command = /$UB
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holdupfwd"
command = /$UF
time = 1

; Don't remove the following line. It's required by the CMD standard.

;===========================================================================
;===========================================================================

[Statedef -1]
;===========================================================================
;-Ctrls para la activación de la AI, deves cambiarlos
;-de acuerdo al nombre de tu personaje

;-Ejemplo:
;trigger1 =  command = "Shogun_AI_1"
;===========================================================================
[State -1, VarSet,kof,AI]
type = VarSet
Triggerall = RoundState = [1,2]
triggerall =!var(59)
trigger1 =  command = "kof_AI_1"
trigger2 =  command = "kof_AI_2"
trigger3 =  command = "kof_AI_3"
trigger4 =  command = "kof_AI_4"
trigger5 =  command = "kof_AI_5"
trigger6 =  command = "kof_AI_6"
trigger7 =  command = "kof_AI_7"
trigger8 =  command = "kof_AI_8"
trigger9 =  command = "kof_AI_9"
trigger10 = command = "kof_AI_10"
trigger11 = command = "kof_AI_11"
trigger12 = command = "kof_AI_12"
trigger13 = command = "kof_AI_13"
trigger14 = command = "kof_AI_14"
trigger15 = command = "kof_AI_15"
;v = 59
;value = 1
var(59)=10

;================================================================================================
;-Este ctrl desactiva la AI
;================================================================================================
[State -1, AI_OFF]
Type = VarSet
Triggerall = var(59)
Triggerall = RoundState != 2
Trigger1 = Ctrl || !Alive || !P2life
var(59) = 0

;================================================================================================
;-Ctls para la AI(Tienes que programar tus códigos)
;-por ahora solo tiene programados evasión y correr al frente
;-y escape de saltos hacia atrás y recobrarte antes de caer en tierra.
;===========================================================================
[State -1,Evasión adelante AI]
type = ChangeState
value = 300
triggerall =var(59);roundstate=2 && var(59)= 1
triggerall = statetype = S
triggerall = stateno != 300
triggerall = random =[600,999]
triggerall = ctrl
trigger1= enemy, NumProj >= 1 && P2BodyDist X <= 50
trigger2= P2MoveType =A  && HitDefAttr(NA,SA,HA)
trigger3= Enemy, MoveType =A


;===========================================================================

[State -1,Recobrarse antes de caer, AI ]
type = ChangeState
value = 5200
triggerall =var(59);roundstate=2 && var(59)= 1
triggerall = random =[500,900]
triggerall = Alive
triggerall = Vel Y > 0
triggerall = Pos Y >= -20
trigger1 = StateNo = 5050
trigger2 = StateNo = 5071

;===========================================================================

[State -1, Correr adelante, AI]
type = ChangeState
value = 100
triggerall =var(59);roundstate=2 && var(59)= 1
triggerall = random =[700,900]
triggerall = Alive
triggerall = stateno !=[100,101]
triggerall= statetype = S && ctrl
trigger1= P2BodyDist X >=50 && p2movetype=I && movetype!=A


;===========================================================================

[State -1, Saltos de escape atrás,AI]
type = ChangeState
value = 105
triggerall =var(59);roundstate=2 && var(59)= 1
triggerall = random =[500,900]
triggerall = Alive
triggerall = stateno !=[105,107]
triggerall = statetype = S && ctrl
trigger1= P2BodyDist X <= 50 && p2MoveType =A
;===========================================================================
;-fin de la AI
;===========================================================================

;===========================================================================
;-Movimientos básicos normales, especiales, y supers del personaje
;-debes de programar los tuyos de acuerdo a tu personaje.
;===========================================================================

;================================================================================================
;===============================================================================
;-Ahora aquí te dejo un ejemplo de como programar un super especial
;-con combos,utilizando los hidef básicos del personaje es una guia
;-usala creo que te servirá de referencia.
;================================================================================================

;Trinity Geyser
[State -1, Trinity Geyser]
type = ChangeState
value = 3000
triggerall = command = "Trinity Geyser"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450

;------------------------------------------------------------------------------

;EX Buster Wolf Rose
[State -1, EX Buster Wolf Rose]
type = ChangeState
value = 2500
triggerall = command ="Buster Wolf Ex"
triggerall = power >= 2000
triggerall = statetype != A
triggerall = stateno !=2500
trigger1 = (statetype = S) || (statetype = C)
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450
;------------------------------------------------------------------------------
;Buster Wolf
[State -1, Buster Wolf]
type = ChangeState
value = 2100
triggerall = command ="Buster Wolf"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = stateno !=2100
trigger1 = (statetype = S) || (statetype = C)
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450

;------------------------------------------------------------------------------
;EX Power Geyser
[State -1, Ex Power Geyser ]
type = ChangeState
value = 2001
triggerall = command ="Power Geyser Ex"
triggerall = power >= 2000
triggerall = statetype != A
triggerall = stateno !=2000
trigger1 = (statetype = S) || (statetype = C)
triggerall = numprojID(1002) = 0
triggerall = numprojID(2002) = 0
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450
;------------------------------------------------------------------------------
;Power Geyser
[State -1, Power Geyser]
type = ChangeState
value = 2000
triggerall = command ="Power Geyser"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = stateno !=2000
trigger1 = (statetype = S) || (statetype = C)
triggerall = numprojID(1002) = 0
triggerall = numprojID(2002) = 0
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450

;------------------------------------------------------------------------------
; Rising Tackle EX
[State -1, Rising Tackle Ex]
type = ChangeState
value = 1304
triggerall = command = "Rising Tackle Ex"
triggerall = power >= 1000
triggerall = statetype != A && ctrl
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450
;------------------------------------------------------------------------------
; Rising Tackle 1
[State -1, Rising Tackle 1]
type = ChangeState
value = 1300
triggerall = command = "Rising Tackle 1"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450
;------------------------------------------------------------------------------
; Rising Tackle 2
[State -1, Rising Tackle 2]
type = ChangeState
value = 1302
triggerall = command = "Rising Tackle 2"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450
;------------------------------------------------------------------------------
; Power Wave EX
[State -1, Power Wave EX]
type = ChangeState
value = 1010
triggerall = command = "Power Wave Ex"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = numprojID(1002) = 0
triggerall = numprojID(2002) = 0
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450

;------------------------------------------------------------------------------
; Power Wave 1
[State -1, Power Wave 1]
type = ChangeState
value = 1000
triggerall = command = "Power Wave 1"
triggerall = statetype != A
triggerall = numprojID(1002) = 0
triggerall = numprojID(2002) = 0
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450
;------------------------------------------------------------------------------
; Power Wave 2
[State -1, Power Wave 2]
type = ChangeState
value = 1005
triggerall = command = "Power Wave 2"
triggerall = statetype != A
triggerall = numprojID(1002) = 0
triggerall = numprojID(2002) = 0
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450

;------------------------------------------------------------------------------
;Burn Knuckle EX
[State -1, Burn Knuckle EX]
type = ChangeState
value = 1106
triggerall = command = "Burn Knuckle Ex"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450
;------------------------------------------------------------------------------
;Burn Knuckle 1
[State -1, Burn Knuckle 1]
type = ChangeState
value = 1100
triggerall = command = "Burn Knuckle 1"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450
;------------------------------------------------------------------------------
;Burn Knuckle 2
[State -1, Burn Knuckle 2]
type = ChangeState
value = 1103
triggerall = command = "Burn Knuckle 2"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450

;------------------------------------------------------------------------------
; Crack Shoot EX
[State -1, Crack Shoot EX]
type = ChangeState
value = 1206
triggerall = command = "Crack Shoot EX"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450

;------------------------------------------------------------------------------
; Crack Shoot 1
[State -1, Crack Shoot 1]
type = ChangeState
value = 1200
triggerall = command = "Crack Shoot 1"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450

;------------------------------------------------------------------------------
; Crack Shoot 2
[State -1, Crack Shoot 2]
type = ChangeState
value = 1203
triggerall = command = "Crack Shoot 2"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 205
trigger4 = stateno = 206
trigger5 = stateno = 215
trigger6 = stateno = 210
trigger7 = stateno = 220 && movecontact
trigger8 = stateno = 230
trigger9 = stateno = 235
trigger10 = stateno = 245
trigger11 = stateno = 248 && movecontact
trigger12 = stateno = 255
trigger13 = stateno = 400
trigger14 = stateno = 420
trigger15 = stateno = 430
trigger16 = stateno = 440 && movecontact
trigger17 = stateno = 450
;---------------------------------------------------------------------------
[State HD CANCEL]
type = ChangeState
value = 900
triggerall = command = "HDCANCEL"
triggerall = statetype != A
triggerall = var(20) >= 1000
trigger1 = ctrl || stateno = 100 || stateno = 101

;---------------------------------------------------------------------------
[State HD CANCEL]
type = ChangeState
value = 901
triggerall = command = "HDCANCEL"
triggerall = statetype = A
triggerall = var(20) >= 1000
trigger1 = stateno = 50 || stateno = 2040

;---------------------------------------------------------------------------
[State HD CANCEL]
type = ChangeState
value = 902
triggerall = command = "HDCANCEL"
triggerall = statetype != A
triggerall = var(20) >= 1000
triggerall = stateno = [200,299]
trigger1 = movecontact


;------------------------------------------------------------------------------
;-Agarre 2
[State -1, Agarre 2]
type = ChangeState
value = 830
triggerall = command = "y"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = command != "holddown"
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 100
trigger1 = p2bodydist X < 5
trigger1 = p2statetype != A
trigger1 = p2statetype != L
trigger1 = p2movetype != H


;------------------------------------------------------------------------------
; Agarre 1
[State -1, Agarre 1]
type = ChangeState
value = 800
triggerall = command = "b"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = command != "holddown"
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 100
trigger1 = p2bodydist X < 5
trigger1 = p2statetype != A
trigger1 = p2statetype != L
trigger1 = p2movetype != H
;------------------------------------------------------------------------------
; Correr adelante
[State -1, Correr adelante]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;------------------------------------------------------------------------------
; Saltos de escape atrás
[State -1,Saltos de escape atrás]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;------------------------------------------------------------------------------
;Golpe de rechace con poder
[State -1, Golpe de rechace con poder]
type = ChangeState
value = 260
triggerall = command = "Golpe_de_rechace"
triggerall = power >= 1000 && life > 0 && statetype != A
trigger1 = stateno = 150
trigger2 = stateno = 152
;------------------------------------------------------------------------------
;Golpe de rechace
[State -1, Golpe de rechace]
type = ChangeState
value = 255
triggerall = command = "Golpe_de_rechace"
trigger1 = statetype != A && ctrl


;------------------------------------------------------------------------------
;Aereo golpe de rechace
[State -1, Aereo golpe de rechace]
type = ChangeState
value = 655
triggerall = command = "Aereo_golpe_de_rechace"
triggerall = stateno != 105
trigger1 = statetype = A && ctrl


;------------------------------------------------------------------------------
;Evasión atrás
[State -1, Evasión atrás]
type = ChangeState
value = 301
triggerall =  command = "recovery" && command = "holdback"
trigger1 = statetype != A
trigger1 = ctrl

;------------------------------------------------------------------------------
;Evasión adelante
[State -1, Evasión adelante]
type = ChangeState
value = 300
triggerall = command = "recovery"
trigger1 = statetype != A
trigger1 = ctrl


;------------------------------------------------------------------------------
;Evasión adelante 2
[State -1, Evasión adelante 2]
type = ChangeState
value = 302
triggerall = command = "recovery" && command = "holdfwd"
triggerall = power >= 1000 && life > 0 && statetype != A
trigger1 = stateno = 150
trigger2 = stateno = 152


;------------------------------------------------------------------------------
;Evasión atrás 2
[State -1, Evasión atrás 2]
type = ChangeState
value = 303
triggerall = command = "recovery" && command = "holdback"
triggerall = power >= 1000 && life > 0 && statetype != A
trigger1 = stateno = 150
trigger2 = stateno = 152

;------------------------------------------------------------------------------
; Burla
[State -1, Burla]
type = ChangeState
value = 195
triggerall = command = "s"
trigger1 = statetype != A
trigger1 = ctrl

;------------------------------------------------------------------------------
; Puño ligero de pie
[State -1, Puño ligero de pie]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = command != "Puño_especial_1"
triggerall = command != "Puño_especial_2"
triggerall = P2BodyDist X >= 18
trigger1 = statetype = S && ctrl
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 205) && time > 7
trigger4 = (stateno = 206) && time > 9
trigger5 = (stateno = 400) && time > 5
trigger6 = (stateno = 430) && time > 5
ignorehitpause = 1
;------------------------------------------------------------------------------
; Puño ligero de pie 2
[State -1, Puño ligero de pie 2]
type = ChangeState
value = 205
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = command != "Puño_especial_1"
triggerall = command != "Puño_especial_2"
triggerall = P2BodyDist X <= 18
trigger1 = statetype = S &&  ctrl
trigger2 = (stateno = 205) && time > 7
trigger3 = (stateno = 235) && time > 7
trigger4 = (stateno = 400) && time > 5
trigger5 = (stateno = 430) && time > 5
trigger6 = (stateno = 600) && movecontact &&   Pos Y >= 0
trigger7 = (stateno = 605) && movecontact &&   Pos Y >= 0
trigger8 = (stateno = 610) && movecontact &&   Pos Y >= 0
trigger9 = (stateno = 620) && movecontact &&   Pos Y >= 0
trigger10 =(stateno = 630) && movecontact &&   Pos Y >= 0
trigger11 =(stateno = 635) && movecontact &&   Pos Y >= 0
trigger12 =(stateno = 640) && movecontact &&   Pos Y >= 0
trigger13 =(stateno = 650) && movecontact &&   Pos Y >= 0
ignorehitpause = 1
;------------------------------------------------------------------------------
;-Puño especial 1
[State -1, Puño especial 1 ]
type = ChangeState
value = 206
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = command != "Puño_especial_2"
triggerall = command  = "Puño_especial_1"
trigger1 = statetype = S
trigger1 = ctrl
;------------------------------------------------------------------------------
; Puño medio de pie
[State -1, Puño medio de pie]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = P2BodyDist X >= 28
trigger1 = statetype = S && ctrl
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 205) && time > 7
trigger4 = (stateno = 206) && time > 9
trigger5 = (stateno = 230) && time > 7
trigger6 = (stateno = 235) && time > 7
trigger7 = (stateno = 400) && time > 5
trigger8 = (stateno = 430) && time > 5
trigger9 = (stateno = 600) && movecontact &&   Pos Y >= 0
trigger10 =(stateno = 605) && movecontact &&   Pos Y >= 0
trigger11 =(stateno = 610) && movecontact &&   Pos Y >= 0
trigger12 =(stateno = 620) && movecontact &&   Pos Y >= 0
trigger13 =(stateno = 630) && movecontact &&   Pos Y >= 0
trigger14 =(stateno = 635) && movecontact &&   Pos Y >= 0
trigger15 =(stateno = 640) && movecontact &&   Pos Y >= 0
trigger16 =(stateno = 650) && movecontact &&   Pos Y >= 0
ignorehitpause = 1
;------------------------------------------------------------------------------
;-Puño especial 2
[State -1, Puño especial 2]
type = ChangeState
value = 215
triggerall = command = "Puño_especial_2"
triggerall = command != "holddown"
trigger1 = statetype = S && ctrl
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 205) && time > 7
trigger4 = (stateno = 206) && time > 9
trigger5 = (stateno = 220) && time > 3
trigger6 = (stateno = 230) && time > 7
trigger7 = (stateno = 235) && time > 7
trigger8 = (stateno = 248) && time > 5
trigger9 = (stateno = 400) && time > 5
trigger10 =(stateno = 430) && time > 5
trigger11 =(stateno = 600) && movecontact &&   Pos Y >= 0
trigger12 =(stateno = 605) && movecontact &&   Pos Y >= 0
trigger13 =(stateno = 610) && movecontact &&   Pos Y >= 0
trigger14 =(stateno = 620) && movecontact &&   Pos Y >= 0
trigger15 =(stateno = 630) && movecontact &&   Pos Y >= 0
trigger16 =(stateno = 635) && movecontact &&   Pos Y >= 0
trigger17 =(stateno = 640) && movecontact &&   Pos Y >= 0
trigger18 =(stateno = 650) && movecontact &&   Pos Y >= 0
ignorehitpause = 1
;------------------------------------------------------------------------------
; Puño fuerte de pie
[State -1, Puño fuerte de pie]
type = ChangeState
value = 220
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = (P2BodyDist X <= 28) || (command = "Puño_fuerte_de_pie_1")
trigger1 = statetype = S && ctrl
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 205) && time > 7
trigger4 = (stateno = 206) && time > 9
trigger5 = (stateno = 230) && time > 7
trigger6 = (stateno = 235) && time > 7
trigger7 = (stateno = 400) && time > 5
trigger8 = (stateno = 430) && time > 5
trigger9 = (stateno = 600) && movecontact &&   Pos Y >= 0
trigger10 =(stateno = 605) && movecontact &&   Pos Y >= 0
trigger11 =(stateno = 610) && movecontact &&   Pos Y >= 0
trigger12 =(stateno = 620) && movecontact &&   Pos Y >= 0
trigger13 =(stateno = 630) && movecontact &&   Pos Y >= 0
trigger14 =(stateno = 635) && movecontact &&   Pos Y >= 0
trigger15 =(stateno = 640) && movecontact &&   Pos Y >= 0
trigger16 =(stateno = 650) && movecontact &&   Pos Y >= 0
ignorehitpause = 1
;------------------------------------------------------------------------------
; Patada ligera de pie 2
[State -1, Patada ligera de pie 2]
type = ChangeState
value = 235
triggerall = command !=  "Patada_media_de_pie"
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = P2BodyDist X <= 28
trigger1 = statetype = S && ctrl
trigger2 = (stateno = 205) && time > 7
trigger3 = (stateno = 235) && time > 7
trigger4 = (stateno = 400) && time > 5
trigger5 = (stateno = 430) && time > 5
trigger6 = (stateno = 600) && movecontact &&   Pos Y >= 0
trigger7 = (stateno = 605) && movecontact &&   Pos Y >= 0
trigger8 = (stateno = 610) && movecontact &&   Pos Y >= 0
trigger9 = (stateno = 620) && movecontact &&   Pos Y >= 0
trigger10 =(stateno = 630) && movecontact &&   Pos Y >= 0
trigger11 =(stateno = 635) && movecontact &&   Pos Y >= 0
trigger12 =(stateno = 640) && movecontact &&   Pos Y >= 0
trigger13 =(stateno = 650) && movecontact &&   Pos Y >= 0
ignorehitpause = 1
;------------------------------------------------------------------------------
; Patada ligera de pie
[State -1, Patada ligera de pie]
type = ChangeState
value = 230
triggerall = command !=  "Patada_media_de_pie"
triggerall = command =  "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;------------------------------------------------------------------------------
; Ge Shiki Gou Fu You
[State -1, Ge Shiki Gou Fu You]
type = ChangeState
value = 230
triggerall = command ="Ge Shiki Gou Fu You"   ;command = "b"
triggerall = command != "holddown"
;triggerall = P2BodyDist X <= 20
trigger1 = statetype = S && ctrl
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 205) && time > 7
trigger4 = (stateno = 206) && time > 9
trigger5 = (stateno = 220) && time > 3
trigger6 = (stateno = 230) && time > 7
trigger7 = (stateno = 235) && time > 7
trigger8 = (stateno = 248) && time > 5
trigger9 = (stateno = 400) && time > 5
trigger10 =(stateno = 430) && time > 5
trigger11 =(stateno = 600) && movecontact &&   Pos Y >= 0
trigger12 =(stateno = 605) && movecontact &&   Pos Y >= 0
trigger13 =(stateno = 610) && movecontact &&   Pos Y >= 0
trigger14 =(stateno = 620) && movecontact &&   Pos Y >= 0
trigger15 =(stateno = 630) && movecontact &&   Pos Y >= 0
trigger16 =(stateno = 635) && movecontact &&   Pos Y >= 0
trigger17 =(stateno = 640) && movecontact &&   Pos Y >= 0
trigger18 =(stateno = 650) && movecontact &&   Pos Y >= 0



;------------------------------------------------------------------------------
; Patada fuerte de pie 1
[State -1, Patada fuerte de pie 1]
type = ChangeState
value = 248
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = (P2BodyDist X <= 28) ;(command = "Puño_fuerte_de_pie_1")
trigger1 = statetype = S && ctrl
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 205) && time > 7
trigger4 = (stateno = 206) && time > 9
trigger5 = (stateno = 230) && time > 7
trigger6 = (stateno = 235) && time > 7
trigger7 = (stateno = 400) && time > 5
trigger8 = (stateno = 430) && time > 5
trigger9 = (stateno = 600) && movecontact &&   Pos Y >= 0
trigger10 =(stateno = 605) && movecontact &&   Pos Y >= 0
trigger11 =(stateno = 610) && movecontact &&   Pos Y >= 0
trigger12 =(stateno = 620) && movecontact &&   Pos Y >= 0
trigger13 =(stateno = 630) && movecontact &&   Pos Y >= 0
trigger14 =(stateno = 635) && movecontact &&   Pos Y >= 0
trigger15 =(stateno = 640) && movecontact &&   Pos Y >= 0
trigger16 =(stateno = 650) && movecontact &&   Pos Y >= 0
ignorehitpause = 1



;------------------------------------------------------------------------------
; Patada fuerte de pie 2
[State -1, Patada fuerte de pie 2]
type = ChangeState
value = 250
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;------------------------------------------------------------------------------
; Puño ligero agachado
[State -1, Puño ligero agachado]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) && time > 12
trigger3 = (stateno = 430) && time > 12

;------------------------------------------------------------------------------
; Puño fuerte agachado
[State -1, Puño fuerte agachado]
type = ChangeState
value = 420
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger3 = (stateno = 400) && time > 12
trigger3 = (stateno = 430) && time > 12

;------------------------------------------------------------------------------
; Puño medio agachado
[State -1, Puño medio agachado ]
type = ChangeState
value = 440
triggerall = command = "y"
triggerall = command ="holddownfwd"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 430) && time > 4
trigger3 = (stateno = 400) && time > 4
;------------------------------------------------------------------------------
; Patada ligera agachado
[State -1, Patada ligera agachado]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) && time > 12
trigger3 = (stateno = 430) && time > 12

;------------------------------------------------------------------------------
; Patada media agachado
[State -1, Patada media agachado ]
type = ChangeState
value = 450
triggerall = command ="holddownfwd"
triggerall = command = "b"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 430) && time > 4
trigger3 = (stateno = 400) && time > 4

;------------------------------------------------------------------------------
; Patada media agachado
[State -1, Patada media agachado ]
type = ChangeState
value = 450
triggerall = command ="holddownback"
triggerall = command = "b"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 430) && time > 4
trigger3 = (stateno = 400) && time > 4
;------------------------------------------------------------------------------
; Patada fuerte agachado
[State -1, Patada fuerte agachado]
type = ChangeState
value = 450
triggerall = command != "holddownback"
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C &&  ctrl
trigger2 = (stateno = 400) && time > 4
trigger3 = (stateno = 430) && time > 4

;------------------------------------------------------------------------------
; Saltando Puño ligero neutral
[State -1, Saltando Puño ligero neutral]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = stateno != 105
;triggerall =stateno != 600
triggeraLL = statetype = A
trigger1 = vel x = 0 && ctrl
trigger1 = ANIM != 51

;------------------------------------------------------------------------------
; Saltando Puño ligero al frente
[State -1, Saltando Puño ligero al frente]
type = ChangeState
value = 605
triggerall = command = "x"
triggerall = stateno != 105
;triggerall =stateno != 605
triggeraLL = statetype = A
trigger1 = vel x != 0 && ctrl
trigger2 = ANIM = 51 && ctrl

;------------------------------------------------------------------------------
; Saltando Puño medio neutral
[State -1, Saltando Puño medio neutral ]
type = ChangeState
value = 610
triggerall = command = "y"
triggerall = stateno != 105
triggeraLL = statetype = A
trigger1 = vel x = 0 && ctrl
trigger1 = ANIM != 51

;------------------------------------------------------------------------------
; Saltando Puño fuerte al frente
[State -1, Saltando Puño fuerte al frente]
type = ChangeState
value = 620
triggerall = command = "y"
triggerall = stateno != 105
triggeraLL = statetype = A
trigger1 = vel x != 0 && ctrl
trigger2 = ANIM = 51 && ctrl
;------------------------------------------------------------------------------
; Saltando Patada ligera neutral
[State -1, Saltando Patada ligera neutral]
type = ChangeState
value = 630
triggerall = command = "a"
triggerall = stateno != 105
;triggerall = stateno != 630
triggeraLL = statetype = A
trigger1 = vel x = 0 && ctrl
trigger1 = ANIM!= 51

;------------------------------------------------------------------------------
; Saltando Patada ligera al frente
[State -1, Saltando Patada ligera al frente]
type = ChangeState
value = 635
triggerall = command = "a"
triggerall = stateno != 105
;triggerall = stateno != 635
triggeraLL = statetype = A
trigger1 = vel x != 0 && ctrl
trigger2 = ANIM = 51 && ctrl
;------------------------------------------------------------------------------
; Saltando Patada media neutral
[State -1, Saltando Patada media neutral]
type = ChangeState
value = 650
triggerall = command = "b"
triggerall= stateno != 105
triggeraLL = statetype = A
trigger1 =  vel x = 0 && ctrl
trigger1 = ANIM != 51
;------------------------------------------------------------------------------
; Saltando Patada fuerte al frente
[State -1, Saltando Patada fuerte al frente]
type = ChangeState
value = 650
triggerall = command = "b"
triggerall = stateno != 105
triggeraLL = statetype = A
trigger1 = vel x != 0 && ctrl
trigger2 = ANIM= 51 && ctrl




