;=====================================================================
;  CMD File For "Juni"                                  Made By M.M.R.
;                                       Ver. 0.7           2001.Aug.20
;=====================================================================

;=====================================================================
; Definition of the Commands
;=====================================================================




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

;---------------------------------------------------------------------
; デスクロスダンシング
[Command]
name = "dcd"
command = ~D,DF, F, D,DF, F, s
time = 40


;---------------------------------------------------------------------
; サイコローリング
[Command]
name = "pr_a"
command = ~D,DF, F, D,DF, F, x
time = 30

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

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

;---------------------------------------------------------------------
; サイコストリーク
;[Command]
;name = "ps_a"
;command = ~60$B, F, B, F, x
;time = 35


[Command]
name = "ps_c"
command = ~60$B, F, B, F, s
time = 35

;---------------------------------------------------------------------
; スピンドライブスマッシャー
[Command]
name = "sds_a"
command = ~D,DF, F, D,DF, F, a
time = 35

[Command]
name = "sds_b"
command = ~D,DF, F, D,DF, F, b
time = 35

[Command]
name = "sds_c"
command = ~D,DF, F, D,DF, F, c
time = 35

;-| Special Motions |-------------------------------------------------

;---------------------------------------------------------------------
; スパイラルアロー
[Command]
name = "sa_a"
command = ~40$B, F, a
time = 15

[Command]
name = "sa_b"
command = ~40$B, F, b
time = 15

[Command]
name = "sa_c"
command = ~40$B, F, c
time = 15

;---------------------------------------------------------------------
; キャノンスパイク
[Command]
name = "cs_a"
command = ~30$D,$U, a
time = 15

[Command]
name = "cs_b"
command = ~30$D,$U, b
time = 15

[Command]
name = "cs_c"
command = ~30$D,$U, c
time = 15

;---------------------------------------------------------------------
; フーリガンコンビネーション
[Command]
name = "hc_a"
command = ~D, DB, B, a
time = 25

[Command]
name = "hc_b"
command = ~D, DB, B, b
time = 25

[Command]
name = "hc_c"
command = ~D, DB, B, c
time = 25

;---------------------------------------------------------------------
; キャノンストライク／マッハスライド
[Command]
name = "ms_a"
command = ~D,DF, F, x
time = 20

[Command]
name = "ms_b"
command = ~D,DF, F, y
time = 20

[Command]
name = "ms_c"
command = ~D,DF, F, z
time = 20

;---------------------------------------------------------------------
; アースダイレクト
[Command]
name = "ed_a"
command = a+x
time = 40


[Command]
name = "ed_b"
command = b+y
time = 40


[Command]
name = "ed_c"
command = c+z
time = 40

;-| 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 = "pcb"
command = a+b+c
time = 1

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



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

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

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

[Command]
name = "ax"
command = a+x
time = 1

[Command]
name = "by"
command = b+y
time = 1

[Command]
name = "cz"
command = c+z
time = 1

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

[Command]
name = "xyz"
command = x+y+z
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 = "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 = "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 = "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

;------------------- Street Fighter Zero 3


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


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

;[Command]
;name = "airthrow_k"
;command = /$F,b+c
;time = 1

;[Command]
;name = "airthrow_k"
;command = /$B,b+c
;time = 1



;-| Single Button |---------------------------------------------------
[Command]
name = "x"
command = x
time = 1

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

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

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

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

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

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

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

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

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

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

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

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

[Command]
name = "ss"
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

;=====================================================================
; State Entry for Commands
;=====================================================================

