;==============================================================================
; Win版専用パート
;==============================================================================
;------------------------------------------------------------------------------
;-| ボタンリマップ（ボタンコンフィグ）|---------------------------------------- 

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

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

[Defaults]
command.time = 20  ;標準のコマンド入力受付時間。
                   ;各コマンドで省略している場合に有効。
                   ;このパラメータを消した場合、デフォルトは１フレームになる。
                   ;（　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
; 　　　　　　　
; 　　　　　　「後方」「下」「後ろ斜め下」のどれかを８０フレームまで溜めて
; 　　　　　　「前斜め下」→「前」を入力した後、ＡとＹとＣを同時押ししたままにする
;
;-| AP |--------------------------------------------------------
[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1
;-| Super Motions |--------------------------------------------------------
[Command]
name = "KIKANSYA"
command = a+b
time = 1

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

[Command]
name = "YUUJYOUPOWER"
command = a+x
time = 1

[Command]
name = "DORAYAKIN"
command = a+c
time = 1

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

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

;==============================================================================
;-| AIセット |-----------------------------------------------------------------
[Command]
name = "AI0"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI1"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI2"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI3"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI4"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI5"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI6"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI7"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI8"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI9"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI10"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI11"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI12"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI13"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI14"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI15"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI16"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI17"
command = a,B,c,x,y,z,s,B,D,F,U,a,b,c,x,y,z,s,s
time = 0
[Command]
name = "AI18"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI19"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI20"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI21"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI22"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI23"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI24"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI25"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI26"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI27"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI28"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI29"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI30"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI31"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI32"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI33"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI34"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI35"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI36"
command = z,z,z,z,z,z,a,a,a,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI37"
command = z,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,z,z,z
time = 0
[Command]
name = "AI38"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z
time = 0
[Command]
name = "AI39"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI40"
command = z,z,z,z,a,a,a,z,z,z,z,a,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI41"
command = z,z,z,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z,z
time = 0
[Command]
name = "AI42"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI43"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,a,a,z
time = 0
[Command]
name = "AI44"
command = z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,a,a,a,z
time = 0
[Command]
name = "AI45"
command = z,z,z,z,z,z,a,a,z,z,z,z,z,a,a,a,a,z,z
time = 0
[Command]
name = "AI46"
command = z,z,z,z,z,z,z,z,a,a,a,a,a,a,z,z,z,z,z
time = 0
[Command]
name = "AI47"
command = z,z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI48"
command = z,z,z,z,z,a,a,a,z,z,z,a,a,a,z,z,a,z,a
time = 0
[Command]
name = "AI49"
command = z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z,z
time = 0
[Command]
name = "AI50"
command = z,z,z,a,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI51"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,x
time = 0
[Command]
name = "AI52"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,x
time = 0
[Command]
name = "AI53"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI54"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,x
time = 0
[Command]
name = "AI55"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,x
time = 0
[Command]
name = "AI56"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,x
time = 0
[Command]
name = "AI57"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,x
time = 0
[Command]
name = "AI58"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,x
time = 0
[Command]
name = "AI59"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,x
time = 0
[Command]
name = "AI60"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,x
time = 0
;-| Hissatu Motions |--------------------------------------------------------

[Command]
name = "door"
command = /F,a

[Command]
name = "neji"
command = /F,b
[Command]
name = "kaminari"
command = /F,c

[Command]
name = "korobasiya"
command = /F,x

[Command]
name = "yari"
command = /F,y

[Command]
name = "hirari"
command = /F,z

[Command]
name = "kibidango"
command = /B,a

[Command]
name = "minidora"
command = /B,b

[Command]
name = "turibori"
command = /B,c

[Command]
name = "syabon"
command = /B,x
time = 10

[Command]
name = "shock"
command = /B,y

[Command]
name = "mhand"
command = /B,z

[Command]
name = "SUTORO"
command = /D,c
time = 1
;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"       ;Required (do not remove)
command = F, F
time = 20

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

[Command]
name = "BB"       ;Required (do not remove)
command = B, B
time = 10

[Command]
name = "bob"
command = ~F,B,a
time = 10

[Command]
name = "doraneko"
command = ~B,F,z
time = 10

[Command]
name = "DORAMI"       ;Required (do not remove)
command = ~B,F,x
time = 10

[Command]
name = "SUNE"       ;Required (do not remove)
command = ~B,F,y
time = 10

[Command]
name = "JAI"       ;Required (do not remove)
command = ~B,F,b
time = 10

[Command]
name = "SIZU"       ;Required (do not remove)
command = ~B,F,c
time = 10

[Command]
name = "NOBI"       ;Required (do not remove)
command = ~B,F,a
time = 10

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery" ;Required (do not remove)
command = a

[Command]
name = "recovery" ;Required (do not remove)
command = b

[Command]
name = "recovery" ;Required (do not remove)
command = c

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

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

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "fwd_a"
command = /F,a
time = 1

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

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

[Command]
name = "downfwd_a"
command = /DF,a
time = 1

[Command]
name = "downfwd_b"
command = /DF,b
time = 1

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

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

[Command]
name = "back_c"
command = /B,c
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_ab"
command = /F, a+b
time = 1

[Command]
name = "back_ab"
command = /B, a+b
time = 1

;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

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

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

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

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

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

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

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd"  ;Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback" ;Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup"   ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown" ;Required (do not remove)
command = /$D
time = 1


[command]
name="fwd"
command=F
time=1
[command]
name="back"
command=B
time=1
[command]
name="up"
command=U
time=1
[command]
name="down"
command=D
time=1
; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]

