;-| Claytalities |---------------------------------------------------------
[Command]
name = "half"
command = ~B, F, B, F, s
time = 30

[Command]
name = "squish"
command = ~B, D, F, s
time = 30

[Command]
name = "launch"   
command = ~D, D, D, s
time = 20

;-| Super Motions |--------------------------------------------------------
[Command]
name = "srp"
command = ~D, DF, F, D, DF, F, x
time = 30

[Command]
name = "srp"
command = ~D, DF, F, D, DF, F, y
time = 30

[Command]
name = "srp"
command = ~D, DF, F, D, DF, F, z
time = 30

[Command]
name = "combo"   
command = ~D, DB, B, D, DB, B, a
time = 30

[Command]
name = "combo"   
command = ~D, DB, B, D, DB, B, b
time = 30

[Command]
name = "combo"   
command = ~D, DB, B, D, DB, B, c
time = 30

[Command]
name = "sfk"
command = ~20$B, F, a+b
time = 20

[Command]
name = "sfk"
command = ~20$B, F, b+c
time = 20

[Command]
name = "sfk"
command = ~20$B, F, a+c
time = 20

;-| Combo Motions |--------------------------------------------------------
[Command]
name = "ultra5"
command = ~F, DF, D, x
time = 15

[Command]
name = "ultra5"
command = ~F, DF, D, y
time = 15

[Command]
name = "ultra5"
command = ~F, DF, D, z
time = 15

[Command]
name = "ultra5"
command = ~F, DF, D, a
time = 15

[Command]
name = "ultra5"
command = ~F, DF, D, b
time = 15

[Command]
name = "ultra5"
command = ~F, DF, D, c
time = 15

[Command]
name = "ultra6"
command = ~B, DB, D, x
time = 15

[Command]
name = "ultra6"
command = ~B, DB, D, y
time = 15

[Command]
name = "ultra6"
command = ~B, DB, D, z
time = 15

[Command]
name = "ultra6"
command = ~B, DB, D, a
time = 15

[Command]
name = "ultra6"
command = ~B, DB, D, b
time = 15

[Command]
name = "ultra6"
command = ~B, DB, D, c
time = 15

[Command]
name = "ultra3"
command = ~F, D, DF, x
time = 15

[Command]
name = "ultra3"
command = ~F, D, DF, y
time = 15

[Command]
name = "ultra3"
command = ~F, D, DF, z
time = 15

[Command]
name = "ultra3"
command = ~F, D, DF, a
time = 15

[Command]
name = "ultra3"
command = ~F, D, DF, b
time = 15

[Command]
name = "ultra3"
command = ~F, D, DF, c
time = 15

[Command]
name = "ultra4"
command = ~B, D, DB, x
time = 15

[Command]
name = "ultra4"
command = ~B, D, DB, y
time = 15

[Command]
name = "ultra4"
command = ~B, D, DB, z
time = 15

[Command]
name = "ultra4"
command = ~B, D, DB, a
time = 15

[Command]
name = "ultra4"
command = ~B, D, DB, b
time = 15

[Command]
name = "ultra4"
command = ~B, D, DB, c
time = 15

[Command]
name = "ultra1"
command = ~D, DF, F, x
time = 15

[Command]
name = "ultra1"
command = ~D, DF, F, y
time = 15

[Command]
name = "ultra1"
command = ~D, DF, F, z
time = 15

[Command]
name = "ultra1"
command = ~D, DF, F, a
time = 15

[Command]
name = "ultra1"
command = ~D, DF, F, b
time = 15

[Command]
name = "ultra1"
command = ~D, DF, F, c
time = 15

[Command]
name = "ultra2"
command = ~D, DB, B, x
time = 15

[Command]
name = "ultra2"
command = ~D, DB, B, y
time = 15

[Command]
name = "ultra2"
command = ~D, DB, B, z
time = 15

[Command]
name = "ultra2"
command = ~D, DB, B, a
time = 15

[Command]
name = "ultra2"
command = ~D, DB, B, b
time = 15

[Command]
name = "ultra2"
command = ~D, DB, B, c
time = 15

[Command]
name = "linker1"
command = ~F, DF, D, x
time = 15

[Command]
name = "linker2"
command = ~F, DF, D, y
time = 15

[Command]
name = "linker3"
command = ~F, DF, D, z
time = 15

[Command]
name = "linker4"
command = ~F, DF, D, a
time = 15

[Command]
name = "linker5"
command = ~F, DF, D, b
time = 15

[Command]
name = "linker6"
command = ~F, DF, D, c
time = 15