[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





;=====================================================================
; CPU Function
;=====================================================================
;
;=====================================================================
; Super Arts
;=====================================================================

;---------------------------------------------------------------------
; デスクロスダンシング
[State -1]
type = ChangeState
value = 3900123
triggerall = Power >= 3000
triggerall = Command = "dcd"
triggerall = StateType != A
trigger1 = (StateNo = [200,500)) || StateNo = 600
trigger2 = Ctrl ;= 1

[State -1, Shoryuken_x]
type = ChangeState
value = 3900123
triggerall = Power >= 3000
triggerall = Command = "dcd"
triggerall = statetype != A
triggerall = movecontact
trigger1 = (StateNo = [200,500)) || StateNo = 600
trigger2 = ctrl
trigger3 = stateno = 200
trigger4 = stateno = 21012
trigger5 = stateno = 21011
trigger6 = stateno = 210
trigger7 = stateno = 215
trigger8 = stateno = 220
trigger9 = stateno = 22522
trigger10 = stateno = 225
trigger11 = stateno = 300
trigger12 = stateno = 310
trigger13 = stateno = 320
trigger14 = stateno = 350
trigger15 = stateno = 360
trigger16 = stateno = 370

;---------------------------------------------------------------------
; サイコストリーク（Ｌｖ１）
;[State -1]
;type = ChangeState
;value = 3000
;triggerall = StateType != A
;triggerall = Ctrl = 1
;triggerall = Power >= 1000
;trigger1 = Command = "ps_a"


;------------------------ キャンセル設定
;[State -1]
;type = ChangeState
;value = 3000
;triggerall = Power >= 1000
;triggerall = StateType != A
;triggerall = MoveContact
;triggerall = (StateNo = [200,220]) || (StateNo = [300,310]) || ;StateNo ;= 350
;trigger1 = Command = "ps_a"


;---------------------------------------------------------------------
; サイコストリーク（Ｌｖ２）
;[State -1]
;type = ChangeState
;value = 3100
;triggerall = StateType != A
;triggerall = Ctrl = 1
;triggerall = Power >= 2000
;trigger1 = Command = "ps_b"

;------------------------ キャンセル設定
;[State -1]
;type = ChangeState
;value = 3100
;triggerall = Power >= 2000
;triggerall = StateType != A
;triggerall = MoveContact
;triggerall = (StateNo = [200,220]) || (StateNo = [300,310]) || ;StateNo = 350
;trigger1 = Command = "ps_b"

;---------------------------------------------------------------------
; サイコストリーク（Ｌｖ３）
[State -1]
type = ChangeState
value = 3200
triggerall = StateType != A
triggerall = Ctrl ;= 1
triggerall = Power >= 3000
trigger1 = Command = "ps_c"



;---------------------------------------------------------------------
; スピンドライブスマッシャー（Ｌｖ１）
[State -1]
type = ChangeState
value = 3300
triggerall = StateType != A
triggerall = Power >= 1000
triggerall = Command = "sds_a"
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40 && MoveType != H

[State -1, Shoryuken_x]
type = ChangeState
value = 3300
triggerall = Command = "sds_a"
triggerall = Power >= 1000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370



;---------------------------------------------------------------------
; スピンドライブスマッシャー（Ｌｖ２）
[State -1]
type = ChangeState
value = 3400
triggerall = StateType != A
triggerall = Power >= 2000
triggerall = Command = "sds_b"
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40 && MoveType != H


[State -1, Shoryuken_x]
type = ChangeState
value = 3400
triggerall = Command = "sds_b"
triggerall = Power >= 2000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370

;---------------------------------------------------------------------
; スピンドライブスマッシャー（Ｌｖ３）
[State -1]
type = ChangeState
value = 3500
triggerall = StateType != A
triggerall = Power >= 3000
triggerall = Command = "sds_c"
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40 && MoveType != H


[State -1, Shoryuken_x]
type = ChangeState
value = 3500
triggerall = Command = "sds_c"
triggerall = Power >= 3000
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370

;---------------------------------------------------------------------
; サイコローリング（Ｌｖ１）
[State -1]
type = ChangeState
value = 3600
triggerall = StateType != A
triggerall = Ctrl ;= 1
triggerall = Power >= 1000
triggerall = NumHelper(3600) = 0 && NumHelper(3700) = 0 && NumHelper(3800) = 0
trigger1 = Command = "pr_a"

[State -1, Shoryuken_x]
type = ChangeState
value = 3600
triggerall = Command = "pr_a"
triggerall = statetype != A
triggerall = Power >= 1000
triggerall = NumHelper(3600) = 0 && NumHelper(3700) = 0 && NumHelper(3800) = 0
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370



;---------------------------------------------------------------------
; サイコローリング（Ｌｖ２）
[State -1]
type = ChangeState
value = 3700
triggerall = StateType != A
triggerall = Ctrl ;= 1
triggerall = Power >= 2000
triggerall = NumHelper(3600) = 0 && NumHelper(3700) = 0 && NumHelper(3800) = 0
trigger1 = Command = "pr_b"


[State -1, Shoryuken_x]
type = ChangeState
value = 3700
triggerall = Command = "pr_b"
triggerall = statetype != A
triggerall = Power >= 2000
triggerall = NumHelper(3600) = 0 && NumHelper(3700) = 0 && NumHelper(3800) = 0
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370

;---------------------------------------------------------------------
; サイコローリング（Ｌｖ３）
[State -1]
type = ChangeState
value = 3800
triggerall = StateType != A
triggerall = Ctrl ;= 1
triggerall = Power >= 3000
triggerall = NumHelper(3600) = 0 && NumHelper(3700) = 0 && NumHelper(3800) = 0
trigger1 = Command = "pr_c"

[State -1, Shoryuken_x]
type = ChangeState
value = 3800
triggerall = Command = "pr_c"
triggerall = statetype != A
triggerall = Power >= 3000
triggerall = NumHelper(3600) = 0 && NumHelper(3700) = 0 && NumHelper(3800) = 0
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370


;---------------------------------------------------------------------
; オリジナルコンボ発動
[State -1]
type = Null;ChangeState
value = 7000 + IfElse(StateType = A,50,0)
triggerall = Command = "s"
trigger1 = Ctrl = 1

;=====================================================================
; Special Arts 
;=====================================================================

;---------------------------------------------------------------------
; アースダイレクト・弱
[State -1]
type = ChangeState
value = 1600
triggerall = Command = "ed_a"
triggerall = StateType != A
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40
trigger2 = MoveType != H





;---------------------------------------------------------------------
; アースダイレクト・中
[State -1]
type = ChangeState
value = 1650
triggerall = Command = "ed_b"
triggerall = StateType != A
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40
trigger2 = MoveType != H



;---------------------------------------------------------------------
; アースダイレクト・強
[State -1]
type = ChangeState
value = 1700
triggerall = Command = "ed_c"
triggerall = StateType != A
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40
trigger2 = MoveType != H

[State -1, asraf_2pai]
type = ChangeState
value = 1700
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]
type = ChangeState
value = 1300
triggerall = Command = "hc_a"
triggerall = StateType != A
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40
trigger2 = MoveType != H

