; コマンドに関する設定は４部構成になっています。
;==============================================================================
; Win版専用パート
;==============================================================================
;------------------------------------------------------------------------------
;-| ボタンリマップ（ボタンコンフィグ）|---------------------------------------- 第１部

[Remap]
x = x      ;弱攻撃の入力判定を実際に押すボタンに割り当てる。
y = y      ;中攻撃　　　　　　　        　〃
z = z      ;特殊ステップ/シールド　　　　 〃
a = a      ;蹴り　　　　　　　　        　〃
b = b      ;強攻撃　　　　　　      　　　〃
c = c      ;気合溜め　　　　　    　　　　〃
s = s      ;傘開閉　　　　　            　〃

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

[Defaults]
command.time = 13  ;標準のコマンド入力受付時間。
                   ;各コマンドで省略している場合に有効。
                   ;このパラメータを消した場合、デフォルトは１フレームになる。
                   ;（　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 = "himawaris"
command = ~B,DB,D,DF,F x
time = 20

[Command]
name = "himawaris"
command = ~B,DB,D,DF,F y
time = 20

[Command]
name = "himawaris"
command = ~B,DB,D,DF,F b
time = 20

[Command]
name = "TripleKFPalm"
command = ~D, DF, F, D, DF, F, x
time = 20

[Command]
name = "TripleKFPalm"
command = ~D, DF, F, D, DF, F, y
time = 20

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

[Command]
name = "SmashKFUpper"
command = ~D, DB, B, D, DB, B, x;~F, D, DF, F, D, DF, x
time = 20

[Command]
name = "SmashKFUpper"
command = ~D, DB, B, D, DB, B, y;~F, D, DF, F, D, DF, y
time = 20

[Command]
name = "SmashKFUpper"
command = ~D, DB, B, D, DB, B, b;~F, D, DF, F, D, DF, y
time = 20

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

[Command]
name = "upper_x"
command = ~F, D, DF, x

[Command]
name = "upper_y"
command = ~F, D, DF, y

[Command]
name = "upper_b"
command = ~F, D, DF, b

[Command]
name = "QCF_x"
command = ~D, DF, F, x

[Command]
name = "QCF_y"
command = ~D, DF, F, y

[Command]
name = "QCF_xy"
command = ~D, DF, F, x+y

[Command]
name = "421_x"
command = ~B, D, DB, x

[Command]
name = "421_y"
command = ~B, D, DB, y

[Command]
name = "421_b"
command = ~B, D, DB, b

[Command]
name = "QCB_x"
command = ~D, DB, B, x

[Command]
name = "QCB_y"
command = ~D, DB, B, y

[Command]
name = "QCB_b"
command = ~D, DB, B, b

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

[Command]
name = "FF_ab"
command = F, F, a+b

[Command]
name = "FF_a"
command = F, F, a

[Command]
name = "FF_b"
command = F, F, b

[Command]
name = "board"
command = ~D, DF, F, a

[Command]
name = "board2"
command = ~D, DF, F, b

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

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

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

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

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

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

[Command]
name = "nage" ;
command = y+b
time = 1

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

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

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

[Command]
name = "Bb"
command = B, b
time = 5

[Command]
name = "Bb"
command = /$B, b

[Command]
name = "Fa"
command = F, a
time = 5

[Command]
name = "Fa"
command = /$F, a

[Command]
name = "Fb"
command = F, b
time = 5

[Command]
name = "Fb"
command = /$F, b

[Command]
name = "Ba"
command = B, a
time = 5

[Command]
name = "Ba"
command = /$B, a

[Command]
name = "Fy"
command = F, y
time = 5

[Command]
name = "Fy"
command = /$F, y

[Command]
name = "By"
command = B, y
time = 5

[Command]
name = "By"
command = /$B, y
time = 5

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

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

[Command]
name = "hold_a"
command = /a

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

[Command]
name = "hold_b"
command = /b

