


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

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

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

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

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

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

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

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

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

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

[Command]
name = "CPU10"
command = U,U,D,D,B,F,B,F,x,y
time = 0

[Command]
name = "CPU11"
command = U,U,D,D,B,F,B,F,y,z
time = 0

[Command]
name = "CPU12"
command = U,U,D,D,B,F,B,F,x,z
time = 0

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

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

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

[Command]
name = "CPU16"
command = U,U,D,D,B,F,B,F,b,x
time = 0

[Command]
name = "CPU17"
command = U,U,D,D,B,F,B,F,b,y
time = 0

[Command]
name = "CPU18"
command = U,U,D,D,B,F,B,F,b,z
time = 0

[Command]
name = "CPU19"
command = U,U,D,D,B,F,B,F,c,x
time = 0

[Command]
name = "CPU20"
command = U,U,D,D,B,F,B,F,c,y
time = 0

[Command]
name = "CPU21"
command = U,U,D,D,B,F,B,F,c,z
time = 0

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

[Command]
name = "CPU23"
command = U,U,D,D,B,F,B,F,x,b
time = 0

[Command]
name = "CPU24"
command = U,U,D,D,B,F,B,F,x,c
time = 0

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

[Command]
name = "CPU26"
command = U,U,D,D,B,F,B,F,y,b
time = 0

[Command]
name = "CPU27"
command = U,U,D,D,B,F,B,F,y,c
time = 0

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

[Command]
name = "CPU29"
command = U,U,D,D,B,F,B,F,z,b
time = 0

[Command]
name = "CPU30"
command = U,U,D,D,B,F,B,F,z,c
time = 0

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




;-| Super Motions |--------------------------------------------------------
; Take No Prisoners
[Command]
name = "TNPx"
command = ~D, DB, B, D, DB, B, x
time = 25

[Command]
name = "TNPy"
command = ~D, DB, B, D, DB, B, y
time = 25

[Command]
name = "TNPz"
command = ~D, DB, B, D, DB, B, z
time = 25

;; Steel Rain
;[Command]
;name = "SteelRain_a"
;command = ~D, DF, F, D, DF, F, a+b
;time = 25


; Mine Sweeper
[Command]
name = "mine_x"
command = ~D, DB, B, D, DB, B, b
time = 25

; Mine Sweeper
[Command]
name = "mine_y"
command = ~D, DB, B, D, DB, B, a
time = 25

; Mine Sweeper
[Command]
name = "mine_z"
command = ~D, DB, B, D, DB, B, c
time = 25

[Command]
name = "QCF_xss"
command = ~D, DF, F, D, DF, F, x
time = 25

[Command]
name = "QCF_xsx"
command = ~D, DF, F, D, DF, F, y
time = 25

[Command]
name = "QCF_xsz"
command = ~D, DF, F, D, DF, F, z
time = 25

;-| Special Motions |------------------------------------------------------
[Command]
name = "STINGER_a"
command = ~F, D, DF, a

[Command]
name = "STINGER_b"
command = ~F, D, DF, b

[Command]
name = "STINGER_c"
command = ~F, D, DF, c

;[Command]
;name = "STINGER_exa"
;command = ~F, D, DF, a+b

;[Command]
;name = "STINGER_exb"
;command = ~F, D, DF, b+c

[Command]
name = "QCF_x"
command = ~D, DF, F, x

[Command]
name = "QCF_y"
command = ~D, DF, F, y

[Command]
name = "QCF_z"
command = ~D, DF, F, z

[Command]
name = "QCB_x"
command = ~D, DB, B, x

[Command]
name = "QCB_y"
command = ~D, DB, B, y

[Command]
name = "QCB_z"
command = ~D, DB, B, z

[Command]
name = "QCB_a"
command = ~D, DB, B, a

[Command]
name = "QCB_b"
command = ~D, DB, B, b

[Command]
name = "QCB_c"
command = ~D, DB, B, c





;-| 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

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


[Command]
name = "xy"
command = x+y
time = 1


