;==============================================================================
;==============================================================================
;------------------------------------------------------------------------------
;-| ボタンリマップ（ボタンコンフィグ）|----------------------------------------
[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 = "AI-01"
command = a,a,a,b,b,b,c,c,c,x,x,x,y,y,y,z,z,z
time = 0

[Command]
name = "AI-02"
command = b,b,b,c,c,c,x,x,x,y,y,y,z,z,z,a,a,a
time = 0

[Command]
name = "AI-03"
command = c,c,c,x,x,x,y,y,y,z,z,z,a,a,a,b,b,b
time = 0

[Command]
name = "AI-04"
command = x,x,x,y,y,y,z,z,z,a,a,a,b,b,b,c,c,c
time = 0

[Command]
name = "AI-05"
command = y,y,y,z,z,z,a,a,a,b,b,b,c,c,c,x,x,x
time = 0

[Command]
name = "AI-06"
command = z,z,z,a,a,a,b,b,b,c,c,c,x,x,x,y,y,y
time = 0

[Command]
name = "AI-07"
command = a,a,b,b,c,c,x,x,y,y,z,z,a,b,c,x,y,z
time = 0

[Command]
name = "AI-08"
command = b,b,c,c,x,x,y,y,z,z,a,b,c,x,y,z,a,a
time = 0

[Command]
name = "AI-09"
command = c,c,x,x,y,y,z,z,a,b,c,x,y,z,a,a,b,b
time = 0

[Command]
name = "AI-10"
command = x,x,y,y,z,z,a,b,c,x,y,z,a,a,b,b,c,c
time = 0

[Command]
name = "AI-11"
command = y,y,z,z,a,b,c,x,y,z,a,a,b,b,c,c,x,x
time = 0

[Command]
name = "AI-12"
command = a,b,c,x,y,z,a,a,b,b,c,c,x,x,y,y,z,z
time = 0

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

;※名前が同じならば、違うコマンドでも同じステートの技を出す事が可能。

;真空波動拳コマンドx
[Command]
name = "shinku-hadou-x"
command = ~D, DF, F, D, DF, F, x
time = 40

;真空波動拳コマンドy
[Command]
name = "shinku-hadou-y"
command = ~D, DF, F, D, DF, F, y
time = 40

;真空波動拳コマンドz
[Command]
name = "shinku-hadou-z"
command = ~D, DF, F, D, DF, F, z
time = 40

;真空波動拳コマンドa
[Command]
name = "shinku-hadou-a"
command = ~D, DF, F, D, DF, F, a
time = 40

;真空波動拳コマンドb
[Command]
name = "shinku-hadou-b"
command = ~D, DF, F, D, DF, F, b
time = 40

;真空波動拳コマンドc
[Command]
name = "shinku-hadou-c"
command = ~D, DF, F, D, DF, F, c
time = 40

;真空竜巻コマンドx
[Command]
name = "shinku-tatumaki-x"
command = ~D, DB, B, D, DB, B, x
time = 40

;真空竜巻コマンドb
[Command]
name = "shinku-tatumaki-y"
command = ~D, DB, B, D, DB, B, y
time = 40

;真空竜巻コマンドc
[Command]
name = "shinku-tatumaki-z"
command = ~D, DB, B, D, DB, B, z
time = 40

;真空竜巻コマンドa
[Command]
name = "shinku-tatumaki-a"
command = ~D, DB, B, D, DB, B, a
time = 40

;真空竜巻コマンドb
[Command]
name = "shinku-tatumaki-b"
command = ~D, DB, B, D, DB, B, b
time = 40

;真空竜巻コマンドc
[Command]
name = "shinku-tatumaki-c"
command = ~D, DB, B, D, DB, B, c
time = 40

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

;逆ヨガコマンドa
[Command]
name = "gyaku-yoga-a"
command = ~F, DF, D, DB, B, a
time = 30

;逆ヨガコマンドb
[Command]
name = "gyaku-yoga-b"
command = ~F, DF, D, DB, B, b
time = 30

;逆ヨガコマンドc
[Command]
name = "gyaku-yoga-c"
command = ~F, DF, D, DB, B, c
time = 30

;----------

;昇竜拳コマンド
[Command]
name = "syoryu"
command = ~F, D, /DF
time = 22

;昇竜拳コマンドa
[Command]
name = "syoryu-a"
command = ~F, D, DF, a
time = 20

;昇竜拳コマンドb
[Command]
name = "syoryu-b"
command = ~F, D, DF, b
time = 20

;昇竜拳コマンドc
[Command]
name = "syoryu-c"
command = ~F, D, DF, c
time = 20

;昇竜拳コマンドx
[Command]
name = "syoryu-x"
command = ~F, D, DF, x
time = 20

;昇竜拳コマンドy
[Command]
name = "syoryu-y"
command = ~F, D, DF, y
time = 20

;昇竜拳コマンドz
[Command]
name = "syoryu-z"
command = ~F, D, DF, z
time = 20

;----------

;波動拳コマンドa
[command]
name = "hadou-a"
command = ~D, DF, F, a
time = 20

;波動拳コマンドb
[command]
name = "hadou-b"
command = ~D, DF, F, b
time = 20

;波動拳コマンドc
[command]
name = "hadou-c"
command = ~D, DF, F, c
time = 20

;波動拳コマンドx
[command]
name = "hadou-x"
command = ~D, DF, F, x
time = 20

;波動拳コマンドy
[command]
name = "hadou-y"
command = ~D, DF, F, y
time = 20

;波動拳コマンドz
[Command]
name = "hadou-z"
command = ~D, DF, F, z
time = 20

;波動拳コマンドs
[Command]
name = "hadou-s"
command = ~D, DF, F, s
time = 20

;波動拳コマンドa+b
[Command]
name = "hadou-a+b"
command = ~D, DF, F, a+b
time = 20

;波動拳コマンドb+c
[Command]
name = "hadou-b+c"
command = ~D, DF, F, b+c
time = 20

;----------

;竜巻コマンドa
[command]
name = "tatumaki-a"
command = ~D, DB, B, a
time = 20

;竜巻コマンドb
[command]
name = "tatumaki-b"
command = ~D, DB, B, b
time = 20

;竜巻コマンドc
[command]
name = "tatumaki-c"
command = ~D, DB, B, c
time = 20

;竜巻コマンドx
[command]
name = "tatumaki-x"
command = ~D, DB, B, x
time = 20

;竜巻コマンドy
[command]
name = "tatumaki-y"
command = ~D, DB, B, y
time = 20

;竜巻コマンドz
[command]
name = "tatumaki-z"
command = ~D, DB, B, z
time = 20

;----------
;22コマンドa
[command]
name = "22a"
command = D, D, a
time = 15

;22コマンドb
[command]
name = "22b"
command = D, D, b
time = 15

;22コマンドc
[command]
name = "22c"
command = D, D, c
time = 15

;22コマンドx
[command]
name = "22x"
command = D, D, x
time = 15

;22コマンドy
[command]
name = "22y"
command = D, D, y
time = 15

;22コマンドz
[command]
name = "22z"
command = D, D, z
time = 15

;----------

;66コマンドy
[command]
name = "66y"
command = F, F, y
time = 15

;----------

;前方ハイジャンプ
[Command]
name = "Hei-J-mae"
command = D, UF
time = 10

;後方ハイジャンプ
[Command]
name = "Hei-J-ushiro"
command = D, UB
time = 10
;------------------------------------------------------------------------------
;-| ボタン同時押し |---------------------------------------------------------
[Command]
name = "x+y"
command = x+y
time = 1

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

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

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

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

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

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

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

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

;------------------------------------------------------------------------------
;-| リカバリーボタン |---------------------------------------------------------

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

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

[Command]
name = "recovery"
command = z
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 = "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 = "/a"
command = /a
time = 1

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

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

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

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

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

[Command]
name = "/x"
command = /x
time = 1

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

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

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

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

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

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

;【レバー上】2
[Command]
name = "U"
command = U
time = 1

;【レバー下】
[Command]
name = "holddown"  ;必須コマンド名
command = /$D
time = 1

;==============================================================================
;==============================================================================
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
[Statedef -1] ;←この行は絶対に消さないでね。必須項目です。
;==============================================================================
; 先行入力
;==============================================================================
;------------------------------------------------------------------------------
[state -1] ;超必殺技系コマンド先行入力記憶時間
type = VarSet
trigger1 = command = "shinku-tatumaki-z"
trigger2 = command = "shinku-tatumaki-y"
trigger3 = command = "shinku-tatumaki-x"
trigger4 = command = "shinku-tatumaki-c"
trigger5 = command = "shinku-tatumaki-b"
trigger6 = command = "shinku-tatumaki-a"
trigger7 = command = "shinku-hadou-z"
trigger8 = command = "shinku-hadou-y"
trigger9 = command = "shinku-hadou-x"
trigger10 = command = "shinku-hadou-c"
trigger11 = command = "shinku-hadou-b"
trigger12 = command = "shinku-hadou-a"
v = 18
value = 10

[state -1] ;逆ヨガ、バックダッシュコマンド先行入力記憶時間
type = VarSet
trigger1 = command = "BB"
trigger2 = command = "gyaku-yoga-a"
trigger3 = command = "gyaku-yoga-b"
trigger4 = command = "gyaku-yoga-c"
v = 18
value = 10

[state -1] ;波動コマンド先行入力記憶時間
type = VarSet
trigger1 = command = "hadou-s"
trigger2 = command = "hadou-a"
trigger3 = command = "hadou-b"
trigger4 = command = "hadou-c"
trigger5 = command = "hadou-x"
trigger6 = command = "hadou-y"
trigger7 = command = "hadou-z"
trigger8 = command = "hadou-a+b"
trigger9 = command = "hadou-b+c"
v = 18
value = 10

;==============================================================================
; 挑発
;==============================================================================
;------------------------------------------------------------------------------
[state -1, EX挑発（先行入力）]
type = VarSet
triggerall = Var(31) = 0
trigger1 = command = "hadou-s"
v = 17
value = 950

;EX挑発（１０００万円）
[state -1]
type = changestate
value = 950
triggerall = Var(31) = 0
triggerall = power >= 1000
triggerall = statetype != A
triggerall = Var(17) = 950
trigger1 = ctrl
trigger2 = stateno = 1023 || stateno = 1050
trigger3 = StateNo = [5120,5121] ;起き上がりリバーサル
trigger3 = animtime = 0
trigger4 = StateNo = 5001     ;喰らい回復
trigger4 = HitOver = 1
trigger5 = StateNo = 5011     ;屈喰らい回復
trigger5 = HitOver = 1

;------------------------------------------------------------------------------
;挑発（札束積み前）
[state -1]
type = changestate
value = 910
triggerall = Var(31) = 0
triggerall = command = "holdfwd"
triggerall = command = "holddown"
triggerall = command = "start"
triggerall = power >= 100
trigger1 = statetype != A
trigger1 = ctrl

;------------------------------------------------------------------------------
;挑発（札束積み後）
[state -1]
type = changestate
value = 920
triggerall = Var(31) = 0
triggerall = command = "holdback"
triggerall = command = "holddown"
triggerall = command = "start"
triggerall = power >= 100
trigger1 = statetype != A
trigger1 = ctrl

;------------------------------------------------------------------------------
;挑発（札束投げ）
[state -1]
type = changestate
value = 900
triggerall = Var(31) = 0
triggerall = command = "start"
triggerall = power >= 100
trigger1 = statetype != A
trigger1 = ctrl

;==============================================================================
; 超必殺技
;==============================================================================
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
[state -1, エーテル（先行入力）]
type = VarSet
triggerall = Var(31) <= 1
trigger1 = command = "shinku-tatumaki-z"
v = 17
value = 6000

[state -1, エーテル]
type = changestate
value = 6000
triggerall = Var(31) <= 1
triggerall = statetype != A
triggerall = power >= 5000
triggerall = Var(17) = 6000
trigger1 = ctrl
trigger2 = (stateno = 200) && time >= 8 || (stateno = 220) && time >= 18 || (stateno = 400) && time >= 8 ||  (stateno = 1023) || (stateno = 1050)
trigger3 = StateNo = [5120,5121] ;起き上がりリバーサル
trigger3 = animtime = 0
trigger4 = StateNo = 5001     ;喰らい回復
trigger4 = HitOver = 1
trigger5 = StateNo = 5011     ;屈喰らい回復
trigger5 = HitOver = 1
trigger6 = (stateno = 300) || (stateno = 305) || (stateno = 210) || (stateno = 212) || (stateno = 410) || (stateno = 420) || (stateno = 423) || (stateno = 1000) || (stateno = 1001) || (stateno = 1010) || (stateno = 1011) || (stateno = 1020)
trigger6 = movecontact

;------------------------------------------------------------------------------
[state -1, ホーリー（先行入力）]
type = VarSet
triggerall = Var(31) <= 1
trigger1 = command = "shinku-tatumaki-x"
v = 17
value = 6100

[state -1, ホーリー]
type = changestate
value = 6100
triggerall = Var(31) <= 1
triggerall = statetype != A
triggerall = power >= 4000
triggerall = Var(17) = 6100
trigger1 = ctrl
trigger2 = (stateno = 200) && time >= 8 || (stateno = 220) && time >= 18 || (stateno = 400) && time >= 8 ||  (stateno = 1023) || (stateno = 1050)
trigger3 = StateNo = [5120,5121] ;起き上がりリバーサル
trigger3 = animtime = 0
trigger4 = StateNo = 5001     ;喰らい回復
trigger4 = HitOver = 1
trigger5 = StateNo = 5011     ;屈喰らい回復
trigger5 = HitOver = 1
trigger6 = (stateno = 300) || (stateno = 305) || (stateno = 210) || (stateno = 212) || (stateno = 410) || (stateno = 420) || (stateno = 423) || (stateno = 1000) || (stateno = 1001) || (stateno = 1010) || (stateno = 1011) || (stateno = 1020)
trigger6 = movecontact

;------------------------------------------------------------------------------
[state -1, 銭形平次の超電磁砲] ;１ゲージ版
type = changestate
value = 4000
triggerall = Var(31) = 0
triggerall = command = "shinku-tatumaki-a"
triggerall = statetype != A
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = (stateno = 200) && time >= 8 || (stateno = 220) && time >= 18 || (stateno = 400) && time >= 8 ||  (stateno = 1023) || (stateno = 1050)
trigger3 = (stateno = 300) || (stateno = 305) || (stateno = 210) || (stateno = 212) || (stateno = 410) || (stateno = 420) || (stateno = 423) || (stateno = 1000) || (stateno = 1001) || (stateno = 1010) || (stateno = 1011) || (stateno = 1020)
trigger3 = movecontact

[state -1, 銭形平次の超電磁砲] ;３ゲージ版
type = changestate
value = 4030
triggerall = Var(31) = 0
triggerall = command = "shinku-tatumaki-b"
triggerall = statetype != A
triggerall = power >= 3000
trigger1 = ctrl
trigger2 = (stateno = 200) && time >= 8 || (stateno = 220) && time >= 18 || (stateno = 400) && time >= 8 ||  (stateno = 1023) || (stateno = 1050)
trigger3 = (stateno = 300) || (stateno = 305) || (stateno = 210) || (stateno = 212) || (stateno = 410) || (stateno = 420) || (stateno = 423) || (stateno = 1000) || (stateno = 1001) || (stateno = 1010) || (stateno = 1011) || (stateno = 1020)
trigger3 = movecontact

[state -1, 銭形平次の超電磁砲] ;５ゲージ版
type = changestate
value = 4060
triggerall = Var(31) = 0
triggerall = command = "shinku-tatumaki-c"
triggerall = statetype != A
triggerall = power >= 5000
trigger1 = ctrl
trigger2 = (stateno = 200) && time >= 8 || (stateno = 220) && time >= 18 || (stateno = 400) && time >= 8 ||  (stateno = 1023) || (stateno = 1050)
trigger3 = (stateno = 300) || (stateno = 305) || (stateno = 210) || (stateno = 212) || (stateno = 410) || (stateno = 420) || (stateno = 423) || (stateno = 1000) || (stateno = 1001) || (stateno = 1010) || (stateno = 1011) || (stateno = 1020)
trigger3 = movecontact

;[state -1, 会長の首切り鎌]
;type = changestate
;value = 4160
;triggerall = command = "miltudonaito3"
;triggerall = statetype != A
;triggerall = power >= 3000
;trigger1 = ctrl
;trigger2 = (stateno = 200) && time >= 8 || (stateno = 220) && time >= 18 || (stateno = 400) && time >= 8 ||  (stateno = 1023) || (stateno = 1050)
;trigger3 = (stateno = 300) || (stateno = 305) || (stateno = 210) || (stateno = 410) || (stateno = 420) || (stateno = 423)
;trigger3 = movecontact
;trigger4 = (stateno = 1000) || (stateno = 1001) || (stateno = 1010) || (stateno = 1011) || (stateno = 1020)
;trigger4 = movecontact

;[state -1, 「お金が…勝手に…ぅわあああ！！」]
;type = changestate
;value = 4200
;triggerall = command = "hadou-z"
;triggerall = numhelper(4250) = 0
;triggerall = statetype != A
;trigger1 = power >= 10000
;trigger1 = Var(50) >= 1000
;trigger1 = ctrl

;------------------------------------------------------------------------------
;==============================================================================
; 必殺技
;==============================================================================
;------------------------------------------------------------------------------
[state -1, 金的蹴り、ＥＸ必殺投げ（先行入力）]
type = VarSet
triggerall = Var(31) <= 2
trigger1 = command = "gyaku-yoga-c"
v = 17
value = 840

[state -1, 金的蹴り、ＥＸ必殺投げ]
type = changestate
value = 840
triggerall = Var(31) <= 2
triggerall = Var(7) = 0      ;投げがコンボに組み込める回数は１回まで
triggerall = power >= 3000
triggerall = statetype != A 
triggerall = Var(17) = 840
triggerall = Var(50) <= 50
trigger1 = ctrl
trigger2 = StateNo = 1050
trigger3 = StateNo = [5120,5121] ;起き上がりリバーサル
trigger3 = animtime = 0
trigger4 = StateNo = 5001     ;喰らい回復
trigger4 = HitOver = 1
trigger5 = StateNo = 5011     ;屈喰らい回復
trigger5 = HitOver = 1

;------------------------------------------------------------------------------
[state -1, 札束ビンタ、コマンド投げ（先行入力）]
type = VarSet
triggerall = Var(31) <= 2
trigger1 = command = "gyaku-yoga-a"
trigger2 = command = "gyaku-yoga-b"
v = 17
value = 850

[state -1, 札束ビンタ、コマンド投げ]
type = changestate
value = 850
triggerall = Var(31) <= 2
triggerall = Var(7) = 0      ;投げがコンボに組み込める回数は１回まで
triggerall = statetype != A 
triggerall = Var(17) = 850
trigger1 = ctrl
trigger2 = StateNo = 1050
trigger3 = StateNo = [5120,5121] ;起き上がりリバーサル
trigger3 = animtime = 0
trigger4 = StateNo = 5001     ;喰らい回復
trigger4 = HitOver = 1
trigger5 = StateNo = 5011     ;屈喰らい回復
trigger5 = HitOver = 1

;---------------- 金猫に小判 ---------------------------------------------------------------

[State -1, EX近距離]
type = changestate
value = 1170
triggerall = Var(31) = 0
triggerall = Var(50) >= 10
triggerall = command = "hadou-a+b"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 220) && time >= 18
trigger3 = stateno = 1050
trigger3 = command != "holddown"
trigger4 = (stateno = 200) || (stateno = 210) || (stateno = 400) || (stateno = 423)
trigger4 = movecontact

