;「ロック・ハワード」の入力コマンド定義ファイルです。
; コマンドの入力キーを設定するパートと、技を実行するための条件を設定するパートに分かれています。
;------------------------------------------------------------------------------
;==============================================================================
; 入力キーの設定パート
;==============================================================================
;------------------------------------------------------------------------------
;■設定はこの形が決まり事です。詳細は以下参照。
;
;[Command]
;name = "***"
;command = ###
;time = &&&
;
;■コマンドの名前：「name = "***"」という風に入れます。***に文字を入れてください。
; 　　　　　　　　アルファベットは大文字と小文字でも区別されます。日本語も可能です。
;
;■指定方法：「command = ###」という風に入れます。
;　　　　　　###に下記のキーを組み合わせ入力するコマンドを設定してください。
;
;　　方向キー：　B, DB, D, DF, F, UF, U, UB　（全て大文字で）
;　　　　　　　　B=Back（後）・D=Down（下）・F=Forward（前）・U=Up（上）になっています。
;
;　　ボタン　：　a, b, c, x, y, z, s 　　　　（全て小文字で）
; 
;　※特殊文字
;
;　　スラッシュ（ / ）：ボタンを押しっぱなしにする場合はこれを入れます。
;　　　　　　　　例：command = /F　　　（前キーを押したままにする）
;　　　　　　　　　　command = /B,y　　（後キーを押したままＹボタンを入力）
;
;　　チルダ　　（ ~ ）：ボタンが離される事を認識させる場合はこれを入れます。
;　　　　　　　　例：command = ~c　　　（Ｃボタンを離す）
;　　　　　　　　　　command = ~DB,DF,x（斜め後下を離して斜め前下=>Ｘボタンの順番に入力）
;
;　　　　　　　　※数値を追加する事で、ボタンを離すまでの時間、いわゆる『溜め』を設定出来ます。
;　　　　　　　　例：command = ~20z　　（Ｚボタンを押したままにし、２０フレーム後に離す）
;　　　　　　　　　　command = ~40B,F,b（後キーを押したままにし、４０フレーム後に離して前キー=>Ｂボタンの順番に入力）
;
;　　ドル　　　（ $ ）：複数の方向キー要素を入力出来るようにする場合はこれを入れます。
;　　　　　　　　例：command = $U　　　（上・斜め前上・斜め後上のどれからで始めても良い）
;　　　　　　　　　　command = $DF 　　（下・斜め前下・前のどれからで始めても良い）
;
;　　プラス　　（ + ）：ボタンを同時押しする場合はこれを入れます。
;　　　　　　　　例：command = a+b 　　（ＡボタンとＢボタンを同時押しします）
;　　　　　　　　　　command = x+y+z 　（ＸボタンとＹボタンとＺボタンを同時押しします）
;　　　　　　　　　　command = F+c 　　（前キーとＣボタンを同時押しします）
;
;　※これらの特殊文字は、組み合わせて使用する事も可能です。
;　　　　　　　　例：command = ~30$D,a+b
;　　　　　　　　　　　　　（下要素を３０フレーム溜めて離した後にＡボタンとＢボタンを同時押しします）
;
;■入力コマンド受付時間：「time = &&&」という風に入れます。オプションなので省略可能。
;　　　　　　　　　　　　&&&にコマンドを入力出来る時間を入れてください。時間はフレーム数です（１フレーム＝1/60秒）。
;　　　　　　　　例：time = 24　（入力受付時間を２４フレーム（0.4秒）に設定）
;
; 後は実際に登録されているものを参照してください。
;==============================================================================

;-| ボタン配置 |---------------------------------------------------------------
;各ボタンの配置を簡単に変更できます。
;このキャラクターのボタン配置を変えたいときなどに使います。
;x = x を x = a に変えれば、xがaに変わります。

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

;-| 標準化 |-------------------------------------------------------------------
[Defaults]
; timeを記述しなかった場合、以下の値が参照されます。最小値は1です。
command.time = 15

; buffer.timeの値です。1〜30まで設定できます。
; 普通は1です。
command.buffer.time = 1

;------------------------------------------------------------------------------
;-| MAX超必殺技 |--------------------------------------------------------------
[Command]
name = "デッドリーレイブ・ネオ"
command = ~F, DF, DB, B, F, x
time = 30

[Command]
name = "MAXレイジングストーム"
command = ~D, DF, F, D, DF, F, x+y
time = 30

[Command]
name = "MAXシャインナックル"
command = ~D, DF, F, D, DF, F, a+b
time = 30

;------------------------------------------------------------------------------
;-| 超必殺技 |-----------------------------------------------------------------
[Command]
name = "弱レイジングストーム"
command = ~D, DF, F, D, DF, F, x
time = 30

[Command]
name = "強レイジングストーム"
command = ~D, DF, F, D, DF, F, y
time = 30