[Command]
name = "bc"
command = a+b
time = 1




[Command]
name = "ac"
command = a+c
time = 1



[Command]
name = "yz"
command = y+z
time = 1

[Command]
name = "xz"
command = x+z
time = 1

[Command]
name = "xyz"
command = x+y+z
time = 1

[Command]
name = "abc"
command = a+b+c
time = 1

;-| Dir + Button |---------------------------------------------------------
[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 = "downfwd_a"
command = /DF,a
time = 1

[Command]
name = "downfwd_b"
command = /DF,b
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_ab"
;command = /F, a+b
;time = 1

;[Command]
;name = "back_ab"
;command = /B, a+b
;time = 1

;-| 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

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

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

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

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

[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

;===========================================================================
; 2. State entry
; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]

[State -1]
type = VarSet
trigger1 = command = "CPU0"
trigger2 = command = "CPU1"
trigger3 = command = "CPU2"
trigger4 = command = "CPU3"
trigger5 = command = "CPU4"
trigger6 = command = "CPU5"
trigger7 = command = "CPU6"
trigger8 = command = "CPU7"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU8"
trigger2 = command = "CPU9"
trigger3 = command = "CPU10"
trigger4 = command = "CPU11"
trigger5 = command = "CPU12"
trigger6 = command = "CPU13"
trigger7 = command = "CPU14"
trigger8 = command = "CPU15"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU16"
trigger2 = command = "CPU17"
trigger3 = command = "CPU18"
trigger4 = command = "CPU19"
trigger5 = command = "CPU20"
trigger6 = command = "CPU21"
trigger7 = command = "CPU22"
trigger8 = command = "CPU23"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU24"
trigger2 = command = "CPU25"
trigger3 = command = "CPU26"
trigger4 = command = "CPU27"
trigger5 = command = "CPU28"
trigger6 = command = "CPU29"
trigger7 = command = "CPU30"
trigger8 = command = "CPU31"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU0"
trigger2 = command = "CPU1"
trigger3 = command = "CPU2"
trigger4 = command = "CPU3"
trigger5 = command = "CPU4"
trigger6 = command = "CPU5"
trigger7 = command = "CPU6"
trigger8 = command = "CPU7"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU8"
trigger2 = command = "CPU9"
trigger3 = command = "CPU10"
trigger4 = command = "CPU11"
trigger5 = command = "CPU12"
trigger6 = command = "CPU13"
trigger7 = command = "CPU14"
trigger8 = command = "CPU15"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU16"
trigger2 = command = "CPU17"
trigger3 = command = "CPU18"
trigger4 = command = "CPU19"
trigger5 = command = "CPU20"
trigger6 = command = "CPU21"
trigger7 = command = "CPU22"
trigger8 = command = "CPU23"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU24"
trigger2 = command = "CPU25"
trigger3 = command = "CPU26"
trigger4 = command = "CPU27"
trigger5 = command = "CPU28"
trigger6 = command = "CPU29"
trigger7 = command = "CPU30"
trigger8 = command = "CPU31"
v = 50
value = 1

;===========================================================================
; Alpha 2 Patriot Circle Set 1
[State -1]
type = ChangeState
value = 2000554
triggerall = command = "QCF_xss"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, Shoryuken_x]
type = ChangeState
value = 2000554
triggerall = command = "QCF_xss"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450



[State -1]
type = ChangeState
value = 2000577
triggerall = command = "QCF_xsx"
triggerall = power >= 2000
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, Shoryuken_x]
type = ChangeState
value = 2000577
triggerall = command = "QCF_xsx"
triggerall = power >= 2000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450

[State -1]
type = ChangeState
value = 20005788
triggerall = command = "QCF_xsz"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, Shoryuken_x]
type = ChangeState
value = 20005788
triggerall = command = "QCF_xsz"
triggerall = power >= 3000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450


