;------------------------------------------------------------------------------
;-| ボタンリマップ（ボタンコンフィグ）|----------------------------------------

[Remap]
x = x      ;Ｘボタンの入力判定を実際に押すボタンに割り当てる。
y = y      ;Ｙボタン　　　　　　　　　〃
z = z      ;Ｚボタン　　　　　　　　　〃
a = a      ;Ａボタン　　　　　　　　　〃
b = b      ;Ｂボタン　　　　　　　　　〃
c = c      ;Ｃボタン　　　　　　　　　〃
s = s      ;スタートボタン　　　　　　〃

;------------------------------------------------------------------------------
;-| デフォルト設定 |-----------------------------------------------------------

[Defaults]
command.time = 15  ;標準のコマンド入力受付時間。
                   ;各コマンドで省略している場合に有効。
                   ;このパラメータを消した場合、デフォルトは１フレームになる。
                   ;（　M.U.G.E.Nでの１フレーム　＝　１／６０秒　）

command.buffer.time = 1  ;標準のコマンド入力記憶時間。
                         ;入力した直後にコマンドを記憶し、
                         ;指を離してもコマンドが成功している状態を
                         ;ここで設定した時間の分維持する。
                         ;１〜３０フレームまでの間で設定可能。
                         ;デフォルトは１フレーム。
;------------------------------------------------------------------------------
;-| AIテスト用 |---------------------------------------------------------------
;z ボタン押しっぱなしでAI起動

[Command]
Name = "AIholdz"
Command = /z
time = 1

[Command]
Name = "AIholdy"
Command = /y
time = 1

;------------------------------------------------------------------------------
;-| AI起動用 |-----------------------------------------------------------------

[Command]
Name = "AI01"
Command = a, b, c
Time = 0
[Command]
Name = "AI02"
Command = a, c, b
Time = 0
[Command]
Name = "AI03"
Command = b, a, c
Time = 0
[Command]
Name = "AI04"
Command = b, c, a
Time = 0
[Command]
Name = "AI05"
Command = c, a, b
Time = 0
[Command]
Name = "AI06"
Command = c, b, a
Time = 0
[Command]
Name = "AI07"
Command = a, b, c, s
Time = 0
[Command]
Name = "AI08"
Command = a, c, b, s
Time = 0
[Command]
Name = "AI09"
Command = b, a, c, s
Time = 0
[Command]
Name = "AI10"
Command = b, c, a, s
Time = 0
[Command]
Name = "AI11"
Command = c, a, b, s
Time = 0
[Command]
Name = "AI12"
Command = c, b, a, s
Time = 0
[Command]
Name = "AI13"
Command = x, y, z
Time = 0
[Command]
Name = "AI14"
Command = x, z, y
Time = 0
[Command]
Name = "AI15"
Command = y, x, z
Time = 0
[Command]
Name = "AI16"
Command = y, z, x
Time = 0
[Command]
Name = "AI17"
Command = z, x, y
Time = 0
[Command]
Name = "AI18"
Command = z, y, x
Time = 0
[Command]
Name = "AI19"
Command = x, y, z, s
Time = 0
[Command]
Name = "AI20"
Command = x, z, y, s
Time = 0
[Command]
Name = "AI21"
Command = y, x, z, s
Time = 0
[Command]
Name = "AI22"
Command = y, z, x, s
Time = 0
[Command]
Name = "AI23"
Command = z, x, y, s
Time = 0
[Command]
Name = "AI24"
Command = z, y, x, s
Time = 0
[Command]
Name = "AI25"
Command = a, b, c, x
Time = 0
[Command]
Name = "AI26"
Command = a, c, b, x
Time = 0
[Command]
Name = "AI27"
Command = b, a, c, x
Time = 0
[Command]
Name = "AI28"
Command = b, c, a, x
Time = 0
[Command]
Name = "AI29"
Command = c, a, b, x
Time = 0
[Command]
Name = "AI30"
Command = c, b, a, x
Time = 0
[Command]
Name = "AI31"
Command = a, b, c, s, x
Time = 0
[Command]
Name = "AI32"
Command = a, c, b, s, x
Time = 0
[Command]
Name = "AI33"
Command = b, a, c, s, x
Time = 0
[Command]
Name = "AI34"
Command = b, c, a, s, x
Time = 0
[Command]
Name = "AI35"
Command = c, a, b, s, x
Time = 0
[Command]
Name = "AI36"
Command = c, b, a, s, x
Time = 0
[Command]
Name = "AI37"
Command = x, y, z, x
Time = 0
[Command]
Name = "AI38"
Command = x, z, y, x
Time = 0
[Command]
Name = "AI39"
Command = y, x, z, x
Time = 0
[Command]
Name = "AI40"
Command = y, z, x, x
Time = 0
[Command]
Name = "AI41"
Command = z, x, y, x
Time = 0
[Command]
Name = "AI42"
Command = z, y, x, x
Time = 0
[Command]
Name = "AI43"
Command = x, y, z, s, x
Time = 0
[Command]
Name = "AI44"
Command = x, z, y, s, x
Time = 0
[Command]
Name = "AI45"
Command = y, x, z, s, x
Time = 0
[Command]
Name = "AI46"
Command = y, z, x, s, x
Time = 0
[Command]
Name = "AI47"
Command = z, x, y, s, x
Time = 0
[Command]
Name = "AI48"
Command = z, y, x, s, x
Time = 0
[Command]
Name = "AI49"
Command = z, y, x, s, y
Time = 0
[Command]
Name = "AI50"
Command = z, y, x, s, z
Time = 0

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