[Command]
name = "finisher1"
command = ~F, D, DF, x
time = 15

[Command]
name = "finisher1"
command = ~F, D, DF, y
time = 15

[Command]
name = "finisher1"
command = ~F, D, DF, z
time = 15

[Command]
name = "finisher2"
command = ~D, DB, B, a
time = 15

[Command]
name = "finisher2"
command = ~D, DB, B, b
time = 15

[Command]
name = "finisher2"
command = ~D, DB, B, c
time = 15

;-| Special Motions |------------------------------------------------------
[Command]
name = "punch_x"
command = ~F, D, DF, x
time = 15

[Command]
name = "punch_y"
command = ~F, D, DF, y
time = 15

[Command]
name = "punch_z"
command = ~F, D, DF, z
time = 15

[Command]
name = "shoot_x"
command = ~D, DF, F, x
time = 15

[Command]
name = "shoot_y"
command = ~D, DF, F, y
time = 15

[Command]
name = "shoot_z"
command = ~D, DF, F, z
time = 15

[Command]
name = "fk_a"
command = ~D, DB, B, a
time = 15

[Command]
name = "fk_b"
command = ~D, DB, B, b
time = 15

[Command]
name = "fk_c"
command = ~D, DB, B, c
time = 15

[Command]
name = "db_a"
command = ~20$B, F, a
time = 15

[Command]
name = "db_b"
command = ~20$B, F, b
time = 15

[Command]
name = "db_c"
command = ~20$B, F, c
time = 15

[Command]
name = "upper_x"
command = ~20$B, F, x
time = 15

[Command]
name = "upper_y"
command = ~20$B, F, y
time = 15

[Command]
name = "upper_z"
command = ~20$B, F, z
time = 15

[Command]
name = "jk_a"
command = ~20$D, F, a
time = 15

[Command]
name = "jk_b"
command = ~20$D, F, b
time = 15

[Command]
name = "jk_c"
command = ~20$D, F, c
time = 15

[Command]
name = "overhead"
command = ~D, D, x
time = 15

[Command]
name = "overhead"
command = ~D, D, y
time = 15

[Command]
name = "overhead"
command = ~D, D, z
time = 15

;-| 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 = "recovery" ;Required (do not remove)
command = x+y
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "parry"
command = F, a
time = 5

[Command]
name = "parry"
command = F, b
time = 5

[Command]
name = "parry"
command = F, c
time = 5

[Command]
name = "parry"
command = F, x
time = 5

[Command]
name = "parry"
command = F, y
time = 5

[Command]
name = "parry"
command = F, z
time = 5