;; Steel Rain A
;[State -1, Steel Rain A]
;type = ChangeState
;value = 3000
;triggerall = command = "SteelRain_a"
;triggerall = numhelper(3100) < 1
;triggerall = power >= 2000
;trigger1 = statetype != A
;trigger1 = ctrl = 1

;===========================================================================
; Mine Sweeper X
[State -1, Mine Sweeper X]
type = ChangeState
value = 3600
triggerall = command = "mine_x"
triggerall = power >= 2000
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, Shoryuken_x]
type = ChangeState
value = 3600
triggerall = command = "mine_x"
triggerall = power >= 2000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450


;===========================================================================
; Mine Sweeper X
[State -1, Mine Sweeper X]
type = ChangeState
value = 360011
triggerall = command = "mine_y"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, Shoryuken_x]
type = ChangeState
value = 360011
triggerall = command = "mine_y"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450



;===========================================================================
; Mine Sweeper X
[State -1, Mine Sweeper X]
type = ChangeState
value = 360012
triggerall = command = "mine_z"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, Shoryuken_x]
type = ChangeState
value = 360012
triggerall = command = "mine_z"
triggerall = power >= 3000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450


;===========================================================================
;Take No Prisoners X
[State -1]
type = ChangeState
value = 4000
triggerall = command = "TNPx"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, Shoryuken_x]
type = ChangeState
value = 4000
triggerall = command = "TNPx"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450


;Take No Prisoners Y
[State -1]
type = ChangeState
value = 4030
triggerall = command = "TNPy"
triggerall = power >= 2000
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, Shoryuken_x]
type = ChangeState
value = 4030
triggerall = command = "TNPy"
triggerall = power >= 2000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450


;Take No Prisoners Z
[State -1]
type = ChangeState
value = 4060
triggerall = command = "TNPz"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, Shoryuken_x]
type = ChangeState
value = 4060
triggerall = command = "TNPz"
triggerall = power >= 3000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450
================================================

; Jab Ground Recovery
;[State -1, Jab Ground Rec]
;type = ChangeState
;value = 1500
;triggerall = command = "ACX"
;triggerall = alive = 1 && canrecover = 1 && pos y > -30
;trigger1 = stateno = 5050 || stateno = 5071

; Strong Ground Recovery
;[State -1, Strong Ground Rec]
;type = ChangeState
;value = 1510
;triggerall = command = "ACY" || command = "ab" || command = "bc"
;triggerall = alive = 1 && canrecover = 1 && pos y > -30
;trigger1 = stateno = 5050 || stateno = 5071

; Fierce Ground Recovery
;[State -1, Fierce Ground Rec]
;type = ChangeState
;value = 1520
;triggerall = command = "ACZ"
;triggerall = alive = 1 && canrecover = 1 && pos y > -30
;trigger1 = stateno = 5050 || stateno = 5071

[State -1]
type = ChangeState
value = 195123
trigger1 = command = "QCB_a"
;trigger1 = command = "holdfwd"
;triggerall = command = "start"
;triggerall = statetype != A
trigger1 = statetype = S
trigger1 = ctrl ;= 1



[State -1]
type = ChangeState
value = 195124
trigger1 = command = "QCB_b"
;trigger1 = command = "holdfwd"
;triggerall = command = "start"
;triggerall = statetype != A
trigger1 = statetype = S
trigger1 = ctrl ;= 1


[State -1]
type = ChangeState
value = 195125
trigger1 = command = "QCB_c"
;trigger1 = command = "holdfwd"
;triggerall = command = "start"
;triggerall = statetype != A
trigger1 = statetype = S
trigger1 = ctrl ;= 1



;===========================================================================
;Punch Stand Throw
[State -1]
type = ChangeState
value = 900
triggerall = P2BodyDist X <= 20
triggerall = command = "holdfwd" && command = "xy"
trigger1 = statetype != A
trigger1 = ctrl 

;Kick Stand Throw
[State -1]
type = ChangeState
value = 930
triggerall = P2BodyDist X <= 20
triggerall = command = "holdfwd" && command = "bc"
trigger1 = statetype != A
trigger1 = ctrl 