[State -1, EX近距離]
type = changestate
value = 1180
triggerall = Var(31) = 0
triggerall = Var(50) >= 10
triggerall = command = "hadou-b+c"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 220) && time >= 18
trigger3 = stateno = 1050
trigger3 = command != "holddown"
trigger4 = (stateno = 200) || (stateno = 210) || (stateno = 400) || (stateno = 423)
trigger4 = movecontact

[State -1, 近距離]
type = changestate
value = 1100
triggerall = Var(31) <= 2
triggerall = Var(50) >= 10
triggerall = command = "hadou-a"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 220) && time >= 18
trigger3 = stateno = 1050
trigger3 = command != "holddown"
trigger4 = (stateno = 200) || (stateno = 210) || (stateno = 400) || (stateno = 423)
trigger4 = movecontact

[State -1, 中距離]
type = changestate
value = 1120
triggerall = Var(31) <= 2
triggerall = Var(50) >= 10
triggerall = command = "hadou-b"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 220) && time >= 18
trigger3 = stateno = 1050
trigger3 = command != "holddown"
trigger4 = (stateno = 200) || (stateno = 210) || (stateno = 400) || (stateno = 423)
trigger4 = movecontact

[State -1, 遠距離]
type = changestate
value = 1140
triggerall = Var(31) <= 2
triggerall = Var(50) >= 10
triggerall = command = "hadou-c"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 220) && time >= 18
trigger3 = stateno = 1050
trigger3 = command != "holddown"
trigger4 = (stateno = 200) || (stateno = 210) || (stateno = 400) || (stateno = 423)
trigger4 = movecontact