;-| Single Button |--------------------------------------------------------
[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 = "start"
command = s
time = 1

[Command]
name = "holdb"
command = /$x
time = 1

[Command]
name = "holdb"
command = /$y
time = 1

[Command]
name = "holdb"
command = /$z
time = 1

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

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

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

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

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

[Statedef -1]

;==========================================================================
;--------------------------------------------------------------------------
[State -1, Knock Off Top Half]
type = ChangeState
value = 4200
triggerall = Command = "half"
triggerall = P2bodydist X <= 15
;triggerall = selfanimexist(5350) = 1
trigger1 = p2stateno = 9002 && numhelper(9000)
trigger1 = statetype != A && ctrl

;--------------------------------------------------------------------------
[State -1, Squish Claytality]
type = ChangeState
value = 4100
triggerall = Command = "squish"
triggerall = P2bodydist X <= 15
trigger1 = p2stateno = 9002 && numhelper(9000)
trigger1 = statetype != A && ctrl

;--------------------------------------------------------------------------
[State -1, Launch From MUGEN]
type = ChangeState
value = 4000
triggerall = Command = "launch"
triggerall = P2bodydist X <= 15
trigger1 = p2stateno = 9002 && numhelper(9000)
trigger1 = statetype != A && ctrl

;==========================================================================
;--------------------------------------------------------------------------
[State -1, Sarge Combo]
type = ChangeState
value = 2200
triggerall = Power >= 1000
triggerall = Command = "combo"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;--------------------------------------------------------------------------
[State -1, Super Rabbit Punch]
type = ChangeState
value = 2100
triggerall = Power >= 1000
triggerall = Command = "srp"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;--------------------------------------------------------------------------
[State -1, Super Flying Kick]
type = ChangeState
value = 2000
triggerall = Power >= 1000
triggerall = Command = "sfk"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;==========================================================================
;--------------------------------------------------------------------------
;Combo Breaker (Rabbit Punch) (sacado de Orchid de Ahrimanes)
[State -1]
type = ChangeState
triggerall = ctrl = 0
triggerall = movetype = H
triggerall = life > 100
trigger1 = command = "punch_x"&& statetype != A
trigger2 = command = "punch_y"&& statetype != A
trigger3 = command = "punch_z"&& statetype != A
value = 1999

;--------------------------------------------------------------------------
;Parry (Coming soon)
[State -1, Tierra]
type = null;ChangeState
triggerall = ctrl = 0
triggerall = movetype = H
triggerall = life > 100
trigger1 = command = "parry"&& statetype != A
value = 1997

[State -1, Aire]
type = null;ChangeState
triggerall = ctrl = 0
triggerall = movetype = H
triggerall = life > 100
trigger1 = command = "parry"&& statetype = A
value = 1998

;--------------------------------------------------------------------------
;Dashing Upper (Combo Opener)
[State -1, DU Debil]
type = ChangeState
value = 1600
triggerall = command = "upper_x"
trigger1 = statetype != A
trigger1 = ctrl

[State -1, DU Medio]
type = ChangeState
value = 1650
triggerall = command = "upper_y"
trigger1 = statetype != A
trigger1 = ctrl

[State -1, DU Fuerte]
type = ChangeState
value = 1690
triggerall = command = "upper_z"
trigger1 = statetype != A
trigger1 = ctrl

;--------------------------------------------------------------------------
;Insane Combos (Ultras)
[state -1, ultra5]
type = changestate
value = 3700
triggerall = command = "ultra5"
triggerall = movehit
triggerall = statetype != A
triggerall = p2statetype != A
triggerall = p2life <= 200
triggerall = time >10
triggerall = roundno >= 1
triggerall = roundsexisted = 1
trigger1 = stateno = [1600,1690]
trigger2 = stateno = [3000,3050]

[state -1, ultra6]
type = changestate
value = 3750
triggerall = command = "ultra6"
triggerall = movehit
triggerall = statetype != A
triggerall = p2statetype != A
triggerall = p2life <= 200
triggerall = time >10
triggerall = roundno >= 1
triggerall = roundsexisted = 1
trigger1 = stateno = [1600,1690]
trigger2 = stateno = [3000,3050]

[state -1, ultra3]
type = changestate
value = 3600
triggerall = command = "ultra3"
triggerall = movehit
triggerall = statetype != A
triggerall = p2statetype != A
triggerall = p2life <= 200
triggerall = time >10
triggerall = roundno >= 1
triggerall = roundsexisted = 1
trigger1 = stateno = [1600,1690]
trigger2 = stateno = [3000,3050]

[state -1, ultra4]
type = changestate
value = 3650
triggerall = command = "ultra4"
triggerall = movehit
triggerall = p2life < 200
triggerall = time >10
triggerall = roundno = 1
triggerall = roundsexisted = 1
trigger1 = stateno = [1600,1690]
trigger2 = stateno = [3000,3050]

[state -1, ultra1]
type = changestate
value = 3500
triggerall = command = "ultra1"
triggerall = statetype != A
triggerall = p2statetype != A
triggerall = movehit
triggerall = p2life <= 200
triggerall = time >10
triggerall = roundno >= 1
triggerall = roundsexisted = 1
trigger1 = stateno = [1600,1690]
trigger2 = stateno = [3000,3050]

[state -1, ultra2]
type = changestate
value = 3550
triggerall = command = "ultra2"
triggerall = movehit
triggerall = statetype != A
triggerall = p2statetype != A
triggerall = p2life <= 200
triggerall = time >10
triggerall = roundno >= 1
triggerall = roundsexisted = 1
trigger1 = stateno = [1600,1690]
trigger2 = stateno = [3000,3050]

;--------------------------------------------------------------------------
;Linkers
[state -1, linker1]
type = changestate
value = 3000
triggerall = command = "linker1"
triggerall = movehit
triggerall = ctrl = 0
trigger1 = time >10
trigger1 = stateno = [1600,1690]

[state -1,linker2]
type = changestate
value = 3010
triggerall = command = "linker2"
triggerall = movehit
triggerall = ctrl = 0
trigger1 = time >10
trigger1 = stateno = [1600,1690]

[state -1, linker3]
type = changestate
value = 3020
triggerall = command = "linker5"
triggerall = movehit
triggerall = ctrl = 0
trigger1 = time >10
trigger1 = stateno = [1600,1690]

[state -1,linker4]
type = changestate
value = 3030
triggerall = command = "linker4"
triggerall = movehit
triggerall = ctrl = 0
trigger1 = time >10
trigger1 = stateno = [1600,1690]

[state -1, linker5]
type = changestate
value = 3040
triggerall = command = "linker5"
triggerall = movehit
triggerall = ctrl = 0
trigger1 = time >10
trigger1 = stateno = [1600,1690]

[state -1,linker6]
type = changestate
value = 3050
triggerall = command = "linker6"
triggerall = movehit
triggerall = ctrl = 0
trigger1 = time >10
trigger1 = stateno = [1600,1690]

;--------------------------------------------------------------------------
;Finishers
[state -1, finisher1]
type = changestate
value = 3100
triggerall = command = "finisher1"
triggerall = movehit
triggerall = ctrl = 0
triggerall = time >10
trigger1 = stateno = [1600,1690]
trigger2 = stateno = [3000,3050]

[state -1, finisher2]
type = changestate
value = 3150
triggerall = command = "finisher2"
triggerall = movehit
triggerall = ctrl = 0
triggerall = time >10
trigger1 = stateno = [1600,1690]
trigger2 = stateno = [3000,3050]

;==========================================================================
;--------------------------------------------------------------------------
;Juggle Kick
[State -1, JK Debil]
type = ChangeState
value = 1200
triggerall = command = "jk_a"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, JK Medio]
type = ChangeState
value = 1250
triggerall = command = "jk_b"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, JK Fuerte]
type = ChangeState
value = 1290
triggerall = command = "jk_c"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;--------------------------------------------------------------------------
;Rabbit Punch (Hoppy)
[State -1, RP Debil]
type = ChangeState
value = 1500
triggerall = command = "punch_x"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, RP Medio]
type = ChangeState
value = 1550
triggerall = command = "punch_y"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, RP Fuerte]
type = ChangeState
value = 1590
triggerall = command = "punch_z"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;--------------------------------------------------------------------------
;Flying Kick
[State -1, FK Debil]
type = ChangeState
value = 1000
triggerall = command = "fk_a"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, FK Medio]
type = ChangeState
value = 1050
triggerall = command = "fk_b"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, FK Fuerte]
type = ChangeState
value = 1090
triggerall = command = "fk_c"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;Air Flying Kick
[State -1, AFK Debil]
type = ChangeState
value = 1001
triggerall = command = "fk_a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, AFK Medio]
type = ChangeState
value = 1051
triggerall = command = "fk_b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, AFK Fuerte]
type = ChangeState
value = 1091
triggerall = command = "fk_c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;--------------------------------------------------------------------------
;Dashing Boot
[State -1, DB Debil]
type = ChangeState
value = 1100
triggerall = command = "db_a"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, DB Medio]
type = ChangeState
value = 1150
triggerall = command = "db_b"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, DB Fuerte]
type = ChangeState
value = 1190
triggerall = command = "db_c"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;--------------------------------------------------------------------------
;Spinning Carrot (Hoppy)
[State -1, SC Debil]
type = ChangeState
value = 1300
triggerall = command = "shoot_x"
triggerall = !NumprojID(1000)
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, SC Medio]
type = ChangeState
value = 1350
triggerall = command = "shoot_y"
triggerall = !NumprojID(1000)
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, SC Fuerte]
type = ChangeState
value = 1390
triggerall = command = "shoot_z"
triggerall = !NumprojID(1000)
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;--------------------------------------------------------------------------
;Overhead Attack
[State -1, OA]
type = ChangeState
value = 1400
triggerall = command = "overhead"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,216]) && movecontact
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;==========================================================================
;--------------------------------------------------------------------------
; Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;--------------------------------------------------------------------------
; Run Back
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;--------------------------------------------------------------------------
; Agarre 1
[State -1, Gusanazos]
type = ChangeState
value = 800
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 10
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