;;Air_Throw1
;[State -1]
;type = ChangeState
;value = 970
;triggerall = statetype = A
;triggerall = ctrl = 1
;triggerall = stateno != 1430 ; Delta Mekong Escape
;trigger1 = command = "holdfwd" && command = "bc"
;trigger2 = command = "holdback" && command = "bc"

;===========================================================================
; Alpha 2 Patriot Circle Set 1
[State -1]
type = ChangeState
value = 2000
triggerall = command = "QCF_x"
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, asraf_2pai]
type = ChangeState
value = 2000
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 20 && p2bodydist X < 30

[State -1, Shoryuken_x]
type = ChangeState
value = 2000
triggerall = command = "QCF_x"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450



; Alpha 3 Patriot Circle Set 1
[State -1]
type = ChangeState
value = 2100
triggerall = command = "QCF_y"
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, asraf_2pai]
type = ChangeState
value = 2100
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 25 && p2bodydist X < 35

[State -1, asraf_2pai]
type = ChangeState
value = 2100
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 40 && p2bodydist X < 50

[State -1, Shoryuken_x]
type = ChangeState
value = 2100
triggerall = command = "QCF_y"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450




; Alpha 2 Patriot Circle Set 2
[State -1]
type = ChangeState
value = 2100
triggerall = stateno = 2000
trigger1 = time >= 22 && time <= 55
trigger1 = command = "QCF_y" ;|| command = "QCF_z"








; Alpha 3 Patriot Circle Set 3
[State -1]
type = ChangeState
value = 2060
trigger1 = command = "QCF_z" 
trigger1 = statetype != A
trigger1 = ctrl = 1






;[State -1, Shoryuken_x]
;type = ChangeState
;value = 2060
;triggerall = command = "QCF_z" 
;triggerall = statetype != A
;triggerall = movecontact
;trigger1 = ctrl
;trigger2 = stateno = 200
;trigger3 = stateno = 210
;trigger4 = stateno = 220
;trigger5 = stateno = 260
;trigger6 = stateno = 240
;trigger7 = stateno = 270
;trigger8 = stateno = 230
;trigger9 = stateno = 400
;trigger10 = stateno = 410
;trigger11 = stateno = 240
;trigger12 = stateno = 420
;trigger13 = stateno = 430
;trigger14 = stateno = 440
;trigger15 = stateno = 450


; Alpha 2 Patriot Circle Set 3
[State -1]
type = ChangeState
value = 2060
triggerall = stateno = 2100
trigger1 = time >= 17 && time <= 54
trigger1 = command = "QCF_z"

;---------------------------------------------------------------------------
;Stinger EX
;[State -1]
;type = ChangeState
;value = 1030
;triggerall = command = "STINGER_exa" || command = "STINGER_exb"
;trigger1 = statetype != A
;trigger1 = ctrl = 1


;Stinger A
[State -1]
type = ChangeState
value = 1000
triggerall = command = "STINGER_a"
trigger1 = statetype != A
trigger1 = ctrl 

[State -1, asraf_2pai]
type = ChangeState
value = 1000
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype = S || StateType = C
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 35 && p2bodydist X < 45

[State -1, Shoryuken_x]
type = ChangeState
value = 1000
triggerall = command = "STINGER_a"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450
;---------------------------


;Stinger B
[State -1]
type = ChangeState
value = 1010
triggerall = command = "STINGER_b"
trigger1 = statetype != A
trigger1 = ctrl 

[State -1, asraf_2pai]
type = ChangeState
value = 1010
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype = S || StateType = C
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 155 && p2bodydist X < 156

[State -1, Shoryuken_x]
type = ChangeState
value = 1010
triggerall = command = "STINGER_b"
trigger1 = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450

;Stinger C
[State -1]
type = ChangeState
value = 1020
triggerall = command = "STINGER_c"
trigger1 = statetype != A
trigger1 = ctrl 