;---------------------------------------------------------------------------
;
[State -1]
type = VarSet
triggerall = RoundState = [0,2]
trigger1 = command = "AP"
trigger1 = Var(10) != 1
v = 10
value = 1

[State -1]
type = VarSet
triggerall = RoundState = [0,2]
trigger1 = command = "AP2"
trigger1 = Var(10) != 2
v = 10
value = 2
;---------------------------------------------------------------------------
;===========================================================================
;DORAYAKIN
[State -1]
type = ChangeState
value = 3200
triggerall = command = "DORAYAKIN"
triggerall = power >= 1000
triggerall = power < 2000
triggerall = numhelper(3200) = 0
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = hitdefattr = A,NA
trigger2 = movecontact = 1
;===========================================================================
;DORAYAKIN1.5
[State -1]
type = ChangeState
value = 3220
triggerall = command = "DORAYAKIN"
triggerall = power >= 2000
triggerall = power < 3000
triggerall = numhelper(3200) = 0
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = hitdefattr = A,NA
trigger2 = movecontact = 1
;===========================================================================
;DORAYAKIN2.0
[State -1]
type = ChangeState
value = 3240
triggerall = command = "DORAYAKIN"
triggerall = power >= 3000 || power = powermax 
triggerall = numhelper(3200) = 0
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = hitdefattr = A,NA
trigger2 = movecontact = 1

[State -1]
type = ChangeState
value = 1020
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numprojID(0) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X >= 150

[State -1]
type = ChangeState
value = 230
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numhelper(230) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X >= 150

[State -1]
type = ChangeState
value = 240
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numhelper(240) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X >= 150
trigger1 = P2BodyDist Y < -80

[State -1]
type = ChangeState
value = 250
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numhelper(250) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X >= 150
;===========================================================================
[State -1]
type = ChangeState
value = 1700
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numprojID(1700) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X >= 150
trigger1 = P2BodyDist Y < -80
;===========================================================================
[State -1]
type = ChangeState
value = 1800
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numprojID(1800) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X >= 150
;===========================================================================
[State -1]
type = ChangeState
value = 1900
trigger1 = Var(10) > 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X >= 50
trigger1 = P2stateno = 130
;===========================================================================
[State -1]
type = ChangeState
value = 2500
trigger1 = Var(10) > 0
trigger1 = random < 150
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X < 150
trigger1 = P2BodyDist X > 100