; Agarre 2
[State -1, Cowboy]
type = ChangeState
value = 850
triggerall = command = "z"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 10
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

;--------------------------------------------------------------------------
; Launcher
[State -1, Upper]
type = ChangeState
value = 260
triggerall = command = "holdback" && command = "z"
trigger1 = statetype = C
trigger1 = ctrl

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

;==========================================================================
;--------------------------------------------------------------------------
; Golpe Debil Parado
[State -1]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = P2bodydist X >= 14
trigger1 = statetype = S
trigger1 = ctrl

;--------------------------------------------------------------------------
; Golpe Debil Parado (cerca)
[State -1]
type = ChangeState
value = 205
triggerall = command = "x"
triggerall = P2bodydist X <= 15
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [200,206]) && movecontact

;--------------------------------------------------------------------------
; Golpe Medio Parado
[State -1]
type = ChangeState
value = 210
triggerall = command = "y"
trigger2 = (stateno = [200,206]) && movecontact
trigger1 = statetype = S
trigger1 = ctrl

;--------------------------------------------------------------------------
; Golpe Fuerte Parado (lejos)
[State -1]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = P2bodydist X >= 14
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [210,216]) && movecontact

;--------------------------------------------------------------------------
; Golpe Fuerte Parado (cerca)
[State -1]
type = ChangeState
value = 225
triggerall = command = "z"
triggerall = P2bodydist X <= 15
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [210,216]) && movecontact