[State -1, Shoryuken_x]
type = ChangeState
value = 1300
triggerall = Command = "hc_a"
triggerall = StateType != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370



;---------------------------------------------------------------------
; フーリガンコンビネーション・中
[State -1]
type = ChangeState
value = 1380
triggerall = Command = "hc_b"
triggerall = StateType != A
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40
trigger2 = MoveType != H

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

[State -1, Shoryuken_x]
type = ChangeState
value = 1380
triggerall = Command = "hc_b"
triggerall = StateType != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370


;---------------------------------------------------------------------
; フーリガンコンビネーション・強
[State -1]
type = ChangeState
value = 1390
triggerall = Command = "hc_c"
triggerall = StateType != A
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40
trigger2 = MoveType != H

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

[State -1, Shoryuken_x]
type = ChangeState
value = 1390
triggerall = Command = "hc_c"
triggerall = StateType != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370



;---------------------------------------------------------------------
; キャノンスパイク・弱
[State -1]
type = ChangeState
value = 1200
triggerall = Command = "cs_a"
triggerall = StateType != A
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40
trigger2 = MoveType != H

[State -1, Shoryuken_x]
type = ChangeState
value = 1200
triggerall = Command = "cs_a"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370



;---------------------------------------------------------------------
; キャノンスパイク・中
[State -1]
type = ChangeState
value = 1250
triggerall = Command = "cs_b"
triggerall = StateType != A
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40
trigger2 = MoveType != H

[State -1, Shoryuken_x]
type = ChangeState
value = 1250
triggerall = Command = "cs_b"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370



;---------------------------------------------------------------------
; キャノンスパイク・強
[State -1]
type = ChangeState
value = 1270
triggerall = Command = "cs_c"
triggerall = StateType != A
trigger1 = Ctrl ;= 1
trigger2 = StateNo = 40
trigger2 = MoveType != H

[State -1, asraf_2pai]
type = ChangeState
value = 1270
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 = 1270
triggerall = Command = "cs_c"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370



;---------------------------------------------------------------------
; スパイラルアロー・弱
[State -1]
type = ChangeState
value = 1000
triggerall = Command = "sa_a"
trigger1 = Ctrl ;= 1
trigger1 = StateType != A

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


;---------------------------------------------------------------------
; スパイラルアロー・中
[State -1]
type = ChangeState
value = 1030
triggerall = Command = "sa_b"
trigger1 = Ctrl ;= 1
trigger1 = StateType != A

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



;---------------------------------------------------------------------
; スパイラルアロー・強
[State -1]
type = ChangeState
value = 1060
triggerall = Command = "sa_c"
trigger1 = Ctrl ;= 1
trigger1 = StateType != A