[Command]
name = "shinkuu-hadou1"
command = ~D, DF, F, D, DF, F, a
time = 40

[Command]
name = "shinkuu-hadou2"
command = ~D, DF, F, D, DF, F, b
time = 40

[Command]
name = "shinkuu-hadou3"
command = ~D, DF, F, D, DF, F, c
time = 40

;------------------------------
[Command]
name = "shinkuu-tatumaki1"
command = ~D, DB, B, D, DB, B, a
time = 40

[Command]
name = "shinkuu-tatumaki2"
command = ~D, DB, B, D, DB, B, b
time = 40

[Command]
name = "shinkuu-tatumaki3"
command = ~D, DB, B, D, DB, B, c
time = 40

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

[Command]
name = "hadou1"
command = ~D, DF, F, a
time = 20

[Command]
name = "hadou2"
command = ~D, DF, F, b
time = 20

[Command]
name = "hadou3"
command = ~D, DF, F, c
time = 20

;------------------------------
[Command]
name = "tatumaki1"
command = ~D, DB, B, a
time = 20

[Command]
name = "tatumaki2"
command = ~D, DB, B, b
time = 20

[Command]
name = "tatumaki3"
command = ~D, DB, B, c
time = 20

;------------------------------
[Command]
name = "ue-hadou1"
command = ~U, UF, F, a
time = 20

[Command]
name = "ue-hadou2"
command = ~U, UF, F, b
time = 20

[Command]
name = "ue-hadou3"
command = ~U, UF, F, c
time = 20

;------------------------------
[Command]
name = "syoryu1"
command = ~F, D, DF, a
time = 20

[Command]
name = "syoryu2"
command = ~F, D, DF, b
time = 20

[Command]
name = "syoryu3"
command = ~F, D, DF, c
time = 20
;------------------------------------------------------------------------------
;-| キー２回連続入力 |---------------------------------------------------------

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

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

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

[Command]
name = "recovery" ;必須コマンド名
command = x+y
time = 1

[Command]
name = "recovery" ;必須コマンド名
command = a
time = 1

[Command]
name = "recovery" ;必須コマンド名
command = b
time = 1

[Command]
name = "recovery" ;必須コマンド名
command = c
time = 1

[Command]
name = "recovery" ;必須コマンド名
command = x
time = 1