;--------------------------------------------------------------------------
; Patada Debil Parado (lejos)
[State -1]
type = ChangeState
value = 230
triggerall = command = "a"
;triggerall = P2bodydist X >= 14
trigger1 = statetype = S
trigger1 = ctrl

;--------------------------------------------------------------------------
; Patada Debil Parado (cerca)
[State -1]
type = ChangeState
value = 235
triggerall = command = "a"
triggerall = P2bodydist X <= 15
trigger1 = statetype = S
trigger1 = ctrl

;--------------------------------------------------------------------------
; Patada Media Parado (lejos)
[State -1]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = P2bodydist X >= 14
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [230,236]) && movecontact

;--------------------------------------------------------------------------
; Patada Media Parado (cerca)
[State -1]
type = ChangeState
value = 245
triggerall = command = "b"
triggerall = P2bodydist X <= 15
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [230,236]) && movecontact

;--------------------------------------------------------------------------
; Patada Fuerte Parado
[State -1]
type = ChangeState
value = 250
triggerall = command = "c"
triggerall = P2bodydist X >= 14
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [240,246]) && movecontact

;--------------------------------------------------------------------------
; Patada Fuerte Parado (cerca)
[State -1]
type = ChangeState
value = 255
triggerall = command = "c"
triggerall = P2bodydist X <= 15
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [230,236]) && movecontact

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
; Golpe Debil Agachado
[State -1]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;--------------------------------------------------------------------------
; Golpe Medio Agachado
[State -1]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400 && movecontact

;--------------------------------------------------------------------------
; Golpe Fuerte Agachado
[State -1]
type = ChangeState
value = 420
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 410 && movecontact

;--------------------------------------------------------------------------
; Patada Debil Agachado
[State -1]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;--------------------------------------------------------------------------
; Patada Media Agachado
[State -1]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;--------------------------------------------------------------------------
; Patada Fuerte Agachado
[State -1]
type = ChangeState
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
; Golpe Debil Saltando
[State -1]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = vel X != 0
trigger1 = ctrl

;--------------------------------------------------------------------------
; Golpe Debil Saltando (Vertical)
[State -1]
type = ChangeState
value = 605
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = vel X = 0
trigger1 = ctrl

;--------------------------------------------------------------------------
; Golpe Medio Saltando
[State -1]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = vel X != 0
trigger1 = ctrl

;--------------------------------------------------------------------------
; Golpe Medio Saltando (Vertical)
[State -1]
type = ChangeState
value = 615
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = vel X = 0
trigger1 = ctrl

;--------------------------------------------------------------------------
; Golpe Fuerte Saltando
[State -1]
type = ChangeState
value = 620
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = vel X != 0
trigger1 = ctrl

;--------------------------------------------------------------------------
; Patada Fuerte Saltando (Vertical)
[State -1]
type = ChangeState
value = 625
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = vel X = 0
trigger1 = ctrl

;--------------------------------------------------------------------------
; Patada Debil Saltando
[State -1]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = vel X != 0
trigger1 = ctrl

;--------------------------------------------------------------------------
; Patada Debil Saltando (Vertical)
[State -1]
type = ChangeState
value = 635
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = vel X = 0
trigger1 = ctrl

;--------------------------------------------------------------------------
; Patada Media Saltando
[State -1]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = vel X != 0
trigger1 = ctrl

;--------------------------------------------------------------------------
; Patada Media Saltando (Vertical)
[State -1]
type = ChangeState
value = 645
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = vel X = 0
trigger1 = ctrl

;--------------------------------------------------------------------------
; Patada Fuerte Saltando
[State -1]
type = ChangeState
value = 650
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = vel X != 0
trigger1 = ctrl

;--------------------------------------------------------------------------
; Patada Fuerte Saltando (Vertical)
[State -1]
type = ChangeState
value = 655
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = vel X = 0
trigger1 = ctrl