[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 = "up"    ;必須コマンド名
command = $U
time = 1


[Command]
name = "holddown"  ;必須コマンド名
command = /$D
time = 1

;============================================================================== 第４部
; ステートエントリーパート（技などを出せるようにするための条件を設定）
;==============================================================================
;------------------------------------------------------------------------------
; コマンド名と入力するコマンドを設定しただけじゃ意味が無いので、ここから
;「実際に入力したコマンドでどの番号のステートをどういう条件で出せるか」
; を決めなければならない。
;
; ステートコントローラ「ChangeState」しか使わないけど、
; そんなに難しくないのでトリガーを覚えてたらすぐ出来る。
;
; ここさえ押さえておけば簡単なトリガー設定の流れは覚えられるかと。
;------------------------------------------------------------------------------
; ■準常時監視ステート（−１）■
; コマンドファイル（のステートエントリーパート）に必要な項目です。
; 絶対に消してはいけないので要注意。
;
; 通常の食らい状態以外の「P2StateNo」や「TargetState」等で制御された、
; 作成者が任意に指定した相手側の食らいステートに限り、
; 登録したステートコントローラが有効にはなりません。
;------------------------------------------------------------------------------

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

;==============================================================================
; 超必殺技
;==============================================================================
;------------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 3030
triggerall = command = "SmashKFUpper" 
triggerall = power >= 3000   
triggerall = var(10) = 1          
triggerall = statetype != A            
trigger1 = ctrl                        
trigger2 = hitdefattr = SC, NA, SA, HA 
trigger2 = stateno != [3050,3100)      
trigger2 = movecontact          

[State -1]
type = ChangeState
value = 3040
triggerall = command = "SmashKFUpper" 
triggerall = power >= 3000   
triggerall = var(10) = 2          
triggerall = statetype != A            
trigger1 = ctrl                        
trigger2 = hitdefattr = SC, NA, SA, HA 
trigger2 = stateno != [3050,3100)      
trigger2 = movecontact          


[State -1]
type = ChangeState
value = 3020
triggerall = command = "himawaris"  
triggerall = power >= 2000   
triggerall = NumHelper(3021) = 0
triggerall = var(10) = 1          
triggerall = statetype != A            
trigger1 = ctrl                        
trigger2 = hitdefattr = SC, NA, SA, HA 
trigger2 = stateno != [3050,3100)      
trigger2 = movecontact          
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------

[State -1, 傘連続突];ゲージレベル１
type = ChangeState
value = 3000
triggerall = command = "TripleKFPalm"
triggerall = power >= 1000
triggerall = var(10) = 2
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != [3000,3050)
trigger2 = movecontact

[State -1, フラワーショット];ゲージレベル１
type = ChangeState
value = 3010
triggerall = command = "TripleKFPalm"
triggerall = power >= 1000
triggerall = var(10) = 1
triggerall = NumHelper(3011) = 0 
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != [3000,3050)
trigger2 = movecontact

;==============================================================================
; 必殺技
;==============================================================================
;------------------------------------------------------------------------------
; 変数の使い方の例。
;
; 地上で必殺技が出せる状況」や、
; 通常技から必殺技へ繋ぐ時の「キャンセル」の部分を設定している。
; 地上で成功すれば、『変数の例２』のステートコントローラで設定した
; 変数が実行され、それ以外なら『変数の例１』でリセットする、という処理。
;
; 個人的にはこの方法はオススメしない。kfmcでの方法を推薦します。

[State -1, 変数の例１];必殺技の発生条件リセット
type = VarSet
trigger1 = 1
var(1) = 0 ;変数用パラメータの記述方法

[State -1, 変数の例２];必殺技の発生条件をチェック
type = VarSet
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;[Statedef 440]（足払いのステート）ではない時
trigger2 = movecontact
var(1) = 1

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

[State -1, 弱対空傘閉]
type = ChangeState
value = 1100
triggerall = command = "upper_x"
trigger1 = var(1)
triggerall = var(10) = 2
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact

[State -1, 中対空傘閉]
type = ChangeState
value = 1110
triggerall = command = "upper_y"
trigger1 = var(1)
triggerall = var(10) = 2
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact

[State -1, 強対空傘閉]
type = ChangeState
value = 1120
triggerall = command = "upper_b"
trigger1 = var(1)
triggerall = var(10) = 2
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact


[State -1, 弱対空傘開]
type = ChangeState
value = 1150
triggerall = command = "upper_x"
trigger1 = var(1)
triggerall = var(10) = 1
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact

[State -1, 中対空傘開]
type = ChangeState
value = 1160
triggerall = command = "upper_y"
trigger1 = var(1)
triggerall = var(10) = 1
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact


[State -1, 強対空傘開]
type = ChangeState
value = 1170
triggerall = command = "upper_b"
trigger1 = var(1)
triggerall = var(10) = 1
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact

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

[State -1, 傘連続突]
type = ChangeState
value = 1180
triggerall = command = "QCF_x"
trigger1 = var(1)
triggerall = var(10) = 2
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact

[State -1, 分身攻撃分身]
type = ChangeState
value = 1270
triggerall = command = "421_x"
triggerall = NumHelper(1271) = 0 
triggerall = NumHelper(1276) = 0 
trigger1 = var(1)
triggerall = var(10) = 2
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact


[State -1, 分身攻撃分身]
type = ChangeState
value = 1275
triggerall = command = "421_y"
triggerall = NumHelper(1271) = 0 
triggerall = NumHelper(1276) = 0 
trigger1 = var(1)
triggerall = var(10) = 2
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact

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

[State -1, 弱向日葵]
type = ChangeState
value = 1010
triggerall = command = "QCF_x"
triggerall = NumHelper(1011) = 0 
trigger1 = var(1)
triggerall = var(10) = 1
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact

[State -1, 中向日葵]
type = ChangeState
value = 1000
triggerall = command = "QCF_y"
triggerall = NumHelper(1001) = 0 
trigger1 = var(1)
triggerall = var(10) = 1
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact

[State -1, 強向日葵]
type = ChangeState
value = 1030
triggerall = command = "board2"
triggerall = NumHelper(1031) = 0 
trigger1 = var(1)
triggerall = var(10) = 1
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact

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

[State -1, 花設置]
type = ChangeState
value = 1200
triggerall = command = "421_x"
triggerall = var(10) = 1
triggerall = NumHelper(1201) < 1
trigger1 = var(1)

[State -1, 花設置]
type = ChangeState
value = 1210
triggerall = command = "421_y"
triggerall = var(10) = 1
triggerall = NumHelper(1201) < 1
trigger1 = var(1)

[State -1, 向日葵設置]
type = ChangeState
value = 1230
triggerall = command = "QCB_x"
triggerall = var(10) = 1
trigger1 = var(1)
triggerall = NumHelper(1231) < 1

[State -1, 向日葵設置]
type = ChangeState
value = 1240
triggerall = command = "QCB_y"
triggerall = var(10) = 1
trigger1 = var(1)
triggerall = NumHelper(1231) < 1

[State -1, 芽設置]
type = ChangeState
value = 1250
triggerall = command = "QCB_b"
triggerall = var(10) = 1
trigger1 = var(1)
triggerall = NumHelper(1251) < 1

[State -1, 薔薇設置]
type = ChangeState
value = 1220
triggerall = command = "QCB_a"
triggerall = var(10) = 1
triggerall = NumHelper(1260) < 1
trigger1 = var(1)

[State -1, 薔薇設置]
type = ChangeState
value = 1262
triggerall = command = "QCB_a"
triggerall = var(10) = 1
triggerall = NumHelper(1260) < 1
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = Pos Y < -60 

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

[State -1, 傘バズーカ開]
type = ChangeState
value = 1060
triggerall = command = "board"
triggerall = var(10) = 1
trigger1 = var(1)
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact

[State -1, 傘バズーカ閉]
type = ChangeState
value = 1061
triggerall = command = "board"
triggerall = var(10) = 2
trigger1 = var(1)
trigger2 = stateno = [2000,3000)  
trigger2 = movecontact


;==============================================================================
; 移動関連
;==============================================================================
;------------------------------------------------------------------------------
[State -1, 走る]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = var(10) = 2


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

[State -1, ジャンプ]
type = ChangeState
value = 40
trigger1 = command = "holdup"
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = var(10) = 2

;==============================================================================
; 特殊技
;==============================================================================
;------------------------------------------------------------------------------

[State -1, カンフースルー];投げ技
type = ChangeState
value = 800
trigger1 = command = "nage"
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = stateno != 100
trigger1 = var(10) = 2

[State -1, カンフースルー];投げ技
type = ChangeState
value = 850
trigger1 = command = "nage"
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = stateno != 100
trigger1 = var(10) = 1


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

[State -1, パワー溜め]
type = ChangeState
value = 700
triggerall = command = "hold_c"
;triggerall = power < 5000 ;ゲージが満タンの時は出せない
trigger1 = statetype != A && ctrl

[State -1, シールド]
type = ChangeState
value = 701
triggerall = command = "z"
trigger1 = Var(10) = 1
trigger1 = ctrl

[State -1, 回避ステップ]
type = ChangeState
value = 760
triggerall = command = "z"
trigger1 = Var(10) = 2
trigger1 = ctrl
trigger1 = statetype = S
;------------------------------------------------------------------------------
[State -1, 踏みつけ]
type = ChangeState
value = 250
triggerall = command = "fumituke"
triggerall = Var(10) = 2
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,440)  
trigger2 = movecontact
trigger2 = stateno != [250,260) 