[Command]
name = "弱シャインナックル"
command = ~D, DF, F, D, DF, F, a
time = 30

[Command]
name = "強シャインナックル"
command = ~D, DF, F, D, DF, F, b
time = 30

;------------------------------------------------------------------------------
;-| 必殺技 |-------------------------------------------------------------------
[Command]
name = "弱ライジングタックル"
command = ~F, D, DF, x

[Command]
name = "強ライジングタックル"
command = ~F, D, DF, y

[Command]
name = "レイジラン・Type「ダンク」"
command = ~D, DB, B, a
time = 15

[Command]
name = "レイジラン・Type「シフト」"
command = ~D, DB, B, b
time = 15

[Command]
name = "烈風拳"
command = ~D, DF, F, x
time = 15

[Command]
name = "ダブル烈風拳"
command = ~D, DF, F, y
time = 15

[Command]
name = "クラックカウンター・上段"
command = ~D, DF, F, a
time = 15

[Command]
name = "クラックカウンター・下段"
command = ~D, DF, F, b
time = 15

[Command]
name = "弱ハードエッジ"
command = ~D, DB, B, x
time = 15

[Command]
name = "強ハードエッジ"
command = ~D, DB, B, y
time = 15

[Command]
name = "真空投げ"
command = ~F, D, B, U, y
time = 30

[Command]
name = "真空投げ"
command = ~D, B, U, F, y
time = 30

[Command]
name = "真空投げ"
command = ~B, U, F, D, y
time = 30

[Command]
name = "真空投げ"
command = ~U, F, D, B, y
time = 30

[Command]
name = "真空投げ"
command = ~F, U, B, D, y
time = 30

[Command]
name = "真空投げ"
command = ~U, B, D, F, y
time = 30

[Command]
name = "真空投げ"
command = ~B, D, F, U, y
time = 30

[Command]
name = "真空投げ"
command = ~D, F, U, B, y
time = 30

;------| Double Tap |------
[Command]
name = "FF"
command = ~F, F
time = 6
[Command]
name = "FB"
command = ~F, B
time = 6

[Command]
name = "FDF"
command = ~F, D, F
time = 6
[Command]
name = "FDF"
command = ~F, DF, F
time = 6

[Command]
name = "BB"
command = ~B, B
time = 6
[Command]
name = "BF"
command = ~B, F
time = 6
[Command]
name = "BDB"
command = ~B, D, B
time = 6
[Command]
name = "BDB"
command = ~B, DB, B
time = 6

[Command]
name = "longjump"
command = D, $U
time = 20

;------| 2/3 Button Combination |------
;------| Dir + Button |------
[Command]
name = "recovery"
command = x+a

[Command]
name = "fwd_a"
command = /F,a
[Command]
name = "fwd_b"
command = /F,b
[Command]
name = "fwd_x"
command = /F,x
[Command]
name = "fwd_y"
command = /F,y

[Command]
name = "back_a"
command = /B,a
[Command]
name = "back_b"
command = /B,b
[Command]
name = "back_x"
command = /B,x
[Command]
name = "back_y"
command = /B,y

[Command]
name = "down_a"
command = /D, a
[Command]
name = "down_b"
command = /D, b
[Command]
name = "down_x"
command = /D, x
[Command]
name = "down_y"
command = /D, y

;------| Single Button |------
[Command]
name = "a"
command = a
[Command]
name = "b"
command = b
[Command]
name = "x"
command = x
[Command]
name = "y"
command = y
[Command]
name = "c"
command = c
[Command]
name = "z"
command = z
[Command]
name = "s"
command = s

[Command]
name = "hold_a"
command = /$a
[Command]
name = "hold_b"
command = /$b
[Command]
name = "hold_x"
command = /$x
[Command]
name = "hold_y"
command = /$y
[Command]
name = "hold_c"
command = /$c
[Command]
name = "hold_z"
command = /$z
[Command]
name = "hold_s"
command = /$s

