;==============================================================================
; Win版専用パート
;==============================================================================
;=======================================<COMMAND FILE>=========================================
;==============================================================================================

;====================<BUTTON REMAPPING>====================

[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s


;====================<DEFAULT VALUES>====================

[Defaults]
command.time = 15
command.buffer.time = 1

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


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

;------------------------------------------------------------------------------
;-| 必殺技 |-------------------------------------------------------------------

[Command]
name = "FF_ab"
command = F, F, a+b

[Command]
name = "FF_a"
command = F, F, a

[Command]
name = "FF_b"
command = F, x

[Command]
name = "d_f_c"
command = D, F, c

[Command]
name = "d_b_z"
command = D, B, z

[Command]
name = "d_b_y"
command = D,B, x
[Command]
name = "d_f_y"
command = D, F, x

[Command]
name = "d_f_z"
command = D, F, z

[Command]
name = "sweep"
command = F, c


[Command]
name = "FF_z"
command = F, F, z

[Command]
name = "FF_y"
command = F, F, y
[Command]
name = "FF_x"
command = F, F, x

[Command]
name = "dfb"
command = DF, b


[Command]
name = "Fc"
command =  F, c

[Command]
name = "Fb"
command =  F, b

;------------------------------------------------------------------------------
;-| キー２回連続入力 |---------------------------------------------------------

[Command]
name = "FF"       ;必須コマンド名
command = F, F
time = 10

[Command]
name = "BB"       ;必須コマンド名
command = B, B
time = 10

;------------------------------------------------------------------------------
;-| 同時押し |-----------------------------------------------------------------

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

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

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

[Command]
name = "recovery" ;必須コマンド名
command = a
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 = "palm"
command = ~$D, $F, b

[command]
name = "d_b_c"
command = D, B, c

[command]
name = "tk"
command = B, F, x



[command]
name = "DK"
command = F, D, c


[Command]
name = "flipkick"
command = B, ~c
time = 1
;------------------------------------------------------------------------------
;-| ボタン単発 |---------------------------------------------------------------

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

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

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

[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 = "holdfwd"   ;必須コマンド名
command = /$F
time = 1

[Command]
name = "holdback"  ;必須コマンド名
command = /$B
time = 1

[Command]
name = "holdup"    ;必須コマンド名
command = /$U
time = 1

[Command]
name = "holddown"  ;必須コマンド名
command = /$D
time = 1

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

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

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

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

[Command]
name = "holdfwd-"
command = ~F
time = 1


[Command]
name = "flip"
command = F, z
time = 1

[Command]
name = "s"
command = B, DB, B,D,DF, F, y
time = 1

;============================================================================== 第４部
; ステートエントリーパート
;==============================================================================

[Statedef -1] 

;==============================================================================
; 固有技
;==============================================================================

[State -1, ]
type = ChangeState
value = 700
triggerall = command = "c"
triggerall = command = "holddf"
triggerall = p2statetype = L
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 10

[State -1, ]
type = ChangeState
value = 710
triggerall = command = "b"
triggerall = command = "holdup"
triggerall = p2statetype = L
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 40
trigger3 = stateno = 11
trigger4 = stateno = 12

[State -1, ]
type = ChangeState
value = 301
triggerall = command = "c"
triggerall = command = "holddf"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 10

[State -1, ]
type = ChangeState
value = 309
triggerall = command = "ac"
triggerall = command = "holddb"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 10


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


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



[State -1, ]
type = ChangeState
value = 850
triggerAll = command = "d_b_z"
triggerAll = RoundState = 2 && StateType != A
trigger1 = ctrl
trigger2 = var(20) && var(4)



[State -1,]
type = ChangeState
value = 850
trigger1 = command = "d_b_c"
trigger1 = statetype != A
trigger1 = ctrl



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

[State -1,]
type = ChangeState
value = 213
triggerall = stateno = 202
trigger1 = command = "c"
trigger1 = statetype = S
trigger1 = ctrl

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

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



[State -1, サマーソルトキック]
type = ChangeState
value = 307
triggerall = command = "c"
triggerall = command = "holdub"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 40
trigger3 = stateno = 11
trigger4 = stateno = 12

[State -1, レッグスライサー]
type = ChangeState
value = 501
triggerall = command = "ac"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 10

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




;------------------------------------------------------------------------------
;起き上がり
[State -1, 後転起き上がり]
type = ChangeState
value = 750
triggerall = stateno = 5120
triggerall = var(10) = 1
trigger1 = Time = 1

[State -1, 前転起き上がり]
type = ChangeState
value = 755
triggerall = stateno = 5120
triggerall = var(13) = 1
trigger1 = Time = 1

[State -1, ライジングバックキック]
type = ChangeState
value = 760
triggerall = stateno = 5120
triggerall = var(10) = 0
triggerall = var(11) = 1
trigger1 = Time = 1

[State -1, ローバックスピンキック]
type = ChangeState
value = 770
triggerall = stateno = 5120
triggerall = var(10) = 0
triggerall = var(12) = 1
trigger1 = Time = 1

[State -1, 前後転ライジングバックキック]
type = ChangeState
value = 765
triggerall = var(11) = 1
trigger1 = stateno = 750
trigger1 = AnimElemTime(6) = 3
trigger2 = stateno = 755
trigger2 = AnimElemTime(7) = 2

[State -1, 前後転ローバックスピンキック]
type = ChangeState
value = 775
triggerall = var(12) = 1
trigger1 = stateno = 750
trigger1 = AnimElemTime(6) = 3
trigger2 = stateno = 755
trigger2 = AnimElemTime(7) = 2

;==============================================================================
; 移動関連
;==============================================================================
;------------------------------------------------------------------------------

[State -1, 走る]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, バックステップ]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

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


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



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



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





[State -1,800]
type = ChangeState
value = 800
triggerall = statetype = S
triggerall = ctrl
triggerall = var(21) = 0
trigger1 = p2bodydist X < 24
trigger1 = p2statetype = S
triggerall = command = "ab"

[State -1, ネックブリーカー]
type = ChangeState
value = 1000
triggerall = statetype = S
triggerall = ctrl
triggerall = var(21) = 0
trigger1 = p2bodydist X < 24
trigger1 = p2statetype = S
triggerall = command = "x"

[State -1, ネックブリーカー]
type = ChangeState
value = 1100
triggerall = statetype = S
triggerall = ctrl
triggerall = var(21) = 0
trigger1 = p2bodydist X < 24
trigger1 = p2statetype = S
triggerall = command = "y"
;==============================================================================
; 通常攻撃技
;==============================================================================

[State -1, 200]
type = ChangeState
value = 200
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, 201]
type = ChangeState
value = 201
triggerall = stateno = 200
triggerall = var(10) = 1
trigger1 = AnimElemTime(4) = 2
[State -1, ジャブ、ストレートディレイ]
type = ChangeState
value = 201
triggerall = stateno = 200
triggerall = command = "b"
trigger1 = AnimElemTime(4) > 2