[state -1, 空中版、ＥＸ１]
type = changestate
value = 1430
triggerall = Var(31) = 0
triggerall = Var(50) >= 10
triggerall = command = "hadou-a+b"
triggerall = Var(1) <= 1
triggerall = numhelper(1405) <= 1
triggerall = power >= 1000
trigger1 = statetype != S
trigger1 = statetype != C
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,699]

[state -1, 空中版、ＥＸ２]
type = changestate
value = 1440
triggerall = Var(31) = 0
triggerall = Var(50) >= 10
triggerall = command = "hadou-b+c"
triggerall = Var(1) <= 1
triggerall = numhelper(1405) <= 1
triggerall = power >= 1000
trigger1 = statetype != S
trigger1 = statetype != C
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,699]

[state -1, 空中版、弱ボタン]
type = changestate
value = 1400
triggerall = Var(31) <= 5
triggerall = Var(50) >= 10
triggerall = command = "hadou-a"
triggerall = Var(1) <= 1
triggerall = numhelper(1405) <= 1
trigger1 = statetype != S
trigger1 = statetype != C
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,699]

[state -1, 空中版、中ボタン]
type = changestate
value = 1410
triggerall = Var(31) <= 5
triggerall = Var(50) >= 10
triggerall = command = "hadou-b"
triggerall = Var(1) <= 1
triggerall = numhelper(1405) <= 1
trigger1 = statetype != S
trigger1 = statetype != C
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,699]