[State -1, asraf_2pai]
type = ChangeState
value = 1020
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype = S || StateType = C
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 175 && p2bodydist X < 186

[State -1, Shoryuken_x]
type = ChangeState
value = 1020
triggerall = command = "STINGER_c"
trigger1 = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450


;---------------------------------------------------------------------------
; Mekong Delta Air Raid_X
[State -1, Mekong Delta Air Raid X]
type = ChangeState
value = 1200
triggerall = command = "QCB_x"
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, asraf_2pai]
type = ChangeState
value = 1200
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype = S || StateType = C
triggerall = statetype != A
triggerall = ctrl = 1
trigger1 = p2bodydist X > 55 && p2bodydist X < 65

[State -1, asraf_2pai]
type = ChangeState
value = 1200223
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype = S || StateType = C
triggerall = statetype != A
triggerall = ctrl = 1
trigger1 = p2bodydist X > 22 && p2bodydist X < 33

[State -1, Shoryuken_x]
type = ChangeState
value = 1200
triggerall = command = "QCB_x"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450


; Mekong Delta Air Raid_Y
[State -1, Mekong Delta Air Raid Y]
type = ChangeState
value = 1210
triggerall = command = "QCB_y"
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, asraf_2pai]
type = ChangeState
value = 1210223
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype = S || StateType = C
triggerall = statetype != A
triggerall = ctrl = 1
trigger1 = p2bodydist X > 43 && p2bodydist X < 53


[State -1, Shoryuken_x]
type = ChangeState
value = 1210
triggerall = command = "QCB_y"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450

; Mekong Delta Air Raid_Z
[State -1, Mekong Delta Air Raid Z]
type = ChangeState
value = 1220
triggerall = command = "QCB_z"
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, asraf_2pai]
type = ChangeState
value = 1220223
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype = S || StateType = C
triggerall = statetype != A
triggerall = ctrl = 1
trigger1 = p2bodydist X > 33 && p2bodydist X < 43

[State -1, Shoryuken_x]
type = ChangeState
value = 1220
triggerall = command = "QCB_z"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 220
trigger5 = stateno = 260
trigger6 = stateno = 240
trigger7 = stateno = 270
trigger8 = stateno = 230
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 240
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440
trigger15 = stateno = 450






;---------------------------------------------------------------------------
; Trick Landing
;[State -1, Trick Landing]
;type = ChangeState
;value = 644
;;triggerall = command = "abc"
;triggerall = command = "ab" || command = "bc" || command = "ac"
;trigger1 = ctrl = 1
;trigger1 = statetype = A
;trigger1 = pos y > -15
;trigger1 = vel y > 0

;---------------------------------------------------------------------------
; Punch Alpha/Zero Counters
;[State -1]
;type = ChangeState
;value = 800
;triggerall = command = "ACX" || command = "ACY" || command = "ACZ"
;;triggerall = power >= 1000
;trigger1 = stateno >= 150 && stateno <= 153

; Kick Alpha/Zero Counters
;[State -1]
;type = ChangeState
;value = 850
;triggerall = command = "ACA" || command = "ACB" || command = "ACC"
;;triggerall = power >= 1000
;trigger1 = stateno >= 150 && stateno <= 153



;---------------------------------------------------------------------------
;Stand_JAB_X
[State -1]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl ;= 1

;---------------------------------------------------------------------------
;Stand_SHORT_A
[State -1]
type = ChangeState
value = 210
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl ;= 1

;---------------------------------------------------------------------------
;Stand_STRONG_Y
[State -1]
type = ChangeState
value = 220
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl ;= 1

[State -1, asraf_2pai]
type = ChangeState
value = 220
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 24 && p2bodydist X < 34


;Stand_FIERCE_Z_CLOSE
[State -1]
type = ChangeState
value = 250
trigger1 = command = "z"
trigger1 = command = "holdfwd"
;trigger1 = p2dist x <= 50
trigger1 = statetype = S
trigger1 = ctrl ;= 1

