;==============================================================================
; Win版専用パート
;==============================================================================
;------------------------------------------------------------------------------
; ここはWin版から（正確にはLinux版から）追加された要素の二つ。
; コマンド関連の初期設定を任意に指定出来るようになった(`・ω・´)
;
;『ボタンリマップ』はボタン配置変更用の項目。
; 定義パートでいちいち変更しなくても良いようになっちゃった。
; 面倒臭い人用かな！（ﾏﾃｺﾗ
;
;『デフォルト設定』では各[Command]で省略した場合の
; 入力受付時間と入力記憶時間を予め決めておく項目。
;
;
; この２項目は省略可能。
;------------------------------------------------------------------------------
;-| ボタンリマップ（ボタンコンフィグ）|---------------------------------------- 第１部

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

;------------------------------------------------------------------------------
; 例えば「本来Ｘボタンで出す弱パンチをＢボタンに変えたい場合」なら、
;
; x = b
;
; で簡単に出来る。使わないボタンを使っているボタンに割り当てる事も可能。
;------------------------------------------------------------------------------
;-| デフォルト設定 |----------------------------------------------------------- 第２部

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

command.buffer.time = 1  ;標準のコマンド入力記憶時間。
                         ;入力した直後にコマンドを記憶し、
                         ;指を離してもコマンドが成功している状態を
                         ;ここで設定した時間の分維持する。
                         ;１～３０フレームまでの間で設定可能。
                         ;デフォルトは１フレーム。

;============================================================================== 第３部
; コマンド定義パート（入力キーを設定する）
;==============================================================================
;------------------------------------------------------------------------------
; ここがキーとボタンの組み合わせで格闘ゲームにおける
;『入力コマンド』を直接設定・編集するパート。
;
; 一つずつコマンドに名前を付けて入力キーを組み合わせる単純な作業になるけど、
; 組み合わせが独特だから覚えるのは難易度が少し高い。
;
; 下記で「書式の決まり」と「組み合わせに必要なアルファベットと記号」を
; 全て説明しましょう。
;------------------------------------------------------------------------------
;■書式の決まり■
;
; [Command]         ：入力コマンドを１個定義する。
; name = "***"      ：コマンド名を決める。大文字と小文字も区別される。
; command = ###     ：実際に入力するキーを組み合わせる。詳細は後述。
; time = &&&        ：入力受付時間を設定（オプション）。
; buffer.time = @@@ ：入力記憶時間を設定（オプション）。
;
; 小ネタでも説明している通り、登録が可能な数は最大『１２８個』まで。
;
;
;※『必須コマンド名』と書いてるコマンドは、システム側で処理してます。
;　コマンド名を変えたり、消してはいけません。キーの変更は出来ます。
;------------------------------------------------------------------------------
;■必要なアルファベットと記号■
;
; 上記の「command = ###」の『###』に該当する部分で、
; 組み合わせるキーとボタンを設定しなければならない。
;
; ※設定したキーやボタンはM.U.G.E.Nのオプションモードにある
;  「キーコンフィグ」にて設定したキーなどに対応しています。
;
; ★方向キー★（全て必ず大文字で）
;
; 　B 　：「後方」にキーを入れる（ Backward ）
; 　D 　：「下方」にキーを入れる（ Downward ）
; 　F 　：「前方」にキーを入れる（ Forward ）
; 　U 　：「上方」にキーを入れる（ Upward ）
;
; 　DB　：「後ろ斜め下」にキーを入れる（「D」と「B」が同時に入力された事を認識）
; 　UB　：「後ろ斜め上」にキーを入れる（「U」と「B」が同時に入力された事を認識）
; 　DF　：「前斜め下」にキーを入れる（「D」と「F」が同時に入力された事を認識）
; 　UF　：「前斜め上」にキーを入れる（「U」と「F」が同時に入力された事を認識）
;
; ★ボタン★（全て必ず小文字で）
;
; 　a 　：「Ａボタン」を押す
; 　b 　：「Ｂボタン」を押す
; 　c 　：「Ｃボタン」を押す
; 　x 　：「Ｘボタン」を押す
; 　y 　：「Ｙボタン」を押す
; 　z 　：「Ｚボタン」を押す
; 　s 　：「スタートボタン」を押す
;
; ★記号★（入力効果を変化させる命令）
;
; 　/ 　：（スラッシュ）キーやボタンを「押しっぱなし」にしている事を認識する場合に追加する
;
; 　　（例）：　/b       = Ｂボタンを押したままにする
; 　　　　　　　/F       = 前キーを押したままにする
; 　　　　　　　/U,z     = 上キーを押したままＺボタンを入力する
;
;　　━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
;
; 　~ 　：（チルダ）キーやボタンが「離された時」を認識する場合に追加する
;
; 　　（例）：　~x       = Ｘボタンを離す
; 　　　　　　　~DF      =「前斜め下」のキーを離す
; 　　　　　　　~DB,F,c  =「後ろ斜め下」を離した後に前キー・Ｃボタンの順番に入力する
;
; 　　　　　　※「ボタンを離すまでの時間（溜め時間）」も設定する事が出来る
;
; 　　　　　　　~30x     = Ｘボタンを押したままにして、３０フレーム以上経ったら離す
; 　　　　　　　~50B,F,a = 後ろキーを５０フレームまで溜めて前キー・Ａボタンの順番に入力する
;
;　　━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
;
; 　$ 　：（ドル）方向キーの「複数の内どれかが入力されている事」を認識する場合に追加する
;
; 　　（例）：　$B       =「後方」「後ろ斜め下」「後ろ斜め上」のどれかが入力されている状態
; 　　　　　　　$UF      =「前」「上」「前斜め上」のどれかが入力されている状態
;
; 　　　　　　※この記号は「方向キー」でしか使えません。
;
;　　━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
;
; 　+ 　：（プラス）ボタンを「同時押し」している事を認識する場合に追加する
;
; 　　（例）：　x+y      = ＸボタンとＹボタンを同時押しする
; 　　　　　　　a+b+c    = ＡボタンとＢボタンとＣボタンを同時押しする
;
; 　　　　　　※この記号は「ボタン」でしか使えません。
;
;　　━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
;
; 　> 　：（グレーターザン）大なり（Win版で追加された記号）
; 　　　　　　　　　　　　「他のキーが入力されていない事を確認して、そのキーを押す」場合
;
; 　　（例）：　a,>~a    = Ａボタン以外が入力されていない状態でＡボタンを離す
; 　　　　　　　F,>~F,>F = 前キー以外が入力されていない状態で前キーを離し、
;　　　　　　　　　　　　　もう一度前キーを入力する
;
;-------------------------------------------------------------------------------
; ●これらの記号は全て組み合わせて使う事が出来る●
;
; 　　（例）：　~80$DB,DF,F,/a+y+c
; 　　　　　　　
; 　　　　　　「後方」「下」「後ろ斜め下」のどれかを８０フレームまで溜めて
; 　　　　　　「前斜め下」→「前」を入力した後、ＡとＹとＣを同時押ししたままにする
;
;------------------------------------------------------------------------------
;-| 超必殺技 |-----------------------------------------------------------------

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

[Command]
name = "リヴィングランサー"
command = ~F, DF, D, DB, B, F, x
time = 20

[Command]
name = "リヴィングランサー"
command = ~F, DF, D, DB, B, F, ~x
time = 20


[Command]
name = "ミカエルソードⅢ"
command = ~F, DF, D, DB, B, F, c
time = 20

[Command]
name = "ミカエルソードⅢ"
command = ~F, DF, D, DB, B, F, ~c
time = 20

;------------------------------------------------------------------------------
;-| 必殺技 |-------------------------------------------------------------------
[Command]
name="キル・トゥ・サバイブ"
command=~F, D, DF, x
time=20

[Command]
name="キル・トゥ・サバイブ"
command=~F, D, DF, ~x
time=20

[Command]
name = "ペイツ・モーテル"
command = ~D, DF, F, c

[Command]
name = "ペイツ・モーテル"
command = ~D, DF, F, ~c


[Command]
name = "クレセント"
command = ~D, DB, B, c

[Command]
name = "クレセント"
command = ~D, DB, B, ~c

[Command]
name = "残像"
command = ~D, DB, B, a

[Command]
name = "残像"
command = ~D, DB, B, ~a

[Command]
name = "ハールート＆マールート"
command = ~D, DB, B, x

[Command]
name = "ハールート＆マールート"
command = ~D, DB, B, ~x

[Command]
name = "ミカエルソードⅡ"
command = ~D, DF, F, x

[Command]
name = "ミカエルソードⅡ"
command = ~D, DF, F, ~x

[Command]
name = "マリア＆ソフィア"
command = ~D, DF, F, b

[Command]
name = "マリア＆ソフィア"
command = ~D, DF, F, ~b


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

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

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

[Command]
name = "highjump"
command = D, $U
time = 8

[Command]
name = "highjump_n"
command = D, U
time = 8

[Command]
name = "highjump_f"
command = D, UF
time = 8

[Command]
name = "highjump_b"
command = D, UB
time = 8

[Command]
name = "highjumpcancel"
command = U, D, U
time = 20
;------------------------------------------------------------------------------
;-| 同時押し |-----------------------------------------------------------------

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

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

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

[Command]
name = "down_b"
command = /$D,b
time = 1

[Command]
name = "down_c"
command = /$D,c
time = 1

[Command]
name = "fwd_a"
command = /F,a
time = 1

[Command]
name = "fwd_x"
command = /F,x
time = 1

[Command]
name = "fwd_b"
command = /F,b
time = 1

[Command]
name = "fwd_c"
command = /F,c
time = 1

[Command]
name = "back_a"
command = /B,a
time = 1

[Command]
name = "back_b"
command = /B,b
time = 1

[Command]
name = "back_x"
command = /B,x
time = 1

[Command]
name = "back_c"
command = /B,c
time = 1

;------------------------------------------------------------------------------
;-| ボタン単発 |---------------------------------------------------------------

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

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

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

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

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

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

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

;---------------------------
;(「パワー溜め」用にコマンドを追加してます)
[Command]
name = "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

;============================================================================== 第４部
; ステートエントリーパート（技などを出せるようにするための条件を設定）
;==============================================================================
;------------------------------------------------------------------------------
; コマンド名と入力するコマンドを設定しただけじゃ意味が無いので、ここから
;「実際に入力したコマンドでどの番号のステートをどういう条件で出せるか」
; を決めなければならない。
;
; ステートコントローラ「ChangeState」しか使わないけど、
; そんなに難しくないのでトリガーを覚えてたらすぐ出来る。
;
; ここさえ押さえておけば簡単なトリガー設定の流れは覚えられるかと。
;
; エントリーの順番にはある程度の法則があるけど、
; おまけフォルダの「小ネタ.txt」を参照。（波動拳が暴発ﾅﾝﾀﾗｶﾝﾀﾗ）
;
; ChangeStateなどステートコントローラの基本的な設置例は
; おまけフォルダの「テンプレート.txt」を参照。
;------------------------------------------------------------------------------
; ■準常時監視ステート（－１）■
; コマンドファイル（のステートエントリーパート）に必要な項目です。
; 絶対に消してはいけないので要注意。
;
; 通常の食らい状態以外の「P2StateNo」や「TargetState」等で制御された、
; 作成者が任意に指定した相手側の食らいステートに限り、
; 登録したステートコントローラが有効にはなりません。
;------------------------------------------------------------------------------

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

;==============================================================================
; 超必殺技
;==============================================================================
[State -1, 3200,リヴィングランサー]
type = ChangeState
value = 3200
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = var(25) = 0
triggerall = power >= 500
triggerall = command = "リヴィングランサー"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = stateno = 101
trigger4 = stateno = 40 || stateno = 52
trigger5 = stateno = [200,211]
trigger5 = movecontact
trigger6 = stateno = 250
trigger6 = movecontact
trigger7 = stateno = [400,440]
trigger7 = movecontact
;------------------------------------------------------------------------------
[State -1, 3100,ミカエルソードⅢ]
type = ChangeState
value = 3100
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = var(25) = 0
triggerall = power >= 500
triggerall = command = "ミカエルソードⅢ"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = anim = 1000
trigger2 = animelemtime(3) >= 2
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [200,220]
trigger6 = stateno != 218
trigger6 = movecontact
trigger7 = stateno = [400,440]
trigger7 = movecontact
;==============================================================================
; 必殺技
;==============================================================================
[State -1, 3000]
type = ChangeState
value = 3000
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = var(25) = 0
triggerall = power >= 250
triggerall = command = "キル・トゥ・サバイブ"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = var(3) = 0
trigger2 = (stateno = [200,430]) && movecontact
trigger2 = stateno != [215,225]
trigger2 = stateno != [255,256]
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

;------------------------------------------------------------------------------
[State -1,ペイツ・モーテル]
type = ChangeState
value = 3050
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = power >= 250
triggerall = command = "ペイツ・モーテル"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,640]
trigger2 = movecontact
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)
trigger4 = stateno = 1003 && movehit
trigger5 = stateno = [1309,1310]

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

[State -1,クレセント・ロー]
type = ChangeState
value = 1000
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "クレセント"
trigger1 = statetype != A
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = anim = 1000
trigger2 = animelemtime(3) >= 2
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [200,220]
trigger6 = stateno != 218
trigger6 = movecontact
trigger7 = stateno = [400,440]
trigger7 = movecontact

[State -1, クレセント・ライズ]
type = ChangeState
value = 1001
triggerall = command = "クレセント"
trigger1 = stateno = 1000 && movecontact

[State -1, クレセント・ハイ]
type = ChangeState
value = 1003
triggerall = command = "クレセント"
trigger1 = stateno = 1001 && movecontact
;------------------------------------------------------------------------------
[State -1,残像]
type = ChangeState
value = 1100
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "残像"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = stateno = 101
trigger4 = stateno = 40 || stateno = 52
trigger5 = stateno = [200,211]
trigger5 = movecontact
trigger6 = stateno = [400,430]
trigger6 = movecontact

;------------------------------------------------------------------------------
[State -1,ハールート]
type = ChangeState
value = 1200
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "ハールート＆マールート"
trigger1 = statetype != A
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = stateno = 101
trigger4 = stateno = 40 || stateno = 52
trigger5 = stateno = [200,211]
trigger5 = movecontact
trigger6 = stateno = 250
trigger6 = movecontact
trigger7 = stateno = [400,430]
trigger7 = movecontact

[State -1, マールート]
type = ChangeState
value = 1201
triggerall = command = "ハールート＆マールート"
trigger1 = stateno = 1200
trigger1 = time >= 9

[State -1, ミカエルソードⅡ]
type = ChangeState
value = 1202
triggerall = command = "ミカエルソードⅡ"
trigger1 = stateno = 1201
trigger1 = time = [7,19]
;------------------------------------------------------------------------------
[State -1,マリア]
type = ChangeState
value = 1300
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "マリア＆ソフィア"
trigger1 = statetype != A
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = anim = 1000
trigger2 = animelemtime(3) >= 2
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [200,220]
trigger6 = stateno != 218
trigger6 = movecontact
trigger7 = stateno = [400,440]
trigger7 = movecontact
;------------------------------------------------------------------------------
[State -1,ソフィア]
type = ChangeState
value = 1350
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "マリア＆ソフィア"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,650]
trigger2 = stateno != 640
trigger2 = movecontact
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)
trigger4 = stateno = 1003 && movehit
trigger5 = stateno = 1309
;==============================================================================
; 移動関連
;==============================================================================
;------------------------------------------------------------------------------

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

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

;==============================================================================
; 特殊技
;==============================================================================
[State -1,ガードキャンセル前転]
type = ChangeState
value = 700
triggerall = var(59) <= 0
triggerall = !ishelper
triggerall = command = "holdfwd"
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = Stateno = [150,153]
;---------------------------------------------------------------------------
[State -1, 空中投げ]
type = ChangeState
value = 850
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = statetype = A
triggerall = ctrl
triggerall = p2bodydist X < 56
triggerall = p2bodydist Y > -80
triggerall = p2bodydist Y < 20
triggerall = p2statetype = A
triggerall = p2movetype != H
trigger1 = command = "fwd_c"
trigger2 = command = "back_c"
;------------------------------------------------------------------------------
[State 投げ]
type = ChangeState
value = 800
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = statetype = S
triggerall = stateno != 100
triggerall = p2bodydist X < 22
triggerall = p2statetype != A
triggerall = p2statetype != L
triggerall = p2stateno != 40
triggerall = command = "fwd_c"
trigger1 = ctrl
trigger2 = stateno = 101
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 52
[State 投げ]
type = ChangeState
value = 805
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = statetype = S
triggerall = stateno != 100
triggerall = p2bodydist X < 22
triggerall = p2statetype != A
triggerall = p2statetype != L
triggerall = p2stateno != 40
triggerall = command = "back_c"
trigger1 = ctrl
trigger2 = stateno = 101
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 52

;------------------------------------------------------------------------------
[State -1,６Ａ]
type = ChangeState
value = 205
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "back_a"
triggerall = p2dist x < 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]

[State -1,６Ａ]
type = ChangeState
value = 205
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = (command = "fwd_a")||((!movecontact&&(stateno!=[950,961]))&&(command = "a"&&command="holdfwd"&&command!="holddown"))
triggerall = p2dist x >= 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [200,221])||(stateno = [400,410])
trigger2 = stateno != [205,206]
trigger2 = stateno != [215,218]
trigger2 = movecontact
trigger3 = stateno = [100, 101]
trigger4 = stateno = [195, 197]
trigger4 = time > ifelse((anim=196||anim=198),18,64)
trigger5 = stateno = 12||stateno = 52

trigger6 = stateno = 200
trigger6 = time >= 5+(var(58)=2)*2
trigger7 = stateno = 400
trigger7 = time >= 6

[State -1,６Ｂ]
type = ChangeState
value = 215
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "back_b"
triggerall = p2dist x < 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]

[State -1,６Ｂ]
type = ChangeState
value = 215
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = (command = "fwd_b")||((!movecontact&&(stateno!=[950,961]))&&(command = "b"&&command="holdfwd"&&command!="holddown"))
triggerall = p2dist x >= 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))

trigger2 = stateno = 200||stateno = 205||stateno = 206||stateno = 210||stateno = 211
trigger2 = movecontact
trigger3 = stateno = 400
trigger3 = movecontact

trigger4 = stateno = 235
trigger4 = movecontact

trigger5 = stateno = [100, 101]
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)
trigger7 = stateno = 12||stateno = 52

[State -1,６Ｃ]
type = ChangeState
value = 225
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "back_c"
triggerall = p2dist x < 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]

[State -1,６Ｃ]
type = ChangeState
value = 225
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = (command = "fwd_c")||((!movecontact&&(stateno!=[950,961]))&&(command = "c"&&command="holdfwd"&&command!="holddown"))
triggerall = p2dist x >= 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [205,206]
trigger2 = movecontact
trigger3 = stateno = 440
trigger3 = movecontact
trigger4 = stateno = [100, 101]
trigger5 = stateno = [195, 197]
trigger5 = time > ifelse((anim=196||anim=198),18,64)
trigger6 = stateno = 12||stateno = 52

[State -1,６Ｄ]
type = ChangeState
value = 255
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "back_x"
triggerall = p2dist x < 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]

[State -1,６Ｄ]
type = ChangeState
value = 255
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = (command = "fwd_x")||((!movecontact&&(stateno!=[950,961]))&&(command = "x"&&command="holdfwd"&&command!="holddown"))
triggerall = p2dist x >= 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 250
trigger3 = movecontact
trigger4 = stateno = [100, 101]
trigger5 = stateno = [195, 197]
trigger5 = time > ifelse((anim=196||anim=198),18,64)
trigger6 = stateno = 12||stateno = 52

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

[State -1, 立ちA]
type = ChangeState
value = 200
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 6
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = 410||stateno = 430
trigger6 = movecontact
trigger7 = stateno = 200
trigger7 = time >= 5

[State -1, 立ちB]
type = ChangeState
value = 210
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = 410||stateno = 430
trigger6 = movecontact

[State -1, 立ちC]
type = ChangeState
value = 220
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [200,430]) && movecontact
trigger2 = stateno != 218
trigger2 = stateno != 225
trigger2 = stateno != 250
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52

[State -1, 立ちD]
type = ChangeState
value = 250
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 100
trigger3 = stateno = 101
trigger4 = stateno = 40 || stateno = 52



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

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

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

[State -1, しゃがみA]
type = ChangeState
value = 410
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = 200||stateno = 210
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
trigger4 = stateno = [100, 101]
trigger5 = stateno = 12||stateno = 52
trigger6 = stateno = 200
trigger6 = time >= 5

[State -1, しゃがみB]
type = ChangeState
value = 430
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200||stateno = 210
trigger2 = movecontact
trigger3 = stateno = 410
trigger3 = movecontact 
trigger4 = stateno = [100, 101]
trigger5 = stateno = 12||stateno = 52

[State -1, しゃがみC]
type = ChangeState
value = 440
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = [200,220]) && movecontact
trigger2 = stateno != 218
trigger3 = (stateno = 410) || (stateno = 430)
trigger3 = movecontact 
trigger4 = stateno = [100, 101]
trigger5 = stateno = 12||stateno = 52

[State -1, しゃがみD]
type = ChangeState
value = 450
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 250
trigger2 = movecontact 
trigger3 = stateno = [100, 101]
trigger4 = stateno = 12||stateno = 52

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

[State -1, ジャンプA]
type = ChangeState
value = 600
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,610])
trigger2 = movecontact
trigger3 = (stateno = 110 && time >= 2) || (stateno = 115 && time >= 3)
trigger4 = stateno = 99 && prevstateno = 610
trigger5 = stateno = [1309,1310]

[State -1, ジャンプB]
type = ChangeState
value = 610
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = 600
trigger2 = movecontact
trigger3 = stateno = 640
trigger3 = movecontact
trigger4 = (stateno = 110 && time >= 2) || (stateno = 115 && time >= 3)
trigger5 = stateno = 99 && prevstateno = 610
trigger6 = stateno = [1309,1310]

[State -1, ジャンプ2B]
type = ChangeState
value = 615
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610
trigger2 = movecontact
trigger3 = (stateno = 110 && time >= 2) || (stateno = 115 && time >= 3)
trigger4 = stateno = 99 && prevstateno = 610
trigger5 = stateno = [1309,1310]

[State -1, ジャンプC]
type = ChangeState
value = 640
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,630])
trigger2 = stateno != [615,617]
trigger2 = movecontact
trigger3 = (stateno = 110 && time >= 2) || (stateno = 115 && time >= 3)
trigger4 = stateno = 99 && prevstateno = 610
trigger5 = stateno = [1309,1310]

[State -1, ジャンプD]
type = ChangeState
value = 650
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = 610
trigger2 = movecontact
trigger3 = (stateno = 110 && time >= 2) || (stateno = 115 && time >= 3)
trigger4 = stateno = 99 && prevstateno = 610
trigger5 = stateno = [1309,1310]

;---------------------------------------------------------------------------
[State 空中ダッシュ]
type = ChangeState
value = 110
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = statetype = A
triggerall = command = "FF"
triggerall = pos y <= -1
trigger1 = ((stateno = [50,59])||(stateno = [120,140])) && ctrl
;trigger1 = var(13) < 2
trigger2 = ((stateno = [5200,5210]) || stateno = 5040) && ctrl
trigger3 = stateno = 241
;trigger3 = var(13) < 2
trigger4 = stateno = [610,650]
trigger4 = stateno != [615,617]
trigger4 = movecontact
trigger5 = stateno = [1309,1310]
;---------------------------------------------------------------------------
[State 空中ダッシュ]
type = ChangeState
value = 115
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = statetype = A
triggerall = command = "BB"
triggerall = pos y <= -1
trigger1 = ((stateno = [50,59])||(stateno = [120,140])) && ctrl
;trigger1 = var(13) < 2
trigger2 = ((stateno = [5200,5210]) || stateno = 5040) && ctrl
trigger3 = stateno = 241
;trigger3 = var(13) < 2
trigger4 = stateno = [610,650]
trigger4 = stateno != [615,617]
trigger4 = movecontact
trigger5 = stateno = [1309,1310]
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