[state -1, 空中版、強ボタン]
type = changestate
value = 1420
triggerall = Var(31) <= 5
triggerall = Var(50) >= 10
triggerall = command = "hadou-c"
triggerall = Var(1) <= 1
triggerall = numhelper(1405) <= 1
trigger1 = statetype != S
trigger1 = statetype != C
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,699]

;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;銭形平次の投資

[state -1, 地上版３・ＥＸ版]
type = changestate
value = 1290
triggerall = Var(31) = 0
triggerall = Var(50) >= 30
triggerall = command = "tatumaki-c"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 220) && time >= 18
trigger3 = (stateno = 200) || (stateno = 210) || (StateNo = 400) || (stateno = 423)
trigger3 = movecontact

[state -1, 地上版２]
type = changestate
value = 1250
triggerall = Var(31) <= 2
triggerall = Var(50) >= 5
triggerall = command = "tatumaki-b"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 220) && time >= 18
trigger3 = (stateno = 200) || (stateno = 210) || (stateno = 400) || (stateno = 423)
trigger3 = movecontact

[state -1, 地上版１]
type = changestate
value = 1200
triggerall = Var(31) <= 2
triggerall = Var(50) >= 5
triggerall = command = "tatumaki-a"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 220) && time >= 18
trigger3 = (stateno = 200) || (stateno = 210) || (stateno = 400) || (stateno = 423)
trigger3 = movecontact