; Alpha 3 Patriot Circle Set 2
[State -1]
type = ChangeState
value = 2130
;triggerall = stateno = 2100
;trigger1 = time >= 16 && time <= 45
triggerall = command = "z"
trigger1 = command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl ;= 1
;trigger1 = command = "QCF_y";|| command = "QCF_y" || command = "QCF_z"

;Stand_FIERCE_Z_NEUTRAL
[State -1]
type = ChangeState
value = 260
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl ;= 1

[State -1, asraf_2pai]
type = ChangeState
value = 260
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 30 && p2bodydist X < 50


;===========================================================================
; Taunt

;Stand_FORWARD_B_Close
[State -1]
type = ChangeState
value = 235
triggerall = command = "c"
trigger1 = command = "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl ;= 1
;trigger2 = command = "holdback"
;trigger2 = statetype = S
;trigger2 = ctrl ;= 1



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

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

[State -1, asraf_2pai]
type = ChangeState
value = 195
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 15 && p2bodydist X < 38


;---------------------------------------------------------------------------
;Standing Baton Stand
[State -1]
type = ChangeState
value = 240
trigger1 = command = "c"
triggerall = command != "holddown"
triggerall = P2BodyDist x <= 20
trigger1 = statetype = S
trigger1 = ctrl ;= 1

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


; Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 270777
triggerall = command = "c"
triggerall = command != "holdback"
triggerall = command != "holdfwd"
triggerall = command != "holddown"
trigger1 = (stateno = 240 && movecontact)


;---------------------------------------------------------------------------
;Stand_ROUNDHOUSE_C
[State -1]
type = ChangeState
value = 270
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl ;= 1


;Stand_FORWARD_B_NEUTRAL
[State -1]
type = ChangeState
value = 230
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl ;= 1

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




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

;---------------------------------------------------------------------------
;Crouch_SHORT_A
[State -1]
type = ChangeState
value = 410
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl ;= 1

;---------------------------------------------------------------------------
;Crouch_STRONG_Y
[State -1]
type = ChangeState
value = 420
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl ;= 1

;---------------------------------------------------------------------------
;Crouch_FORWARD_B
[State -1]
type = ChangeState
value = 430
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl ;= 1

;---------------------------------------------------------------------------
;Crouch_FIERCE_Z
[State -1]
type = ChangeState
value = 440
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl ;= 1

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

;---------------------------------------------------------------------------
;Jump_JAB_X
[State -1]
type = ChangeState
value = 600
trigger1 = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Jump_SHORT_A
[State -1]
type = ChangeState
value = 610
trigger1 = command = "a"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Jump_STRONG_Y
[State -1]
type = ChangeState
value = 620
trigger1 = command = "y"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Jump_FIERCE_Z
[State -1]
type = ChangeState
value = 650
trigger1 = command = "z"
triggerall = Vel X > 0 || Vel X < 0
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Jump Forwar FORWARD_B
[State -1]
type = ChangeState
value = 640
;triggerall = stateno != 1430
triggerall = Vel X = 0
trigger1 = command = "z"
trigger1 = statetype = A
trigger1 = ctrl = 1

;Jump_FORWARD_B
[State -1]
type = ChangeState
value = 630
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Jump_ROUNDHOUSE_c
[State -1]
type = ChangeState
value = 66011
triggerall = Vel X = 0
trigger1 = command = "c"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Jump_ROUNDHOUSE_c
[State -1]
type = ChangeState
value = 660
triggerall = Vel X > 0 || Vel X < 0
trigger1 = command = "c"
trigger1 = statetype = A
trigger1 = ctrl = 1



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






;---------------------------------------------------------------------------
;===========================================================================

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 60 && p2bodydist X < 75