[State -1, 踏みつけ]
type = ChangeState
value = 252
triggerall = command = "fumituke"
triggerall = Var(10) = 1
triggerall = statetype = S
trigger1 = ctrl 
trigger2 = stateno = [200,440)  
trigger2 = movecontact
trigger2 = stateno != [250,260) 

[State -1, ナイトカイゼル]
type = ChangeState
value = 2000
triggerall = command = "Bb"
triggerall = Var(10) = 2
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,440)  
trigger2 = movecontact
trigger2 = stateno != [250,260) 
trigger3 = stateno = 2060
trigger3 = movecontact
trigger4 = stateno = 2035
trigger4 = movecontact

[State -1, 空中吹き飛ばし]
type = ChangeState
value = 2070
triggerall = command = "fumituke"
triggerall = Var(10) = 2
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,645)  
trigger2 = movecontact

[State -1, 吹き飛ばし蹴り]
type = ChangeState
value = 2050
triggerall = command = "Ba"
triggerall = Var(10) = 2
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,440)  
trigger2 = movecontact
trigger2 = stateno != [250,260) 
trigger3 = stateno = 2060
trigger3 = movecontact
trigger4 = stateno = 2035
trigger4 = movecontact

[State -1, 吹き飛ばし]
type = ChangeState
value = 2090
triggerall = command = "By"
triggerall = Var(10) = 1
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,440)  
trigger2 = movecontact
trigger2 = stateno != [250,260) 
trigger3 = stateno = 2030
trigger3 = movecontact