;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;==============================================================================
; ガード関連
;==============================================================================
;アドバンシングガード地上１
[state -1]
type = changestate
value = 160
triggerall = Var(31) <= 5
triggerall = command = "a+b"
triggerall = stateno = 150 || stateno = 151 || stateno = 152 || stateno = 153
trigger1 = statetype != A
ignorehitpause = 0

;アドバンシングガード地上２
[state -1]
type = changestate
value = 165
triggerall = Var(31) <= 5
triggerall = command = "b+c"
triggerall = stateno = 150 || stateno = 151 || stateno = 152 || stateno = 153
trigger1 = statetype != A
ignorehitpause = 0

;アドバンシングガード空中１
[state -1]
type = changestate
value = 164
triggerall = Var(31) <= 5
triggerall = command = "a+b"
triggerall = stateno = 154 || stateno = 155
trigger1 = statetype = A
ignorehitpause = 0

;アドバンシングガード空中２
[state -1]
type = changestate
value = 169
triggerall = Var(31) <= 5
triggerall = command = "b+c"
triggerall = stateno = 154 || stateno = 155
trigger1 = statetype = A
ignorehitpause = 0

;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;==============================================================================
; 移動関連
;==============================================================================
;------------------------------------------------------------------------------
[State -1, 走る]
type = ChangeState
value = 100
triggerall = Var(31) <= 4
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