[State -1]
type = ChangeState
value = 2600
trigger1 = Var(10) > 0
trigger1 = random < 200
trigger1 = numhelper(2600) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X >= 20
trigger1 = P2BodyDist X <= 80
trigger1 = P2BodyDist Y < -80
[State -1]
type = ChangeState
value = 420
trigger1 = Var(10) > 0
trigger1 = random < 200
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X >= 0
trigger1 = P2BodyDist X <= 50
trigger1 = P2BodyDist Y < -50
;---------------------------------------------------------------------------
;
[State -1]
type = ChangeState
value = 210
triggerall = statetype != A
triggerall = Var(10) > 0
trigger1 = (P2stateno = 0 || P2stateno = 10 || P2stateno = 11 || P2stateno = 12)
trigger1 = P2BodyDist X < 50
trigger1 = P2BodyDist X >= 10
trigger1 = ctrl = 1
trigger1 = P2Life > 0

[State -1]
type = ChangeState
value = 200
triggerall = statetype != A
trigger1 = Var(10) = 1
trigger1 = (P2stateno = 0 || P2stateno = 10 || P2stateno = 11 || P2stateno = 12)
trigger1 = P2BodyDist X < 10
trigger1 = P2BodyDist X >= 4
trigger1 = ctrl = 1
trigger1 = P2Life > 0

[State -1]
type = ChangeState
value = 900
triggerall = statetype != A
triggerall = P2statetype != A
triggerall = Var(10) > 0
triggerall = ctrl = 1
trigger1 = stateno != 100
trigger1 = p2bodydist X < 4
trigger1 = p2statetype = S
trigger1 = p2movetype != H

[State -1]
type = ChangeState
value = 400
triggerall = statetype != A
trigger1 = Var(10) = 2
trigger1 = (P2stateno = 0 || P2stateno = 10 || P2stateno = 11 || P2stateno = 12)
trigger1 = P2BodyDist X < 20
trigger1 = ctrl = 1
trigger1 = P2Life > 0

;===========================================================================
;KIKANSYA
[State -1]
type = ChangeState
value = 3400
triggerall = command = "KIKANSYA"
triggerall = power >= 1000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;URADORAMAN
[State -1]
type = ChangeState
value = 3500
triggerall = command = "URADORA"
triggerall = power >= 1000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;Superwaza A
[State -1]
type = ChangeState
value = 3000
triggerall = command = "YUUJYOUPOWER"
triggerall = power >= 1000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
triggerall = numprojID(1100) = 0
triggerall = numprojID(1110) = 0
triggerall = numprojID(1120) = 0
triggerall = numprojID(1130) = 0
triggerall = numprojID(1140) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;NANKANAIKA
[State -1]
type = ChangeState
value = 3100
triggerall = command = "NANKANAIKA"
triggerall = power >= 1000
triggerall = power < 2000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;NANKANAIKA2
[State -1]
type = ChangeState
value = 3110
triggerall = command = "NANKANAIKA"
triggerall = power >= 2000
triggerall = power < 3000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;NANKANAIKA3
[State -1]
type = ChangeState
value = 3120
triggerall = command = "NANKANAIKA"
triggerall = power >= 3000 || power = powermax 
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;JYAI
[State -1]
type = ChangeState
value = 3301
triggerall = stateno != 3400
triggerall = command = "TOMODACHI"
triggerall = power >= 1000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
triggerall = numhelper(3300) = 0
triggerall = numhelper(3310) = 0
triggerall = numhelper(3320) = 0
triggerall = numhelper(3330) = 0
;triggerall = numhelper(3340) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;HELP
[State -1]
type = ChangeState
value = 1140
triggerall = numprojID(1140) = 0
trigger1 = command = "DORAMI"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;HELP
[State -1]
type = ChangeState
value = 1130
triggerall = numprojID(1130) = 0
trigger1 = command = "SUNE"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;HELP
[State -1]
type = ChangeState
value = 1120
triggerall = numprojID(1120) = 0
trigger1 = command = "JAI"
trigger1 = statetype = S
trigger1 = ctrl = 1
;===========================================================================
;DORANEKO
[State -1]
type = ChangeState
value = 2700
triggerall = command = "doraneko"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;BOMB
[State -1]
type = ChangeState
value = 252
trigger1 = command = "bob"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;HELP
[State -1]
type = ChangeState
value = 1110
triggerall = numprojID(1110) = 0
trigger1 = command = "SIZU"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;HELP
[State -1]
type = ChangeState
value = 1100
triggerall = numprojID(1100) = 0
trigger1 = command = "NOBI"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;投げ
[State -1]
type = ChangeState
value = 900
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = command = "fwd_a"
trigger1 = p2bodydist X < 30
;===========================================================================
;シャボン
[State -1]
type = ChangeState
value = 1700
triggerall = command = "syabon"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
;===========================================================================
;シャボン
[State -1]
type = ChangeState
value = 1701
triggerall = command = "syabon"
trigger1 = statetype = A
trigger1 = ctrl = 1
;===========================================================================
;ショックガン
[State -1]
type = ChangeState
value = 1800
triggerall = command = "shock"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
;===========================================================================
;ショックガン-空
[State -1]
type = ChangeState
value = 1801
triggerall = command = "shock"
trigger1 = statetype = A
trigger1 = ctrl = 1
;===========================================================================
;Hissatu E
[State -1]
type = ChangeState
value = 1900
triggerall = command = "mhand"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact

;===========================================================================
;door
[State -1]
type = ChangeState
value = 2100
triggerall = command = "door"
trigger2 = stateno = [150,151];ガードカウンター
triggerall = statetype = S
trigger1 = ctrl = 1
;===========================================================================
;neji
[State -1]
type = ChangeState
value = 2200
triggerall = command = "neji"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
trigger3 = stateno = 2300
trigger3 = movecontact = 1
;===========================================================================
;kaminari
[State -1]
type = ChangeState
value = 2300
triggerall = command = "kaminari"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact

;===========================================================================
;korobasiya
[State -1]
type = ChangeState
value = 2400
triggerall = command = "korobasiya"
triggerall = numhelper(2400) <= 3
triggerall = Life > 10
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
;===========================================================================
;Hirari
[State -1]
type = ChangeState
value = 2000
triggerall = command = "hirari"
triggerall = numhelper(2000) = 0
trigger2 = stateno = [150,151];ガードカウンター
triggerall = statetype = S
trigger1 = ctrl = 1
;===========================================================================
;Hirari
[State -1]
type = ChangeState
value = 2001
triggerall = command = "hirari"
triggerall = numhelper(2000) = 0
trigger1 = statetype = A
trigger1 = ctrl = 1

;===========================================================================
;yari
[State -1]
type = ChangeState
value = 2500
triggerall = command = "yari"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
trigger3 = stateno = 2300
trigger3 = movecontact = 1
;---------------------------------------------------------------------------
;AirDASH
[State -1]
type = ChangeState
value = 101
trigger1 = command = "FF"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;RunFwd
[State -1]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;RunBack
[State -1]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl = 1
;===========================================================================
;Hissatu A
[State -1]
type = ChangeState
value = 1500
triggerall = command = "kibidango"
triggerall = numhelper(1500) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 1900
trigger2 = movecontact = 1
;===========================================================================
;Hissatu B
[State -1]
type = ChangeState
value = 1600
triggerall = command = "minidora"
triggerall = numhelper(1600) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 1900
trigger2 = movecontact = 1
;===========================================================================
;turibori
[State -1]
type = ChangeState
value = 2600
triggerall = command = "turibori"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
trigger3 = stateno = 2300
trigger3 = movecontact = 1
;---------------------------------------------------------------------------
;Stand_A
[State -1]
type = ChangeState
value = 200
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = time > 7||movecontact

;---------------------------------------------------------------------------
;Stand_B
[State -1]
type = ChangeState
value = 210
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1