;------| Hold Dir |------
[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

;------| Commands |------
[Statedef -1]
[State -1]
type = Varset
trigger1 = 1
var(30) = 0

[State -1]
type = Varset
trigger1  = stateno = 201 && movecontact
trigger2  = stateno = 211 && movecontact
trigger3  = stateno = 221 && movecontact
trigger4  = stateno = 231 && movecontact
trigger5  = stateno = 232 && movecontact
trigger6  = stateno = 400 && movecontact
trigger7  = stateno = 410 && movecontact
trigger8  = stateno = 420 && movecontact
trigger9  = stateno = 430 && movecontact
trigger10 = stateno = 240 && movecontact
trigger11 = stateno = 300 && movecontact
ignorehitpause = 1
var(30) = var(30) | 1

[State 0, 1]
type = ChangeState
triggerall = var(2) != 0
trigger1  = stateno = 201 && movecontact
trigger2  = stateno = 211 && movecontact
trigger3  = stateno = 221 && movecontact
trigger4  = stateno = 231 && movecontact
trigger5  = stateno = 232 && movecontact
trigger6  = stateno = 400 && movecontact
trigger7  = stateno = 410 && movecontact
trigger8  = stateno = 420 && movecontact
trigger9  = stateno = 430 && movecontact
trigger10 = stateno = 240 && movecontact
value = var(2)

[State -1]
type = Varset
trigger1 = 1
var(31) = 0

[State -1]
type = Varset
trigger1 = stateno = 1000 && MoveContact = 1
trigger2 = stateno = 1050 && MoveContact = 1
trigger3 = stateno = 1251 && MoveContact = 1
ignorehitpause = 1
var(31) = var(31) | 1

[State -1]
type = Varset
trigger1 = 1
var(32) = 0

[State -1]
type = Varset
triggerall = var(30) != 1 && var(32) != 2 && var(10) != 0
trigger1 = stateno = 200 || stateno = 201
trigger2 = stateno = 210 || stateno = 211
trigger3 = stateno = 220 || stateno = 221
trigger4 = stateno = 230 || stateno = 231
trigger5 = stateno = 400 || stateno = 410
trigger6 = stateno = 420 || stateno = 430
trigger7 = stateno = 240 || stateno = 245
ignorehitpause = 1
var(32) = var(32) | 1

[State -1]
type = Varset
triggerall = var(30) != 1 && var(32) != 1 && var(10) != 0 && MoveContact = 1
trigger1 = stateno = 300 || stateno = 231
trigger2 = stateno = 222 || stateno = 223
trigger3 = stateno = 224 || stateno = 225
ignorehitpause = 1
var(32) = var(32) | 2

;------------------------------------------------------------------------------
; 吹っ飛ばし攻撃
[State -1]
type = ChangeState
value = 240
triggerall = (command = "y" && command = "b")
triggerall = statetype != A
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(19) = 0 && var(20) = 0 && var(21) = 0
trigger1 = (command = "y" && command = "b")
var(21) = 240

[State -1]
type = varset
trigger1 = (command = "y" && command = "b")
var(23) = 2

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(21) = 240 && var(19) = 0 && var(20) = 0
triggerall = (command = "hold_y" && command = "hold_b")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = 240

;------------------------------------------------------------------------------
; 前転＆後転
[State -1]
type = ChangeState
value = ifelse(command = "holdback",710,700)
triggerall = command = "x" && command = "a"
triggerall = command != "holddown" && statetype != A && winko = 0
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = ctrl || (stateno = 101 && time >= 1)
trigger3 = (stateno = 150 || stateno = 152) && power >= 1000

[State -1]
type = varset
triggerall = var(19) = 0 && var(20) = 0 && var(21) = 0
trigger1 = (command = "x" && command = "a") && command != "holddown"
var(21) = 700

[State -1]
type = varset
trigger1 = (command = "x" && command = "a") && command != "holddown"
var(23) = 5

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(21) = 700 && var(19) = 0 && var(20) = 0 && var(22) = 0
triggerall = (command = "hold_x" && command = "hold_a") && command != "holddown"
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = ifelse((P2Dist X < 0 && command = "holdfwd") || (P2Dist X >= 0 && command = "holdback"),710,ifelse(P2Dist X < 0 && command = "holdback",700,700))

;------------------------------------------------------------------------------
; ガードキャンセル吹っ飛ばし攻撃
[State -1]
type = ChangeState
value = 245
triggerall = (command = "y" && command = "b")
triggerall = power >= 1000
trigger1 = stateno = 150
trigger2 = stateno = 151

;------------------------------------------------------------------------------
; デッドリーレイブ・ネオ
[State -1]
type = ChangeState
value = 3400
triggerall = command = "デッドリーレイブ・ネオ"
triggerall = power >= 2000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
var(2) = 3400

[State 114, 15]
type = ChangeState
triggerall = var(22) != 0 && (command = "hold_x")
triggerall = MoveContact = 1
triggerall = power >= 2000 && Var(19) = 1
trigger1 = (stateno = 3301) || (stateno = 3310)
trigger2 = (stateno = 3101) || (stateno = [3103,3106])
value = 3400

;------------------------------------------------------------------------------
; MAXレイジングストーム
[State -1]
type = ChangeState
value = 3200
triggerall = command = "MAXレイジングストーム"
triggerall = power >= 2000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
var(2) = 3200

; 溜め
[State 2200, 17]
type = ChangeState
triggerall = stateno = 3200
trigger1 = Time = [31,299]
trigger1 = (command != "hold_x" && command != "hold_y")
value = 3201

;------------------------------------------------------------------------------
; MAXシャインナックル
[State -1]
type = ChangeState
value = 3300
triggerall = command = "MAXシャインナックル"
triggerall = power >= 2000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
var(2) = 3300

;------------------------------------------------------------------------------
; レイジングストーム
[State -1]
type = ChangeState
value = 3000
triggerall = command = "弱レイジングストーム" || command = "強レイジングストーム"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
var(2) = 3000

;------------------------------------------------------------------------------
; シャインナックル
[State -1]
type = ChangeState
value = 3100
triggerall = command = "弱シャインナックル" || command = "強シャインナックル"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
var(2) = 3100

;------------------------------------------------------------------------------
; ライジングタックル
[State -1]
type = ChangeState
value = ifelse(command = "弱ライジングタックル",1000,1050)
triggerall = command = "弱ライジングタックル" || command = "強ライジングタックル"
triggerall = statetype != A
trigger1 = var(30) = 1
trigger2 = ctrl || (stateno = 100 && time >= 3)
trigger3 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(20) = 0
trigger1 = P2Dist X >= 0 && (command = "弱ライジングタックル" || command = "強ライジングタックル")
var(20) = 1

[State -1]
type = varset
trigger1 = P2Dist X >= 0 && (command = "弱ライジングタックル" || command = "強ライジングタックル")
var(22) = 10

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(20) = 1 && var(19) = 0
triggerall = (command = "hold_x" || command = "hold_y")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
var(2) = ifelse(command = "hold_x",1000,1050)

;------------------------------------------------------------------------------
; 真空投げ
[State -1]
type = ChangeState
value = 1600
triggerall = command = "真空投げ"
triggerall = statetype != A
trigger1 = var(30) = 1
trigger2 = stateno = 1354 && AnimElem = 4, >= 1
trigger3 = ctrl || (stateno = 100 && time >= 3)
trigger4 = ctrl || (stateno = 101 && time >= 1)
trigger5 = stateno = 40

[State -1]
type = varset
triggerall = var(20) = 0
trigger1 = P2Dist X >= 0 && (command = "真空投げ")
var(20) = 1600

[State -1]
type = varset
trigger1 = P2Dist X >= 0 && (command = "真空投げ")
var(22) = 10

[State -1]
type = varset
triggerall = var(20) = 1600 && var(19) = 0
triggerall = (command = "hold_y")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
trigger6 = stateno = 40
var(2) = 1600

;------------------------------------------------------------------------------
; ハードエッジ
[State -1]
type = ChangeState
value = ifelse(command = "弱ハードエッジ",1200,1250)
triggerall = command = "弱ハードエッジ" || command = "強ハードエッジ"
triggerall = statetype != A
trigger1 = var(30) = 1
trigger2 = ctrl || (stateno = 100 && time >= 3)
trigger3 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(20) = 0
trigger1 = P2Dist X >= 0 && (command = "弱ハードエッジ" || command = "強ハードエッジ")
var(20) = 1200

[State -1]
type = varset
trigger1 = P2Dist X >= 0 && (command = "弱ハードエッジ" || command = "強ハードエッジ")
var(22) = 10

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(20) = 1200 && var(19) = 0
triggerall = (command = "hold_x" || command = "hold_y")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
var(2) = ifelse(command = "hold_x",1200,1250)

;------------------------------------------------------------------------------
; クラックカウンター
[State -1]
type = ChangeState
value = ifelse(command = "クラックカウンター・上段",1400,1450)
triggerall = command = "クラックカウンター・上段" || command = "クラックカウンター・下段"
triggerall = statetype != A
trigger1 = var(30) = 1
trigger2 = ctrl || (stateno = 100 && time >= 3)
trigger3 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(20) = 0
trigger1 = P2Dist X >= 0 && (command = "クラックカウンター・上段" || command = "クラックカウンター・下段")
var(20) = 1400

[State -1]
type = varset
trigger1 = P2Dist X >= 0 && (command = "クラックカウンター・上段" || command = "クラックカウンター・下段")
var(22) = 10

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(20) = 1400 && var(19) = 0
triggerall = (command = "hold_a" || command = "hold_b")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
var(2) = ifelse(command = "hold_a",1400,1450)

;------------------------------------------------------------------------------
; レイジラン・Type
[State -1]
type = ChangeState
value = ifelse(command = "レイジラン・Type「ダンク」",1300,1350)
triggerall = command = "レイジラン・Type「ダンク」" || command = "レイジラン・Type「シフト」"
triggerall = statetype != A
trigger1 = var(30) = 1
trigger2 = ctrl || (stateno = 100 && time >= 3)
trigger3 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(20) = 0
trigger1 = P2Dist X >= 0 && (command = "レイジラン・Type「ダンク」" || command = "レイジラン・Type「シフト」")
var(20) = 2

[State -1]
type = varset
trigger1 = P2Dist X >= 0 && (command = "レイジラン・Type「ダンク」" || command = "レイジラン・Type「シフト」")
var(22) = 10

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(20) = 2 && var(19) = 0
triggerall = (command = "hold_a" || command = "hold_b")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
var(2) = ifelse(command = "hold_a",1300,1350)

;------------------------------------------------------------------------------
; 烈風拳
[State -1]
type = ChangeState
value = ifelse(command = "烈風拳",1100,1150)
triggerall = command = "烈風拳" || command = "ダブル烈風拳"
triggerall = statetype != A
triggerall = numproj = 0
trigger1 = var(30) = 1
trigger2 = ctrl || (stateno = 100 && time >= 3)
trigger3 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = numproj = 0
triggerall = var(20) = 0
trigger1 = P2Dist X >= 0 && (command = "烈風拳" || command = "ダブル烈風拳")
var(20) = 7

[State -1]
type = varset
triggerall = numproj = 0
trigger1 = P2Dist X >= 0 && (command = "烈風拳" || command = "ダブル烈風拳")
var(22) = 10

[State -1]
type = varset
triggerall = numproj = 0
triggerall = command != "holdup"
triggerall = var(20) = 7 && var(19) = 0
triggerall = (command = "hold_x" || command = "hold_y")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
var(2) = ifelse(command = "hold_x",1100,1150)

;------------------------------------------------------------------------------
; ダウン回避
[State -1]
type = ChangeState
value = 3990
triggerall = movetype = H && life != 0
triggerall = (command = "x" && command = "a")
trigger1 = stateno = 4001 && Vel Y > 0 && Pos Y >= -20
trigger2 = stateno = 4006 && Vel Y > 0 && Pos Y >= -20
trigger3 = stateno = 4011 && Vel Y > 0 && Pos Y >= -20
trigger4 = stateno = 4016 && Vel Y > 0 && Pos Y >= -20
trigger5 = stateno = 4021 && Vel Y > 0 && Pos Y >= -20
trigger6 = stateno = 4026 && Vel Y > 0 && Pos Y >= -20
trigger7 = stateno = 4031 && Vel Y > 0 && Pos Y >= -20
trigger8 = stateno = 4036 && Vel Y > 0 && Pos Y >= -20
trigger9 = stateno = 4041 && Vel Y > 0 && Pos Y >= -20
trigger10 = stateno = 4046 && Vel Y > 0 && Pos Y >= -20
trigger11 = stateno = 4051 && Vel Y > 0 && Pos Y >= -20
trigger12 = stateno = 4056 && Vel Y > 0 && Pos Y >= -20
trigger13 = stateno = 4061 && Vel Y > 0 && Pos Y >= -20
trigger14 = stateno = 4066 && Vel Y > 0 && Pos Y >= -20
trigger15 = stateno = 4071 && Vel Y > 0 && Pos Y >= -20
trigger16 = stateno = 4076 && Vel Y > 0 && Pos Y >= -20
trigger17 = stateno = 4081 && Vel Y > 0 && Pos Y >= -20
trigger18 = stateno = 4086 && Vel Y > 0 && Pos Y >= -20
trigger19 = stateno = 4091 && Vel Y > 0 && Pos Y >= -20
trigger20 = stateno = 4096 && Vel Y > 0 && Pos Y >= -20
trigger21 = stateno = 4001 && Vel Y > 0 && Pos Y >= -20
trigger22 = stateno = 4006 && Vel Y > 0 && Pos Y >= -20
trigger23 = stateno = 4101 && Vel Y > 0 && Pos Y >= -20
trigger24 = stateno = 4106 && Vel Y > 0 && Pos Y >= -20
trigger25 = stateno = 4111 && Vel Y > 0 && Pos Y >= -20
trigger26 = stateno = 4116 && Vel Y > 0 && Pos Y >= -20
trigger27 = stateno = 4121 && Vel Y > 0 && Pos Y >= -20
trigger28 = stateno = 4156 && Vel Y > 0 && Pos Y >= -20
trigger29 = stateno = 4161 && Vel Y > 0 && Pos Y >= -20
trigger30 = stateno = 4166 && Vel Y > 0 && Pos Y >= -20
trigger31 = stateno = 4171 && Vel Y > 0 && Pos Y >= -20
trigger32 = stateno = 4176 && Vel Y > 0 && Pos Y >= -20
trigger33 = stateno = 4181 && Vel Y > 0 && Pos Y >= -20
trigger34 = stateno = 4186 && Vel Y > 0 && Pos Y >= -20
trigger35 = stateno = 4191 && Vel Y > 0 && Pos Y >= -20

;------------------------------------------------------------------------------
; 挑発
[State -1]
type = ChangeState
value = 195
triggerall = command = "s" && command != "holddown" && statetype = S
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = ctrl || (stateno = 101 && time >= 1)

;------------------------------------------------------------------------------
; しゃがみ弱パンチ
[State -1]
type = ChangeState
value = 400
triggerall = command = "x" && command = "holddown"
triggerall = statetype != A
trigger1 = AnimElem = 5, >= 3 && command = "holddown" && stateno = 400
trigger2 = AnimElem = 4, >= 3 && command = "holddown" && stateno = 410
trigger3 = AnimElem = 4, >= 3 && command = "holddown" && stateno = 200
trigger4 = AnimElem = 2, >= 3 && command = "holddown" && stateno = 201
trigger5 = AnimElem = 3, >= 3 && command = "holddown" && stateno = 211
trigger6 = ctrl || (stateno = 100 && time >= 3)
trigger7 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(19) = 0 && var(20) = 0 && var(21) = 0
trigger1 = command = "x" && command = "holddown"
var(21) = 400

[State -1]
type = varset
trigger1 = command = "x" && command = "holddown"
var(23) = 2

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(21) = 400 && var(19) = 0 && var(20) = 0
triggerall = (command = "hold_x" && command = "holddown")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = 400

;------------------------------------------------------------------------------
; しゃがみ弱キック
[State -1]
type = ChangeState
value = 410
triggerall = command = "a" && command = "holddown"
triggerall = statetype != A
trigger1 = AnimElem = 5, >= 3 && command = "holddown" && stateno = 400
trigger2 = AnimElem = 4, >= 3 && command = "holddown" && stateno = 410
trigger3 = AnimElem = 4, >= 3 && command = "holddown" && stateno = 200
trigger4 = AnimElem = 2, >= 3 && command = "holddown" && stateno = 201
trigger5 = AnimElem = 3, >= 3 && command = "holddown" && stateno = 211
trigger6 = ctrl || (stateno = 100 && time >= 3)
trigger7 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(19) = 0 && var(20) = 0 && var(21) = 0
trigger1 = command = "a" && command = "holddown"
var(21) = 410

[State -1]
type = varset
trigger1 = command = "a" && command = "holddown"
var(23) = 2

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(21) = 410 && var(19) = 0 && var(20) = 0
triggerall = (command = "hold_a" && command = "holddown")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = 410

;------------------------------------------------------------------------------
; しゃがみ強パンチ
[State -1]
type = ChangeState
value = 420
triggerall =  command = "holddown" && command = "y" && statetype != A
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(19) = 0 && var(20) = 0 && var(21) = 0
trigger1 = command = "y" && command = "holddown"
var(21) = 420

[State -1]
type = varset
trigger1 = command = "y" && command = "holddown"
var(23) = 2

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(21) = 420 && var(19) = 0 && var(20) = 0
triggerall = (command = "hold_y" && command = "holddown")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = 420

;------------------------------------------------------------------------------
; しゃがみ強キック
[State -1]
type = ChangeState
value = 430
triggerall =  command = "holddown" && command = "b" && statetype != A
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(19) = 0 && var(20) = 0 && var(21) = 0
trigger1 = command = "b" && command = "holddown"
var(21) = 430

[State -1]
type = varset
trigger1 = command = "b" && command = "holddown"
var(23) = 2

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(21) = 430 && var(19) = 0 && var(20) = 0
triggerall = (command = "hold_b" && command = "holddown")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = 430

;------------------------------------------------------------------------------
; Ｃ投げ
[State -1]
type = ChangeState
value = 900
triggerall = statetype != A && p2bodydist X < 15 && ctrl
triggerall = p2stateno != [140,153]
triggerall = command = "y"
triggerall = (command = "holdfwd" || command = "holdback") && command != "holddown"
trigger1 = stateno != 100 && p2statetype != A && p2movetype != H
trigger1 = p2stateno != 5120

;------------------------------------------------------------------------------
; 虚空閃
[State -1]
type = ChangeState
value = 800
triggerall = statetype != A && p2bodydist X < 15 && ctrl
triggerall = p2stateno != [140,153]
triggerall = command = "b"
triggerall = (command = "holdfwd" || command = "holdback") && command != "holddown"
trigger1 = stateno != 100 && p2statetype != A && p2movetype != H
trigger1 = p2stateno != 5120

;------------------------------------------------------------------------------
; 上段避け攻撃 [ノーキャンセル]
[State -1]
type = ChangeState
value = 300
triggerall = (P2Dist X >= 0 && command = "fwd_a") ^^ (P2Dist X < 0 && command = "back_a") 
triggerall = statetype != A
trigger1 = AnimElem = 2, >= 1 && AnimElem = 2, < 4 && stateno = 201
trigger2 = AnimElem = 3, >= 1 && AnimElem = 3, < 4 && stateno = 211
trigger3 = AnimElem = 4, >= 1 && AnimElem = 5, < 0 && stateno = 221
trigger4 = AnimElem = 5, >= 1 && AnimElem = 5, < 4 && stateno = 400
trigger5 = AnimElem = 4, >= 1 && AnimElem = 4, < 4 && stateno = 410
trigger6 = AnimElem = 4, >= 1 && AnimElem = 5, < 0 && stateno = 420
trigger7 = AnimElem = 5, >= 1 && AnimElem = 5, < 7 && stateno = 430
trigger8 = AnimElem = 9, >= 1 && AnimElem = 9, < 7 && stateno = 240

;------------------------------------------------------------------------------
; 上段避け攻撃 [ノーキャンセル]
[State -1]
type = ChangeState
value = 300
triggerall = (P2Dist X >= 0 && command = "fwd_a") ^^ (P2Dist X < 0 && command = "back_a") 
triggerall = statetype != A
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(19) = 0 && var(20) = 0 && var(21) = 0
trigger1 = P2Dist X >= 0 && (command != "holddown" && command != "a") && (command = "holdfwd" && command = "b")
trigger2 = P2Dist X < 0 && (command != "holddown" && command != "a") && (command = "holdback" && command = "b")
var(21) = 300

[State -1]
type = varset
trigger1 = P2Dist X >= 0 && (command != "holddown" && command != "a") && (command = "holdfwd" && command = "b")
trigger2 = P2Dist X < 0 && (command != "holddown" && command != "a") && (command = "holdback" && command = "b")
var(23) = 10

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(21) = 300 && var(19) = 0 && var(20) = 0
triggerall = command != "holddown" && (command = "hold_a")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
var(2) = ifelse(var(30) = 1,301,300)

;------------------------------------------------------------------------------
; 弱パンチ
[State -1]
type = ChangeState
value = 200
triggerall = command = "x" && command != "holddown"
triggerall = statetype != A
trigger1 = AnimElem = 5, >= 3 && command != "holddown" && stateno = 400
trigger2 = AnimElem = 4, >= 3 && command != "holddown" && stateno = 410
trigger3 = AnimElem = 4, >= 3 && command != "holddown" && stateno = 200
trigger4 = AnimElem = 2, >= 3 && command != "holddown" && stateno = 201
trigger5 = AnimElem = 3, >= 3 && command != "holddown" && stateno = 211
trigger6 = ctrl || (stateno = 100 && time >= 3)
trigger7 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(19) = 0 && var(20) = 0 && var(21) = 0
trigger1 = command = "x" && command != "x" && command != "holddown"
var(21) = 200

[State -1]
type = varset
trigger1 = command = "x" && command != "x" && command != "holddown"
var(23) = 2

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(21) = 200 && var(19) = 0 && var(20) = 0
triggerall = (command = "hold_x" && command != "holddown")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = 200

;------------------------------------------------------------------------------
; 強パンチ
[State -1]
type = ChangeState
value = 220
triggerall = command = "y" && statetype != A
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(19) = 0 && var(20) = 0 && var(21) = 0
trigger1 = command = "y" && command != "y" && command != "holddown"
var(21) = 220

[State -1]
type = varset
trigger1 = command = "y" && command != "y" && command != "holddown"
var(23) = 2

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(21) = 220 && var(19) = 0 && var(20) = 0
triggerall = (command = "hold_y" && command != "holddown")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = 220

;------------------------------------------------------------------------------
; 弱キック
[State -1]
type = ChangeState
value = 210
triggerall = command = "a"
triggerall = statetype != A
trigger1 = AnimElem = 5, >= 3 && command != "holddown" && stateno = 400
trigger2 = AnimElem = 4, >= 3 && command != "holddown" && stateno = 410
trigger3 = AnimElem = 4, >= 3 && command != "holddown" && stateno = 200
trigger4 = AnimElem = 2, >= 3 && command != "holddown" && stateno = 201
trigger5 = AnimElem = 3, >= 3 && command != "holddown" && stateno = 211
trigger6 = ctrl || (stateno = 100 && time >= 3)
trigger7 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(19) = 0 && var(20) = 0 && var(21) = 0
trigger1 = P2Dist X >= 0 && command != "holddown" && command != "a" && (command != "holdfwd" && command = "b")
trigger2 = P2Dist X < 0 && command != "holddown"&& command != "a" && (command != "holdback" && command = "b")
var(21) = 210

[State -1]
type = varset
trigger1 = P2Dist X >= 0 && command != "holddown" && command != "a" && (command != "holdfwd" && command = "b")
trigger2 = P2Dist X < 0 && command != "holddown"&& command != "a" && (command != "holdback" && command = "b")
var(23) = 2

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(21) = 210 && var(19) = 0 && var(20) = 0
triggerall = (command = "hold_a" && command != "holddown")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = 210

;------------------------------------------------------------------------------
; 強キック
[State -1]
type = ChangeState
value = 230
triggerall = command = "b" && statetype != A
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = ctrl || (stateno = 101 && time >= 1)

[State -1]
type = varset
triggerall = var(19) = 0 && var(20) = 0 && var(21) = 0
trigger1 = command = "b" && command != "x" && command != "holddown"
var(21) = 230

[State -1]
type = varset
trigger1 = command = "b" && command != "x" && command != "holddown"
var(23) = 2

[State -1]
type = varset
triggerall = command != "holdup"
triggerall = var(21) = 230 && var(19) = 0 && var(20) = 0
triggerall = (command = "hold_b" && command != "holddown")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = 230

;------------------------------------------------------------------------------
; 空中吹っ飛ばし攻撃
[State -1]
type = ChangeState
value = 640
trigger1 = (command = "hold_y" && command = "hold_b")
trigger1 = statetype = A && ctrl = 1 

;------------------------------------------------------------------------------
; ジャンプ弱パンチ
[State -1]
type = ChangeState
value = 600
trigger1 = command = "hold_x" && statetype = A && ctrl

;------------------------------------------------------------------------------
; ジャンプ弱キック
[State -1]
type = ChangeState
value = 610
trigger1 = command = "hold_a" && statetype = A && ctrl

;------------------------------------------------------------------------------
; ジャンプ強パンチ
[State -1]
type = ChangeState
value = 620
trigger1 = command = "hold_y" && statetype = A && ctrl

;------------------------------------------------------------------------------
; ジャンプ強キック
[State -1]
type = ChangeState
value = 630
trigger1 = command = "hold_b" && statetype = A && ctrl

;------------------------------------------------------------------------------
; ランニング
[State -1]
type = ChangeState
value = ifelse(P2Dist X < 0 && prevstateno = 52,105,100)
trigger1 = command != "FDF" && command = "FF"
trigger1 = command != "holddown" && statetype = S && ctrl

[State -1]
type = ChangeState
value = ifelse(P2Dist X < 0,105,100)
trigger1 = command != "FDF" && command != "FB" && command = "BF"
trigger1 = command != "holddown" && anim = 5 && prevstateno = 52

[State -1]
type = varset
trigger1 = command != "FDF" && command = "FF" && command != "holddown" 
var(40) = 2

[State -1]
type = varset
trigger1 = command != "FDF" && command = "FF" && command != "holddown" 
var(23) = 5

[State -1]
type = varset
triggerall = var(40) = 2
triggerall = command = "holdfwd"
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = ifelse(P2Dist X >= 0,100,105)

;------------------------------------------------------------------------------
; バックステップ
[State -1]
type = ChangeState
value = ifelse(P2Dist X < 0 && prevstateno = 52,100,105)
trigger1 = command != "BDB" && command = "BB"
trigger1 = command != "holddown" && statetype = S && ctrl

[State -1]
type = ChangeState
value = ifelse(P2Dist X < 0,100,105)
trigger1 = command != "FDF" && command != "BF" && command = "FB"
trigger1 = command != "holddown" && anim = 5 && prevstateno = 52

[State -1]
type = varset
trigger1 = command != "BDB" && command = "BB" && command != "holddown"
var(40) = 3

[State -1]
type = varset
trigger1 = command != "BDB" && command = "BB" && command != "holddown"
var(23) = 5

[State -1]
type = varset
triggerall = var(40) = 3
triggerall = command = "holdback"
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = ifelse(P2Dist X >= 0,105,100)

;------------------------------------------------------------------------------
; ロングジャンプ
[State -1]
type = varset
triggerall = stateno = [107,5000]
triggerall = command = "longjump"
trigger1 = ctrl = 0
trigger2 = stateno = 5120
trigger3 = stateno = 50 || stateno = 45
trigger4 = stateno = [600,640]
var(40) = 1

[State -1]
type = varset
trigger1 = stateno = 5120
var(40) = 1

[State -1]
type = varset
triggerall = var(8) != 0 && command = "longjump"
trigger1 = ctrl = 0
trigger2 = stateno = 5120
trigger3 = stateno = 50 || stateno = 45
trigger4 = stateno = [600,640]
var(40) = 1

[State -1]
type = varset
triggerall = command = "longjump"
trigger1 = ctrl = 0
trigger2 = stateno = 5120 || stateno = 50 || stateno = 45
trigger3 = stateno = [600,640]
var(23) = 5

[State -1]
type = varset
triggerall = var(40) = 1 && P2Dist X >= 0
triggerall = command = "holdup"
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
var(2) = 40

[State -1]
type = varset
triggerall = var(20) = 0
trigger1 = P2Dist X >= 0 && (command = "真空投げ")
var(20) = 1600

[State -1]
type = varset
trigger1 = P2Dist X >= 0 && (command = "真空投げ")
var(22) = 10

[State -1]
type = varset
triggerall = var(20) = 1600 && var(19) = 0
triggerall = (command = "hold_y")
trigger1 = movetype != H && animtime = 0
trigger2 = stateno = 0 || stateno = 2
trigger3 = stateno = 20 || stateno = 52
trigger4 = stateno = 10 || stateno = 11 || stateno = 12
trigger5 = var(30) = 1
trigger6 = stateno = 40
var(2) = 1600