[state -1, バックステップ（先行入力）]
type = VarSet
triggerall = Var(31) <= 4
trigger1 = command = "BB"
v = 17
value = 105

[State -1, バックステップ]
type = ChangeState
value = 105
triggerall = Var(31) <= 4
triggerall = Var(17) = 105
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 1050)
trigger3 = StateNo = [5120,5121] ;起き上がりリバーサル
trigger3 = animtime = 0
trigger4 = StateNo = 5001     ;喰らい回復
trigger4 = HitOver = 1
trigger5 = StateNo = 5011     ;屈喰らい回復
trigger5 = HitOver = 1

[state -1, 空中前ダッシュ]
type = Changestate
value = 110
triggerall = Var(31) <= 5
triggerall = command = "FF"
triggerall = statetype = A
triggerall = Var(1) <= 1
trigger1 = ctrl
trigger2 = stateno = 600 && time >= 8 || stateno = 610 && time >= 10
trigger3 = stateno = 620
trigger3 = movecontact

[state -1, 空中バックダッシュ]
type = Changestate
value = 115
triggerall = Var(31) <= 5
triggerall = command = "BB"
triggerall = statetype = A
triggerall = Var(1) <= 1
trigger1 = ctrl
trigger2 = stateno = 600 && time >= 8 || stateno = 610 && time >= 10
trigger3 = stateno = 620
trigger3 = movecontact