[State -1, asraf_2pai]
type = ChangeState
value = 1060
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]
;type = ChangeState
;value = 1100
;triggerall = Command = "sa_a"
;trigger1 = Ctrl = 1
;trigger1 = StateType = A && Vel Y < 0

;---------------------------------------------------------------------
; エアスパイラルアロー・中
;[State -1]
;type = ChangeState
;value = 1150
;triggerall = Command = "sa_b"
;trigger1 = Ctrl = 1
;trigger1 = StateType = A && Vel Y < 0

;---------------------------------------------------------------------
; エアスパイラルアロー・強
;[State -1]
;type = ChangeState
;value = 1170
;triggerall = Command = "sa_c"
;trigger1 = Ctrl = 1
;trigger1 = StateType = A && Vel Y < 0



;---------------------------------------------------------------------
; マッハスライド・弱
[State -1]
type = ChangeState
value = 1500
triggerall = Command = "ms_a"
trigger1 = Ctrl ;= 1
trigger1 = StateType != A

[State -1, Shoryuken_x]
type = ChangeState
value = 1500
triggerall = Command = "ms_a"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370

;---------------------------------------------------------------------
; マッハスライド・中
[State -1]
type = ChangeState
value = 1510
triggerall = Command = "ms_b"
trigger1 = Ctrl ;= 1
trigger1 = StateType != A

[State -1, Shoryuken_x]
type = ChangeState
value = 1510
triggerall = Command = "ms_b"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370



;---------------------------------------------------------------------
; マッハスライド・強
[State -1]
type = ChangeState
value = 1520
triggerall = Command = "ms_c"
trigger1 = Ctrl ;= 1
trigger1 = StateType != A

[State -1, Shoryuken_x]
type = ChangeState
value = 1520
triggerall = Command = "ms_c"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 21012
trigger4 = stateno = 21011
trigger5 = stateno = 210
trigger6 = stateno = 215
trigger7 = stateno = 220
trigger8 = stateno = 22522
trigger9 = stateno = 225
trigger10 = stateno = 300
trigger11 = stateno = 310
trigger12 = stateno = 320
trigger13 = stateno = 350
trigger14 = stateno = 360
trigger15 = stateno = 370



;=====================================================================
; Special Attacks , Moves and so on.
;=====================================================================

;---------------------------------------------------------------------
; ＺＥＲＯカウンター
;[State -1]
;type = ChangeState
;value = 4000 + IfElse(Var(31) = 1,50,0)
;triggerall = Command = "holdfwd"
;triggerall = Command = "ax" || Command = "by" || Command = "cz"
;triggerall = Var(31) != -1
;trigger1 = Var(31) = 0 && Power >= 1000
;trigger1 = StateNo = [150,153]
;trigger2 = Var(31) = 1 && Power >= 1500
;trigger2 = StateNo = [150,153]

;---------------------------------------------------------------------
; サイコチャージβ
[State -1]
type = ChangeState
value = 4500
triggerall = Command = "pcb"
triggerall = Power >= 1000
triggerall = StateType != A
trigger1 = Ctrl ;= 1

[State -1]
type = ChangeState
value = 4500123
triggerall = Command = "pcb1"
triggerall = Power >= 2000
triggerall = StateType != A
trigger1 = Ctrl ;= 1

;=====================================================================
; Basic Animation
;=====================================================================

;---------------------------------------------------------------------
;RunFwd
[State -1]
type = Null;ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = StateNo != 100

;---------------------------------------------------------------------
;RunBack
[State -1]
type = Null;ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl = 1

;=====================================================================
; Basic Throws
;=====================================================================

;---------------------------------------------------------------------
; フーリガンスープレックス（Ｐ通常投げ）
[State -1]
type = ChangeState
value = 800
triggerall = StateNo != 100
triggerall = P2BodyDist X <= 20
triggerall = command = "holdfwd" && command = "throw_p"
trigger1 = StateType = S
trigger1 = Ctrl ;= 1


;---------------------------------------------------------------------
; フランケンシュタイナー（Ｋ通常投げ）
[State -1]
type = ChangeState
value = 850
triggerall = StateNo != 100
triggerall = P2BodyDist X <= 20
triggerall = command = "holdfwd" && command = "throw_k"
trigger1 = StateType = S
trigger1 = Ctrl ;= 1



;=====================================================================
; Dir + Button
;=====================================================================