[State -1, かちあげ]
type = ChangeState
value = 2100
triggerall = command = "Fy"
triggerall = Var(10) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,440)  
trigger2 = movecontact
trigger2 = stateno != [250,260) 
trigger3 = stateno = 2030
trigger3 = movecontact

[State -1, 回し蹴り]
type = ChangeState
value = 2030
triggerall = command = "Fa"
triggerall = Var(10) = 2
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,440)  
trigger2 = movecontact
trigger2 = stateno != [250,260) 

[State -1, 回し蹴り]
type = ChangeState
value = 2035
triggerall = command = "Fa"
triggerall = Var(10) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,450)  
trigger2 = movecontact
trigger2 = stateno != [250,260) 

[State -1, 中段]
type = ChangeState
value = 2060
triggerall = command = "Fy"
triggerall = Var(10) = 2
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,440)  
trigger2 = movecontact
trigger2 = stateno != [250,260) 
trigger3 = stateno = 2035
trigger3 = movecontact

[State -1, 茨]
type = ChangeState
value = 2080
triggerall = command = "Fb"
triggerall = Var(10) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,450)  
trigger2 = movecontact
trigger2 = stateno != [250,260)  
trigger3 = stateno = 2030
trigger3 = movecontact


[State -1, 串刺し]
type = ChangeState
value = 2040
triggerall = command = "Fb"
triggerall = Var(10) = 2
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,440)  
trigger2 = movecontact
trigger2 = stateno != [250,260) 
trigger3 = stateno = 2060
trigger3 = movecontact
trigger4 = stateno = 2035
trigger4 = movecontact
;------------------------------------------------------------------------------


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

[State -1, 立ち弱パンチ]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = var(10) = 2
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 201) && (time > 7)

[State -1, 立ち弱パンチ]
type = ChangeState
value = 202
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = var(10) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 203
trigger2 = time > 7


[State -1, 立ち中パンチ]
type = ChangeState
value = 212
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = var(10) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 203
trigger2 = time > 6
trigger3 = (stateno = 202) && time > 6

[State -1, 立ち中パンチ]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = var(10) = 2
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact 
trigger3 = (stateno = 201) && movecontact 
trigger4 = (stateno = 430) && movecontact 
trigger5 = (stateno = 230) && movecontact 

[State -1, 立ち弱キック]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = var(10) = 2
trigger1 = statetype = S
trigger1 = ctrl

[State -1, 立ち弱キック]
type = ChangeState
value = 235
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = var(10) = 1
trigger1 = statetype = S
trigger1 = ctrl

[State -1, 立ち強パンチ]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = var(10) = 2
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact 
trigger3 = (stateno = 230) && movecontact 
trigger4 = (stateno = 201) && movecontact 
trigger5 = (stateno = 210) && movecontact 
trigger6 = (stateno = 211) && movecontact 
trigger7 = (stateno = 231) && movecontact 