[state -1, 前ハイジャンプ]
type = changestate
value = 60
triggerall = Var(31) <= 4
trigger1 = command = "Hei-J-mae"
trigger1 = statetype != A
trigger1 = ctrl

[state -1, 後ハイジャンプ]
type = changestate
value = 60
triggerall = Var(31) <= 4
trigger1 = command = "Hei-J-ushiro"
trigger1 = statetype != A
trigger1 = ctrl

[state -1, 風神ステップ]
type = changestate
value = 1050
triggerall = Var(31) <= 4
triggerall = command = "syoryu"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 1050)

;==============================================================================
; 特殊技
;==============================================================================
;------------------------------------------------------------------------------
[state -1, 投げ技]
type = changestate
value = 800
triggerall = Var(31) <= 2
triggerall = Var(7) = 0      ;投げがコンボに組み込める回数は１回まで
triggerall = statetype != A 
triggerall = ctrl
triggerall = command != "holdup"
triggerall = command != "holddown"
trigger1 = command = "x"
trigger1 = command = "holdfwd"
trigger2 = command = "x"
trigger2 = command = "holdback"

;------------------------------------------------------------------------------
[State -1, 浴びせ蹴り、地上]
type = changestate
value = 1800
triggerall = Var(31) <= 2
triggerall = statetype != A
triggerall = command = "66y"
trigger1 = ctrl
trigger2 = StateNo = [100,109]
trigger3 = (stateno = [200, 499])
trigger3 = movecontact

[State -1, 浴びせ蹴り、空中]
type = changestate
value = 1810
triggerall = Var(31) <= 2
triggerall = statetype = A
triggerall = command = "66y"
trigger1 = ctrl
trigger2 = StateNo = [110,119]
trigger3 = (stateno = [600, 640])
trigger3 = movecontact

;------------------------------------------------------------------------------
[state -1, お金補充]
type = changestate
value = 2000
triggerall = Var(31) = 0
triggerall = statetype != A
triggerall = command = "holddown"
trigger1 = command = "y"
trigger1 = ctrl
trigger1 = Var(50) <= 50

[state -1, お金補充]
type = changestate
value = 2100
triggerall = Var(31) <= 3
triggerall = statetype != A
triggerall = command != "holddown"
trigger1 = command = "y"
trigger1 = ctrl