[Command]
name = "recovery" ;必須コマンド名
command = y
time = 1

[Command]
name = "recovery" ;必須コマンド名
command = z
time = 1

;------------------------------------------------------------------------------
;-| 方向キー＋ボタン |---------------------------------------------------------

[Command]
name = "down_a"
command = /$D,a
time = 1

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

;------------------------------------------------------------------------------
;-| 方向キー |-----------------------------------------------------------------

[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 = "fwd"
command = F
time = 1

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

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

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

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

[Statedef -1] ;←この行は絶対に消さないでね。必須項目です。

;==============================================================================
; 超必殺技
;==============================================================================
;------------------------------------------------------------------------------
[state -1, 先行入力リセット用]
type = VarSet
triggerall = Var(59) = 0
triggerall = Var(14) = 9
trigger1 = command = "shinkuu-hadou1"
trigger2 = command = "shinkuu-hadou2"
trigger3 = command = "shinkuu-hadou3"
v = 4
value = 10

[state -1, 絵異手流波動拳（先行入力）]
type = VarSet
triggerall = Var(59) = 0
triggerall = Var(14) = 9
trigger1 = command = "shinkuu-hadou1"
trigger2 = command = "shinkuu-hadou2"
trigger3 = command = "shinkuu-hadou3"
v = 3
value = 6000

[State -1, 絵異手流波動拳]
type = ChangeState
value = 6000
triggerall = Var(59) = 0
triggerall = Var(14) = 9
triggerall = statetype != A
triggerall = Power >= 3000
trigger1 = command = "shinkuu-hadou1" || command = "shinkuu-hadou2" || command = "shinkuu-hadou3"
trigger1 = ctrl
trigger2 = command = "shinkuu-hadou1" || command = "shinkuu-hadou2" || command = "shinkuu-hadou3"
trigger2 = (StateNo = 200) || (stateno = 230) || (stateno = 240) || (stateno = 400) || (stateno = 410) || (stateno = 420)
trigger2 = movecontact
trigger3 = Var(3) = 6000
trigger3 = StateNo = [5120,5121] ;起き上がりリバーサル
trigger3 = animtime = 0
trigger4 = Var(3) = 6000
trigger4 = stateno = 5001    ;喰らい回復
trigger4 = HitOver = 1
trigger5 = Var(3) = 6000
trigger5 = stateno = 5011    ;屈喰らい回復
trigger5 = HitOver = 1

;==============================================================================
; 必殺技
;==============================================================================
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
[State -1, 飛び道具・弱]
type = ChangeState
value = 1100
triggerall = Var(59) = 0
triggerall = command = "hadou1"
triggerall = numhelper(1110) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (StateNo = 200) || (stateno = 230) || (stateno = 240) || (stateno = 400) || (stateno = 410) || (stateno = 420)
trigger2 = movecontact

[State -1, 飛び道具・中]
type = ChangeState
value = 1130
triggerall = Var(59) = 0
triggerall = command = "hadou2"
triggerall = numhelper(1110) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (StateNo = 200) || (stateno = 230) || (stateno = 240) || (stateno = 400) || (stateno = 410) || (stateno = 420)
trigger2 = movecontact

[State -1, 飛び道具・強]
type = ChangeState
value = 1160
triggerall = Var(59) = 0
triggerall = command = "hadou3"
triggerall = numhelper(1110) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (StateNo = 200) || (stateno = 230) || (stateno = 240) || (stateno = 400) || (stateno = 410) || (stateno = 420)
trigger2 = movecontact

;------------------------------------------------------------------------------
[state -1, 先行入力リセット用]
type = VarSet
triggerall = Var(59) = 0
trigger1 = command = "syoryu1"
trigger2 = command = "syoryu2"
trigger3 = command = "syoryu3"
v = 4
value = 10

[state -1, レンでサイキョーのアッパーカット・弱（先行入力）]
type = VarSet
triggerall = Var(59) = 0
trigger1 = command = "syoryu1"
v = 3
value = 1000

[State -1, レンでサイキョーのアッパーカット・弱]
type = ChangeState
value = 1000
triggerall = Var(59) = 0
triggerall = Statetype != A
trigger1 = command = "syoryu1"
trigger1 = ctrl
trigger2 = command = "syoryu1"
trigger2 = (StateNo = 200) || (stateno = 230) || (stateno = 240) || (stateno = 400) || (stateno = 410) || (stateno = 420)
trigger2 = movecontact
trigger3 = Var(3) = 1000
trigger3 = StateNo = [5120,5121] ;起き上がりリバーサル
trigger3 = animtime = 0
trigger4 = Var(3) = 1000
trigger4 = stateno = 5001    ;喰らい回復
trigger4 = HitOver = 1
trigger5 = Var(3) = 1000
trigger5 = stateno = 5011    ;屈喰らい回復
trigger5 = HitOver = 1
trigger6 = Var(3) = 1000
trigger6 = (StateNo = 1010) && time >= 1

[state -1, レンでサイキョーのアッパーカット・中（先行入力）]
type = VarSet
triggerall = Var(59) = 0
trigger1 = command = "syoryu2"
v = 3
value = 1030

[State -1, レンでサイキョーのアッパーカット・中]
type = ChangeState
value = 1030
triggerall = Var(59) = 0
triggerall = Statetype != A
trigger1 = command = "syoryu2"
trigger1 = ctrl
trigger2 = command = "syoryu2"
trigger2 = (StateNo = 200) || (stateno = 230) || (stateno = 240) || (stateno = 400) || (stateno = 410) || (stateno = 420)
trigger2 = movecontact
trigger3 = Var(3) = 1030
trigger3 = StateNo = [5120,5121] ;起き上がりリバーサル
trigger3 = animtime = 0
trigger4 = Var(3) = 1030
trigger4 = stateno = 5001    ;喰らい回復
trigger4 = HitOver = 1
trigger5 = Var(3) = 1030
trigger5 = stateno = 5011    ;屈喰らい回復
trigger5 = HitOver = 1
trigger6 = Var(3) = 1030
trigger6 = (StateNo = 1010) && time >= 1

[state -1, レンでサイキョーのアッパーカット・強（先行入力）]
type = VarSet
triggerall = Var(59) = 0
trigger1 = command = "syoryu3"
v = 3
value = 1060

[State -1, レンでサイキョーのアッパーカット・強]
type = ChangeState
value = 1060
triggerall = Var(59) = 0
triggerall = Statetype != A
trigger1 = command = "syoryu3"
trigger1 = ctrl
trigger2 = command = "syoryu3"
trigger2 = (StateNo = 200) || (stateno = 230) || (stateno = 240) || (stateno = 400) || (stateno = 410) || (stateno = 420)
trigger2 = movecontact
trigger3 = Var(3) = 1060
trigger3 = StateNo = [5120,5121] ;起き上がりリバーサル
trigger3 = animtime = 0
trigger4 = Var(3) = 1060
trigger4 = stateno = 5001    ;喰らい回復
trigger4 = HitOver = 1
trigger5 = Var(3) = 1060
trigger5 = stateno = 5011    ;屈喰らい回復
trigger5 = HitOver = 1
trigger6 = Var(3) = 1060
trigger6 = (StateNo = 1010) && time >= 1

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

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

;[State -1, 走る]
;type = ChangeState
;value = 100
;triggerall = Var(59) = 0
;trigger1 = command = "FF"
;trigger1 = statetype = S
;trigger1 = ctrl

;[State -1, バックステップ]
;type = ChangeState
;value = 105
;triggerall = Var(59) = 0
;trigger1 = command = "BB"
;trigger1 = statetype = S
;trigger1 = ctrl

;[state -1, 空中前ダッシュ]
;type = Changestate
;value = 110
;triggerall = Var(59) = 0
;triggerall = command = "FF"
;triggerall = statetype = A
;trigger1 = ctrl

;[state -1, 空中バックダッシュ]
;type = Changestate
;value = 115
;triggerall = Var(59) = 0
;triggerall = command = "BB"
;triggerall = statetype = A
;trigger1 = ctrl

;==============================================================================
; 特殊技
;==============================================================================
;------------------------------------------------------------------------------
;投げ（中ボタン投げ、後ろ投げ）
[state -1]
type = changestate
value = 800
triggerall = Var(5) <= 0
triggerall = statetype != A
trigger1 = stateno = 20 && command = "b"
trigger1 = ctrl
trigger2 = stateno = 210 && command = "b"
trigger2 = command = "holdback" || command = "holdfwd"
trigger2 = ctrl
trigger2 = time = 0
trigger3 = stateno = 240 && command = "b"
trigger3 = command = "holdback" || command = "holdfwd"
trigger3 = ctrl
trigger3 = time = 0

;投げ（強ボタン投げ、札束ビンタ）
[state -1]
type = changestate
value = 805
triggerall = Var(5) <= 0
triggerall = statetype != A
trigger1 = stateno = 20 && command = "c"
trigger1 = ctrl
trigger2 = stateno = 220 && command = "c"
trigger2 = command = "holdback" || command = "holdfwd"
trigger2 = ctrl
trigger2 = time = 0
trigger3 = stateno = 230 && command = "c"
trigger3 = command = "holdback" || command = "holdfwd"
trigger3 = ctrl
trigger3 = time = 0

;空中レバー下中攻撃
[State -1]
type = ChangeState
value = 630
triggerall = Var(59) = 0
triggerall = SysVar(1) = 1
triggerall = command = "holddown"
triggerall = command = "b"
trigger1 = Vel y > -2 
trigger1 = Vel y <= 2
trigger1 = statetype = A
trigger1 = ctrl

;==============================================================================
; 通常攻撃技
;==============================================================================
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------

[State -1, 立ち弱]
type = ChangeState
value = 200
triggerall = Var(59) = 0
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype != A
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time >= 3

[State -1, 近距離立ち中]
type = ChangeState
value = 240
triggerall = Var(59) = 0
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = p2bodydist X <= 30
triggerall = Var(0) = 0
trigger1 = statetype = S
trigger1 = ctrl

[State -1, 遠距離立ち中]
type = ChangeState
value = 210
triggerall = Var(59) = 0
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = p2bodydist X >= 31
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = Var(0) >= 1
trigger2 = P2bodydist X <= 30
trigger2 = ctrl

[State -1, 近距離立ち強]
type = ChangeState
value = 230
triggerall = Var(59) = 0
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = p2bodydist X <= 25
triggerall = Var(0) = 0
trigger1 = statetype = S
trigger1 = ctrl

[State -1, 遠距離立ち強]
type = ChangeState
value = 220
triggerall = Var(59) = 0
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = p2bodydist X >= 26
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = Var(0) >= 1
trigger2 = P2bodydist X <= 25
trigger2 = ctrl

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

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

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

[State -1, しゃがみ弱攻撃]
type = ChangeState
value = 400
triggerall = Var(59) = 0
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype != A
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) && time >= 3

[State -1, しゃがみ中]
type = ChangeState
value = 410
triggerall = Var(59) = 0
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype != A
trigger1 = statetype = C
trigger1 = ctrl

[State -1, しゃがみ中]
type = ChangeState
value = 420
triggerall = Var(59) = 0
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype != A
trigger1 = statetype = C
trigger1 = ctrl

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

[State -1, ジャンプ弱]
type = ChangeState
value = 600
triggerall = Var(59) = 0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

[State -1, ジャンプ中]
type = ChangeState
value = 610
triggerall = Var(59) = 0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl

[State -1, ジャンプ強]
type = ChangeState
value = 620
triggerall = Var(59) = 0
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl

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