;---------------------------------------------------------------------
; フォーリングアーク（→＋中Ｋ）
[State -1]
type = ChangeState
value = 600
triggerall = Command = "fwd_c"
triggerall = Command != "holddown"
trigger1 = Ctrl = 1
trigger1 = StateType = S

;=====================================================================
; Taunts
;=====================================================================

;---------------------------------------------------------------------
; 挑発
[State -1]
type = ChangeState
value = 195
triggerall = Command = "s"
trigger1 = StateType = S
trigger1 = Ctrl = 1

;=====================================================================
; Basic Arts
;=====================================================================

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


;---------------------------------------------------------------------
; 中パンチ
[State -1]
type = ChangeState
value = 21012
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl 

; 強パンチ
[State -1]
type = ChangeState
value = 22022
triggerall = command = "holdfwd" && command = "z"
triggerall = command != "holddown"
;trigger1 = p2bodydist X < 20 && ctrl = 1
trigger1 = statetype = S
trigger1 = ctrl 

; 強パンチ
[State -1]
type = ChangeState
value = 205
triggerall = command = "holdback" && command = "z"
triggerall = command != "holddown"
;trigger1 = p2bodydist X < 20 && ctrl = 1
trigger1 = statetype = S
trigger1 = ctrl 

;---------------------------------------------------------------------
; 強パンチ
[State -1]
type = ChangeState
value = 21011
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = p2bodydist X < 20 && ctrl = 1
trigger1 = statetype = S

;---------------------------------------------------------------------
; 強パンチ
[State -1]
type = ChangeState
value = 210
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl 

;---------------------------------------------------------------------
; 弱キック
[State -1]
type = ChangeState
value = 215
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = ctrl
trigger1 = statetype = S


;---------------------------------------------------------------------
; 中キック
[State -1]
type = ChangeState
value = 220
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = ctrl 
trigger1 = statetype = S

;---------------------------------------------------------------------
; 強キック
[State -1]
type = ChangeState
value = 22511
triggerall = command = "holdback" && command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------
; 強パンチ
[State -1]
type = ChangeState
value = 22522
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = p2bodydist X < 20 && ctrl = 1
trigger1 = statetype = S

;---------------------------------------------------------------------
; 強キック
[State -1]
type = ChangeState
value = 225
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl 



;---------------------------------------------------------------------
; しゃがみ弱パンチ
[State -1]
type = ChangeState
value = 300
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl ;= 1


;---------------------------------------------------------------------
; しゃがみ中パンチ
[State -1]
type = ChangeState
value = 310
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl ; = 1

;---------------------------------------------------------------------
; しゃがみ強パンチ
[State -1]
type = ChangeState
value = 320
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl ;= 1

;---------------------------------------------------------------------
; しゃがみ弱キック
[State -1]
type = ChangeState
value = 350
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl ;= 1


;---------------------------------------------------------------------
; しゃがみ中キック
[State -1]
type = ChangeState
value = 360
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl ;= 1

;---------------------------------------------------------------------
; しゃがみ強キック
[State -1]
type = ChangeState
value = 370
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl ;= 1

;---------------------------------------------------------------------
; ジャンプ弱パンチ
[State -1]
type = ChangeState
value = 500
triggerall = command = "x"
triggerall = statetype = A
triggerall = ctrl ;= 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ中パンチ
[State -1]
type = ChangeState
value = 510
triggerall = command = "y"
triggerall = statetype = A
triggerall = ctrl ;= 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ強パンチ
[State -1]
type = ChangeState
value = 520
triggerall = Vel X != 0
triggerall = command = "z"
triggerall = statetype = A
triggerall = ctrl ;= 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ強キック
[State -1]
type = ChangeState
value = 520123
triggerall = Vel X = 0
triggerall = command = "z"
triggerall = statetype = A
triggerall = ctrl ;= 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ弱キック
[State -1]
type = ChangeState
value = 530
triggerall = command = "a"
triggerall = statetype = A
triggerall = ctrl ;= 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ中キック
[State -1]
type = ChangeState
value = 540
triggerall = command = "b"
triggerall = statetype = A
triggerall = ctrl ;= 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ強キック
[State -1]
type = ChangeState
value = 550
triggerall = Vel X != 0
triggerall = command = "c"
triggerall = statetype = A
triggerall = ctrl ;= 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ強キック
[State -1]
type = ChangeState
value = 551
triggerall = Vel X = 0
triggerall = command = "c"
triggerall = statetype = A
triggerall = ctrl ;= 1
trigger1 = StateNo != 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 > 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