;------------------------------------------------------------------------------
;螺旋幻魔脚
[state -1, 斜め前]
type = changestate
value = 700
triggerall = Var(31) <= 2
triggerall = command = "holdfwd"
triggerall = command = "holdup"
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = StateNo = 40

[state -1, 垂直]
type = changestate
value = 704
triggerall = Var(31) <= 2
triggerall = command = "holdup"
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = StateNo = 40

;------------------------------------------------------------------------------
[State -1, 立ちb+c]
type = ChangeState
value = 380
triggerall = Var(31) <= 2
triggerall = command = "b+c"
trigger1 = statetype != A
trigger1 = statetype = S
trigger1 = ctrl

[state -1, 4C(部長の首切り鎌)]
type = changestate
value = 4100
triggerall = Var(31) <= 2
triggerall = command = "holdback"
triggerall = command != "holddown"
triggerall = command = "c"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && time >= 8 || (stateno = 220) && time >= 18 || (stateno = 400) && time >= 8 || (stateno = 1023) || (stateno = 1050)
trigger3 = (stateno = 300) || (stateno = 305) || (stateno = 210) || (stateno = 410) || (stateno = 420) || (stateno = 423)
trigger3 = movecontact

[State -1, レバー斜め前入れ、しゃがみ強攻撃]
type = ChangeState
value = 420
triggerall = Var(31) <= 2
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = command = "holdfwd"
trigger1 = statetype != A
trigger1 = statetype = C
trigger1 = ctrl

[State -1, ジャンプ特殊攻撃] ;黄金の釘バットでぶん殴る
type = ChangeState
value = 640
triggerall = Var(31) <= 5
triggerall = command = "a+b"
triggerall = Var(12) <= 0
triggerall = statetype = A
trigger1 = power >= 500
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 610 || stateno = 620
trigger2 = movecontact

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

[State -1, 立ち弱攻撃]
type = ChangeState
value = 200
triggerall = Var(31) <= 3
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype != A
trigger1 = statetype = S
trigger1 = ctrl

[state -1, 立ち中攻撃]
type = ChangeState
value = 210
triggerall = Var(31) <= 2
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype != A
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && time >= 12

[State -1, 立ち強攻撃]
type = ChangeState
value = 220
triggerall = Var(31) <= 2
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype != A
trigger1 = statetype = S
trigger1 = ctrl

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

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

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

[State -1, しゃがみ強攻撃]
type = ChangeState
value = 423
triggerall = Var(31) <= 2
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = command != "holdfwd"
trigger1 = statetype != A
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 395
trigger2 = movehit

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

[State -1, ジャンプ弱攻撃]
type = ChangeState
value = 600
triggerall = Var(31) <= 5
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

[State -1, ジャンプ中攻撃]
type = ChangeState
value = 610
triggerall = Var(31) <= 5
triggerall = command = "b"
triggerall = Var(14) <= 0
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,609]
trigger2 = movecontact

[State -1, ジャンプ強攻撃]
type = ChangeState
value = 620
triggerall = Var(31) <= 5
triggerall = command = "c"
triggerall = Var(15) <= 0
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,619]
trigger2 = movecontact

;------------------------------------------------------------------------------
;ゲージ溜め
[state -1]
type = changestate
value = 960
triggerall = Var(59) = 0
triggerall = command = "/z"
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = power < 10000
trigger1 = statetype != A
trigger1 = ctrl

;------------------------------------------------------------------------------
[state -1, ジャンプ]
type = changestate
value = 40
triggerall = Var(31) <= 4
triggerall = command = "holdup"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 410) || (stateno = 1000) || (stateno = 1001) || (stateno = 1010) || (stateno = 1011) 
trigger2 = movecontact

;------------------------------------------------------------------------------
[state -1, 空中ジャンプ1]
type = changestate
value = 45
triggerall = Var(31) <= 5
triggerall = Var(13) <= 1
triggerall = command = "U"
triggerall = statetype = A
trigger1 = time >= 10
trigger1 = ctrl

[state -1, 空中ジャンプ2]
type = changestate
value = 45
triggerall = Var(31) <= 5
triggerall = Var(13) <= 1
triggerall = command = "holdup"
trigger1 = stateno = [600,699]
trigger1 = movecontact

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