;---------------------------------------------------------------------------
;Stand_C
[State -1]
type = ChangeState
value = 1020
triggerall = command = "c"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
trigger3 = stateno = 210
trigger3 = movecontact = 1
;---------------------------------------------------------------------------
;Stand_x
[State -1]
type = ChangeState
value = 230
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = numHelper(230) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
trigger3 = stateno = 210
trigger3 = movecontact = 1
;---------------------------------------------------------------------------
;Stand_y
[State -1]
type = ChangeState
value = 240
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = numHelper(240) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
trigger3 = stateno = 210
trigger3 = movecontact = 1
;---------------------------------------------------------------------------
;Stand_z
[State -1]
type = ChangeState
value = 250
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = numHelper(250) <= 1
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
trigger3 = stateno = 210
trigger3 = movecontact = 1

;---------------------------------------------------------------------------
;Crouch_A
[State -1]
type = ChangeState
value = 400
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;Crouch_B
[State -1]
type = ChangeState
value = 410
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 400 ;crouch_a
trigger2 = movecontact = 1
trigger3 = stateno = 200 
trigger3 = movecontact = 1

;---------------------------------------------------------------------------
;Crouch_C
[State -1]
type = ChangeState
value = 420
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = stateno != 420
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 410 ;crouch_b
trigger2 = movecontact = 1
trigger3 = stateno = 420
trigger3 = movecontact = 1
trigger4 = stateno = 200
trigger4 = movecontact = 1
trigger5 = stateno = 210
trigger5 = movecontact = 1
trigger6 = stateno = 250
trigger6 = movecontact = 1
;---------------------------------------------------------------------------
;Crouch_x
[State -1]
type = ChangeState
value = 430
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;Crouch_y
[State -1]
type = ChangeState
value = 440
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 430
trigger2 = movecontact = 1
trigger3 = stateno = 210 
trigger3 = movecontact = 1

;---------------------------------------------------------------------------
;Crouch_z
[State -1]
type = ChangeState
value = 450
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 440
trigger2 = movecontact = 1
trigger3 = stateno = 210 
trigger3 = movecontact = 1

;---------------------------------------------------------------------------
;DORAYAKITABERU
[State -1]
type = ChangeState
value = 199
triggerall = command = "start"
trigger1 = statetype = S
trigger1 = ctrl = 1
;===========================================================================
;SUTORO
[State -1]
type = ChangeState
value = 2800
triggerall = command = "SUTORO"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact = 1
trigger3 = stateno = 610
trigger3 = movecontact = 1
trigger4 = stateno = 620
trigger4 = movecontact = 1
trigger5 = stateno = 601
trigger5 = movecontact = 1
trigger6 = stateno = 611
trigger6 = movecontact = 1
;---------------------------------------------------------------------------
;Jump_A2
[State -1]
type = ChangeState
value = 601
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact = 1
trigger3 = stateno = 610
trigger3 = movecontact = 1
trigger4 = stateno = 620
trigger4 = movecontact = 1
;---------------------------------------------------------------------------
;Jump_B2
[State -1]
type = ChangeState
value = 611
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = [600,621]
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;Jump_C2
[State -1]
type = ChangeState
value = 621
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = [600,621]
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;Jump_A
[State -1]
type = ChangeState
value = 600
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = [600,621]
trigger2 = movecontact = 1

;---------------------------------------------------------------------------
;Jump_B
[State -1]
type = ChangeState
value = 610
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = [600,621]
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;Jump_C
[State -1]
type = ChangeState
value = 620
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = [600,621]
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;大ジャンプ
[State -1]
type = ChangeState
value = 198
triggerall = command = "holdup"
trigger1 = statetype = C
trigger1 = ctrl = 1


[State 3001, 0]
type = varSet
trigger1 = gametime%60 = 0
v = 1
var(1) = Random%5
IgnoreHitPause = 1

[State 3001, 0]
type = varSet
trigger1 = var(1) >= 5
v = 1
var(1) = 0
IgnoreHitPause = 1