[State -1, 202]
type = ChangeState
value = 202
triggerall = stateno = 201
triggerall = var(13) = 1
trigger1 = AnimElemTime(3) = 1
[State -1, フラッシュピストンパンチディレイ]
type = ChangeState
value = 202
triggerall = stateno = 201
triggerall = command = "b"
trigger1 = AnimElemTime(3) > 1


[State -1, 214]
type = ChangeState
value = 214
triggerall = stateno = 201
triggerall = var(15) = 1
trigger1 = AnimElemTime(2) = 1
[State -1, フラッシュピストンパンチディレイ]
type = ChangeState
value = 214
triggerall = stateno = 201
triggerall = command = "c"
trigger1 = AnimElemTime(2) > 1


[State -1, 204]
type = ChangeState
value = 204
triggerall = stateno = 200
triggerall = var(11) = 1
trigger1 = AnimElemTime(4) = 2
[State -1, パンチハイキックディレイ]
type = ChangeState
value = 204
triggerall = stateno = 200
triggerall = command = "c"
trigger1 = AnimElemTime(4) > 2

[State -1, コンボサマーソルト先行入力]
type = ChangeState
value = 209
triggerall = stateno = 202
triggerall = var(16) = 1
trigger1 = AnimElemTime(4) = 2
[State -1, コンボサマーソルトディレイ]
type = ChangeState
value = 209
triggerall = stateno = 202
triggerall = command = "c"
trigger1 = command = "holdub"
trigger1 = command != "holdup"
trigger1 = AnimElemTime(4) > 2

[State -1, 306]
type = ChangeState
value = 306
triggerall = stateno = 202
triggerall = var(15) = 1
trigger1 = AnimElemTime(4) = 2
[State -1, パンチハイキックディレイ]
type = ChangeState
value = 306
triggerall = stateno = 202
trigger1 = command = "c"
trigger1 = AnimElemTime(4) > 2






