;-| Button Remapping |-----------------------------------------------------
;操作（デフォルト）
;xバスター
;yリフレクト
;z特殊武器チェンジ右
;aジャンプ
;bダッシュ
;cギガアタック
;s特殊武器チェンジ左
;デフォルト（PS）
;x□
;y△
;zR1
;a?
;b◯
;cR2
;sL1
;[Remap]
;x = x
;y = y
;z = z
;a = a
;b = b
;c = c
;s = s
;ロクゼロ風
;x□
;yR1
;z△
;a?
;bL1
;cR2
;s◯
[Remap]
x = x
y = z
z = b
a = a
b = s
c = c
s = y

;-| Default Values |-------------------------------------------------------
[Defaults]
command.time = 15
command.buffer.time = 1


;-| Super Motions |--------------------------------------------------------
;


[Command]
name = "SECRET2"
command = ~F,B,D,U,F,D,B,U
time = 50

[Command]
name = "SECRET2"
command = ~U,U,D,D,B,F,B,F
time = 60

[Command]
name = "SECRET"
command = ~U,U,D,D,D,D
time = 52

[Command]
name = "SECRET"
command = ~B,B,B,F
time = 35

[Command]
name = "DenjinHadouken"   ;Same name as above
command = ~D, DF, F, D, DF, F, x+y
time = 32

[Command]
name = "ShinkuuHadouken1"
command = ~D, DF, F, D, DF, F, x
time = 32

[Command]
name = "ShinkuuHadouken2"   ;Same name as above
command = ~D, DF, F, D, DF, F, y
time = 32

[Command]
name = "MvCShinkuuHadouken"   ;Same name as above
command = ~D, DF, F, D, DF, F, c
time = 32

[Command]
name = "SmashKFUpper"   ;Same name as above
command = ~D, DB, B, D, DB, B, y;~F, D, DF, F, D, DF, y
time = 32

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

[Command]
name = "Hadouken2"
command = ~D, DF, F, y
time = 16

[Command]
name = "HadoukenEX"
command = ~D, DF, F, c
time = 16

[Command]
name = "HadoukenSP"
command = ~D, DF, F, x+y
time = 16


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

[Command]
name = "UU"     ;Required (do not remove)
command = U, U
time = 20

[Command]
name = "DD"     ;Required (do not remove)
command = D, D
time = 10
;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery";Required (do not remove)
command = x+y
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,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

[Command]
name = "fwd"
command = F
time = 1

[Command]
name = "back"
command = B
time = 1

[Command]
name = "down"
command = D
time = 1

[Command]
name = "up"
command = U
time = 1

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

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

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

[Command]
name = "UB"
command = UB
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_a"
command = /$a
time = 1

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

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

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

[Statedef -1]


;---------------------------------------------------------------------------
[State -1, ];壁蹴り
type = ChangeState
value = 300
triggerall = frontedgedist <= 1
triggerall = command = "holdfwd"
triggerall = p2name != "iX"
triggerall = p4name != "iX"
triggerall = p2name != "Omega Zero"
triggerall = p4name != "Omega Zero"
triggerall = p2name != "Vile MMHX"
triggerall = p4name != "Vile MMHX"
triggerall = p2name != "skiver"
triggerall = p4name != "skiver"
triggerall = statetype = A
triggerall = pos y <= -20
;triggerall = pos y >= -180
triggerall = anim != 310
trigger1 = ctrl
;---------------------------------------------------------------------------
[State -1, ];壁蹴り
type = ChangeState
value = 320
triggerall = command = "holdfwd"
triggerall = statetype = A
triggerall = anim != 310
trigger1 = ctrl
triggerall = var(27) = 1

;---------------------------------------------------------------------------
;ノヴァストライク
[State -1, ]
type = ChangeState
value = 2000
triggerall = fvar(38) >= 1
triggerall = var(59) = 0
triggerall = (var(20) = 0 && var(30) <  3) || (var(20) < 2 && var(30) = 3)
triggerall = command = "c"
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = stateno = 20

;---------------------------------------------------------------------------
[State -1, ];ジャンプ
type = ChangeState
value = 50
triggerall = command = "a"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = stateno = 20
;---------------------------------------------------------------------------
[State -1, ];エアダッシュ
type = ChangeState
value = 110
trigger1 = command = "FF"
trigger2 = command = "b"
triggerall = statetype = A
triggerall = ctrl
triggerall = (var(20) = 0 && var(30) <  3) || (var(20) < 2 && var(30) = 3)
triggerall = stateno != 300
triggerall = stateno != 420
triggerall = stateno != 450
triggerall = stateno != 320
;---------------------------------------------------------------------------
[State -1, ];エアダッシュ
type = ChangeState
value = 60
trigger1 = command = "a"
triggerall = statetype = A
triggerall = ctrl
triggerall = (var(20) = 0 && var(30) <  3) || (var(20) < 2 && var(30) = 3)
triggerall = stateno != 300
triggerall = stateno != 420
triggerall = stateno != 450
triggerall = stateno != 60
triggerall = stateno != 320
;---------------------------------------------------------------------------
[State -1,];ダッシュ
type = ChangeState
value = 100
triggerall = command = "FF" || command = "b" 
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 20

;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[State -1, ];バスター
type = ChangeState
value = 200
triggerall = var(57) = 0 && var(58) = 0
triggerall = var(56) = 0
triggerall = command = "x"
triggerall = ctrl
trigger1 = stateno = 0
trigger2 = stateno = 200
trigger3 = stateno = 201
trigger4 = stateno = 202
trigger5 = stateno = 203
trigger6 = stateno = 204
;---------------------------------------------------------------------------
[State -1, ];バスター
type = ChangeState
value = 204
triggerall = var(57) = 0
triggerall = var(56) = 0
triggerall = command = "y"
triggerall = ctrl
trigger1 = stateno = 0
trigger2 = stateno = 200
trigger3 = stateno = 201
trigger4 = stateno = 202
trigger5 = stateno = 203
trigger6 = stateno = 204