[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 90 && p2bodydist X < 105

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 120 && p2bodydist X < 135

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 =  p2bodydist X > 150 && p2bodydist X < 165

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 175 && p2bodydist X < 185

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 195 && p2bodydist X < 205

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 240 && p2bodydist X < 250


[State -1, 対地 立ちガード]
type  = ChangeState
value = 130
triggerall = InGuardDist
triggerall = statetype != A
triggerall = EnemyNear,HitDefAttr != SCA,NT,ST,HT
triggerall = var(50) = 1
triggerall = ctrl
triggerall = p2statetype = S
trigger1 = P2BodyDist X = [ceil(40*const(size.xscale)),ceil(90*const(size.xscale))]
trigger1 = var(51) = [0,24]        
trigger2 = P2BodyDist X = [ceil(-15*const(size.xscale)),ceil(39*const(size.xscale))]
trigger2 = var(51) = [10,39]
trigger3 = enemy,teammode = simul 
trigger3 = P2BodyDist X = [ceil(-50*const(size.xscale)),ceil(-16*const(size.xscale))]
trigger3 = var(51) = [0,39]
trigger4 = P2BodyDist X = [ceil(-15*const(size.xscale)),ceil(39*const(size.xscale))]
trigger4 = enemy,hitdefattr = S, NA,SA,HA 
trigger4 = Random < 400
trigger5 = Enemy,NumProj > 0
trigger5 = P2BodyDist X = [ceil(-50*const(size.xscale)),ceil(200*const(size.xscale))]
trigger5 = Random < 400

[State -1, 対空 立ちガード]
type  = ChangeState
value = 130
triggerall = InGuardDist
triggerall = statetype != A
triggerall = EnemyNear,HitDefAttr != SCA,NT,ST,HT
triggerall = var(50) = 1
triggerall = ctrl
triggerall = p2statetype = A
trigger1 = P2BodyDist X = [ceil(40*const(size.xscale)),ceil(90*const(size.xscale))]
trigger1 = var(51) = [0,25]
trigger2 = P2BodyDist X = [ceil(-40*const(size.xscale)),ceil(39*const(size.xscale))]
trigger2 = var(51) = [0,34]
trigger3 = P2BodyDist X = [ceil(-40*const(size.xscale)),ceil(39*const(size.xscale))]
trigger3 = enemy,hitdefattr = A, NA,SA,HA
trigger3 = Random < 400
trigger4 = Enemy,NumProj > 0
trigger4 = P2BodyDist X = [ceil(-50*const(size.xscale)),ceil(200*const(size.xscale))]
trigger4 = Random < 400

[State -1, しゃがみガード]
type  = ChangeState
value = 131
triggerall = InGuardDist
triggerall = statetype = C
triggerall = EnemyNear,HitDefAttr != SCA,NT,ST,HT
triggerall = var(50) = 1
triggerall = ctrl
trigger1 = p2statetype = C
trigger1 = P2BodyDist X = [ceil(40*const(size.xscale)),ceil(85*const(size.xscale))]
trigger1 = var(51) = [0,34]
trigger2 = p2statetype = C
trigger2 = P2BodyDist X = [ceil(-20*const(size.xscale)),ceil(39*const(size.xscale))]
trigger2 = var(51) = [0,35]
trigger3 = p2statetype = S      
trigger3 = P2BodyDist X = [ceil(-15*const(size.xscale)),ceil(39*const(size.xscale))]
trigger3 = var(51) = [0,29]
trigger4 = p2statetype = C
trigger4 = enemy,teammode = simul
trigger4 = P2BodyDist X = [ceil(-50*const(size.xscale)),ceil(-16*const(size.xscale))]
trigger4 = var(51) = [0,45]
trigger5 = P2BodyDist X = [ceil(-20*const(size.xscale)),ceil(39*const(size.xscale))]
trigger5 = enemy,hitdefattr = C, NA,SA,HA
trigger5 = Random < 400
trigger6 = Enemy,NumProj > 0
trigger6 = P2BodyDist X = [ceil(-50*const(size.xscale)),ceil(200*const(size.xscale))]
trigger6 = Random < 400

[State -1, velset]
type = velset
trigger1 = var(50) = 1
trigger1 = stateno = [120,132]
trigger1 = statetype != A
x = 0