[State -1, 304]
type = ChangeState
value = 304
triggerall = stateno = 202
triggerall = var(14) = 1
trigger1 = AnimElemTime(3) = 1
[State -1, パンチハイキックディレイ]
type = ChangeState
value = 304
triggerall = stateno = 202
triggerall = command = "y"
trigger1 = AnimElemTime(3) > 1
;------------------------------------------------------------------------------






[State -1, FF_b]
type = ChangeState
value = 205
triggerall = command = "dfb"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 10

[State -1, FF_B]
type = ChangeState
value = 208
triggerall = command = "d_f_y"
trigger1 = statetype = s
trigger1 = ctrl

;-----------------------------------------------------------------------
[State -1, ヴァーティカル・フック・キック]
type = ChangeState
value = 340
triggerall = command = "sweep"
trigger1 = statetype = S
trigger1 = ctrl


;-----------------------------------------------------------------------
[State -1, ヴァーティカル・フック・キック]
type = ChangeState
value = 350
triggerall = command = "tk"
trigger1 = statetype = S
trigger1 = ctrl
;--------------------------------------------------------------------
[State -1, ヴァーティカル・フック・キック]
type = ChangeState
value = 360
triggerall = command = "DK"
trigger1 = statetype = C
trigger1 = ctrl
;-----------------------------------------------------------------------

[State -1, 375]
type = ChangeState
value = 375
triggerall = stateno = 200
triggerall = var(15) = 1
trigger1 = AnimElemTime(3) = 1
[State -1, ジャブ、ストレートディレイ]
type = ChangeState
value = 375
triggerall = stateno = 200
triggerall = command = "ac"
triggerall = command = "holddown"
trigger1 = AnimElemTime(3) > 1

;--------------------------------------------------------------------
[State -1, ヴァーティカル・フック・キック]
type = ChangeState
value = 390
triggerall = command = "ac"
trigger1 = statetype = S
trigger1 = ctrl
;-----------------------------------------------------------------------
[State -1, 430]
type = ChangeState
value = 430
triggerall = stateno = 200
triggerall = var(15) = 1
trigger1 = AnimElemTime(3) = 1
[State -1, ジャブ、ストレートディレイ]
type = ChangeState
value = 430
triggerall = stateno = 200
triggerall = command = "ac"
trigger1 = AnimElemTime(3) > 1


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

[State -1, ヴァーティカル・フック・キック]
type = ChangeState
value = 300
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
[State -1, キャンセル]
type = ChangeState
value = 196
triggerall = command = "a"
trigger1 = stateno = 300
trigger1 = time < 10





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

[State -1, スクァト・ストレート]
type = ChangeState
value = 400
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

[State -1, ローキック]
type = ChangeState
value = 500
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
[State -1, キャンセル]
type = ChangeState
value = 197
triggerall = command = "a"
trigger1 = stateno = 500
trigger1 = time < 14

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

[State -1, ジャンプキック]
type = ChangeState
value = 600
triggerall = command = "c"
triggerall = command = "holdup" || command = "holduf"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 40
trigger3 = stateno = 11
trigger4 = stateno = 12
;ジャンプキック/小ステップ方向変化
[State 200, 垂直]
type = varset
triggerall = Time = 1
triggerall = Command = "holdup"
triggerall = Command != "holduf"
triggerall = Command != "holdub" 
trigger1 = stateno = 600
v = 23
value = 0
[State 200, 前方]
type = varset
triggerall = Time = 1
triggerall = Command = "holduf" 
trigger1 = stateno = 600
v = 23
value = 1
[State 200, 後方（小ステップのみ）]
type = varset
triggerall = Time = 1
triggerall = Command = "holdub" 
trigger1 = stateno = 600
v = 23
value = 2

[State -1, ヒールキック]
type = ChangeState
value = 650
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl

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

[State -1, ガード]
type = ChangeState
value = 120
trigger1 = ctrl
trigger1 = command = "a"
trigger2 = command = "holda"
trigger2 = stateno = 52
trigger2 = Time = 1
trigger3 = ctrl
trigger3 = command = "holda"
trigger3 = command != "holdb"
trigger3 = command != "holdc"

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

[State -1, しゃがみ歩き]
type = ChangeState
value = 22
triggerall = statetype = C
triggerall = ctrl
trigger1 = command = "holddf"
trigger2 = command = "holddb"

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