[State -1, 立ち強パンチ]
type = ChangeState
value = 242
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = var(10) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 203
trigger2 = time > 6
trigger3 = (stateno = 202) && time > 6
trigger4 = (stateno = 212) && movecontact 

[State -1, 挑発]
type = ChangeState
value = 2
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = Var(10) = 2

[State -1, 挑発]
type = ChangeState
value = 3
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = Var(10) = 1
;------------------------------------------------------------------------------

[State -1, しゃがみ弱パンチ]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = var(10) = 2
trigger1 = statetype = C
trigger1 = ctrl

[State -1, しゃがみ弱パンチ]
type = ChangeState
value = 405
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = var(10) = 1
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 405) && time > 6

[State -1, しゃがみ中パンチ]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = var(10) = 2
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) && movecontact 
trigger3 = (stateno = 430) && movecontact 
trigger4 = (stateno = 230) && movecontact 

[State -1, しゃがみ中パンチ]
type = ChangeState
value = 415
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = var(10) = 1
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 405) && (movecontact || time > 5)

[State -1, しゃがみ弱キック]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = var(10) = 2
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = movecontact 

[State -1, しゃがみ弱キック]
type = ChangeState
value = 435
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = var(10) = 1
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 405) && movecontact 
trigger2 = movecontact 

[State -1, しゃがみ強パンチ]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = var(10) = 2
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) && movecontact 
trigger3 = (stateno = 430) && movecontact
trigger4 = (stateno = 410) && movecontact 

[State -1, しゃがみ強パンチ]
type = ChangeState
value = 445
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = var(10) = 1
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 405) && (movecontact || time > 5)
trigger3 = (stateno = 415) && time > 23
;------------------------------------------------------------------------------

[State -1, ジャンプ弱]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = var(10) = 2
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && movecontact
trigger2 = time > 10

[State -1, ジャンプ弱]
type = ChangeState
value = 605
triggerall = command = "x"
triggerall = var(10) = 1
trigger1 = statetype = A
trigger1 = ctrl
;trigger3 = stateno = 1350 ;Win版のカンフーマンには「ブロッキング」が搭載予定だったらしい

[State -1, ジャンプ中]
type = ChangeState
value = 610
triggerall = command = "y"
triggerall = var(10) = 2
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630
trigger2 = movecontact
;trigger3 = stateno = 1350 ;Win版のカンフーマンには「ブロッキング」が搭載予定だったらしい

[State -1, ジャンプ中]
type = ChangeState
value = 615
triggerall = command = "y"
triggerall = var(10) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 605 || stateno = 635
trigger2 = movecontact
;trigger3 = stateno = 1350 ;Win版のカンフーマンには「ブロッキング」が搭載予定だったらしい

[State -1, ジャンプ弱キック]
type = ChangeState
value = 630
triggerall = command = "a"
triggerall = var(10) = 2
trigger1 = statetype = A
trigger1 = ctrl
;trigger2 = stateno = 1350 ;Win版のカンフーマンには「ブロッキング」が搭載予定だったらしい

[State -1, ジャンプ弱キック]
type = ChangeState
value = 635
triggerall = command = "a"
triggerall = var(10) = 1
trigger1 = statetype = A
trigger1 = ctrl
;trigger2 = stateno = 1350 ;Win版のカンフーマンには「ブロッキング」が搭載予定だったらしい

[State -1, ジャンプ強]
type = ChangeState
value = 645
triggerall = command = "b"
triggerall = var(10) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 605 || stateno = 635 || stateno = 615
trigger2 = movecontact
;trigger3 = stateno = 1350 ;Win版のカンフーマンには「ブロッキング」が搭載予定だったらしい

[State -1, ジャンプ強]
type = ChangeState
value = 640
triggerall = command = "b"
triggerall = var(10) = 2
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 || stateno = 610
trigger2 = movecontact
;trigger3 = stateno = 1350 ;Win版のカンフーマンには「ブロッキング」が搭載予定だったらしい

;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;傘関連
[State -1, ジャンプ傘]
type = ChangeState
value = 45
trigger1 = command = "up"
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = var(10) = 1
trigger1 = var(12) = 0
trigger1 = Pos Y < -40

[State -1, 浮遊]
type = ChangeState
value = 750
trigger1 = command = "holdup"
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = var(10) = 1
trigger1 = var(12) = 1
trigger1 = Vel Y > 0
trigger1 = Pos Y < -30

[State -1, 瞬間移動前傘]
type = ChangeState
value = 102
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = var(10) = 1

[State -1,  瞬間移動後傘]
type = ChangeState
value = 107
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = var(10) = 1

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