[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 = "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 = "TripleKFPalmC"
command = ~D, DF, F, D, DF, F, c
time = 20

[Command]
name = "TripleKFPalmAB"
command = ~D, DF, F, D, DF, F, a
time = 20

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

[Command]
name = "TripleKFPalmZ"
command = ~D, DF, F, D, DF, F, z
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 = "SmashKFUpperC"
command = ~D, DB, B, D, DB, B, c
time = 20

[Command]
name = "SmashKFUpperAB"
command = ~D, DB, B, D, DB, B, a
time = 20

[Command]
name = "SmashKFUpperAB"
command = ~D, DB, B, D, DB, B, b
time = 20

[Command]
name = "SmashKFUpperZ"
command = ~D, DB, B, D, DB, B, z
time = 20

[Command]
name = "xx6y"
command = ~D,D,D, z
time = 20

[Command]
name = "22c"
command = ~D,D,D, c
time = 20

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

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

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

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

[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 = "QCB_x"
command = ~D, DB, B, x

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

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

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

[Command]
name = "QCB_xy"
command = ~D, DB, B, x+y

[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 = "22"
command = ~D,D, x

[Command]
name = "22"
command = ~D,D, a

[Command]
name = "22"
command = ~D,D, y

[Command]
name = "22"
command = ~D,D, b


;※※※※※※※※※※※※※※※※※※※※前避け
;前を押しながらＡ＋Ｂ、という意味
[Command]
name = "away-f"    
command = /F,x+a
time = 10

;※※※※※※※※※※※※※※※※※※※※前避け
;後を押しながらＡ＋Ｂ、という意味
[Command]
name = "away-b"    
command = /B,x+a
time = 10

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

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

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

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

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

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

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

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

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

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

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

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

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

[Command]
name = "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 = "holdfwddown";Required (do Not reMove)
Command = /$DF
Time = 1

[Command]
Name = "holdfwdup";Required (do Not reMove)
Command = /$UF
Time = 1

[Command]
Name = "holdbackdown";Required (do Not reMove)
Command = /$DB
Time = 1

[Command]
Name = "holdbackup";Required (do Not reMove)
Command = /$UB
Time = 1

[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

[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

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

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

;==============================================================================
; 超必殺技
;==============================================================================
;------------------------------------------------------------------------------

;------------------------------------------------------------------------------
; ここで↑にて実際に使っている「スマッシュカンフーアッパーのChangeState」を例に
; 見て行きましょ！m9っ｀Д´)
;
; まず特定のコマンドを入力したいならば、
; 必ず『呼び出すコマンドのトリガー』は設定しましょう。
; 特殊な条件でない限り、コマンドは通常「triggerall」の方で設定した方が良い。
;
;「triggerall」とは『有効になる状況を限定するための条件』を指定する。
; triggerallの条件が有効にならない限り、trigger1以降の条件も有効にはならない。
; 何個でも増やせる。ステート作成の基本テクニックの一つなので覚えておいてね。
; しかしtriggerallはtrigger1以降が無いと「単体では」使えないので注意。
;（trigger1以降を全てコメント化してM.U.G.E.Nでそのキャラを選んで試してみよう）
;
;
; ※『パワーゲージ』は「スーパーコンボゲージ」や「超必殺技ゲージ」などで
; 　呼ばれてる部分のゲージです。
; 　ゲージが「１０００ポイント」なら『レベル１』と同じ意味になります。
;
; 　まぁパッと見、M.U.G.E.Nのパワーゲージって仕組みが
; 　ストＺＥＲＯシリーズの「スーパーコンボレベルゲージ」まんまだよね（苦笑
;------------------------------------------------------------------------------

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3000
triggerall = command = "TripleKFPalmC"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = stateno = 1030
trigger1 = animelemtime(7)>=0

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3030
triggerall = command = "TripleKFPalmC"
triggerall = power >= 3000
trigger1 = statetype = S

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3040
triggerall = command = "TripleKFPalm"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = var(1)

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3020
triggerall = command = "SmashKFUpperAB"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = var(1)

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3010
triggerall = command = "TripleKFPalmAB"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = var(1)

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3060
triggerall = command = "TripleKFPalmZ"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = var(1)

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

[State -1, 変数の例１];必殺技の発生条件リセット
type = VarSet
triggerall = var(59) = 0
trigger1 = 1
var(1) = 0 ;変数用パラメータの記述方法その１（その２は「板投げ」のステートにて）

[State -1, 変数の例２];必殺技の発生条件をチェック
type = VarSet
triggerall = var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299])
trigger2 = movecontact
trigger3 = (stateno = [400,410]) && (movecontact)
trigger4 = (stateno = 1000 || stateno = 1055 || stateno = 1070) && (animelemtime(9) > 0)
trigger4 = var(21) = 0
trigger5 = (stateno = 1010 || stateno = 1015) && (animelemtime(9) > 0)
trigger5 = var(21) = 0
trigger6 = (stateno = 1020) && (animelemtime(9) > 0)
trigger6 = var(21) = 0
var(1) = 1

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

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


[State -1, 弱カンフーアッパー]
type = ChangeState
value = 1010
triggerall = command = "upper_x"
triggerall = numhelper(1010) = 0
triggerall = var(59) = 0
trigger1 = var(1)

[State -1, 強カンフーアッパー]
type = ChangeState
value = 1015
triggerall = command = "upper_y"
triggerall = numhelper(1015) = 0
triggerall = var(59) = 0
trigger1 = var(1)

[State -1, 弱カンフーアッパー]
type = ChangeState
value = 1040
triggerall = command = "upper_a"
triggerall = var(59) = 0
trigger1 = var(1)

[State -1, 弱カンフーアッパー]
type = ChangeState
value = 1040
triggerall = command = "upper_b"
triggerall = var(59) = 0
trigger1 = var(1)

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

[State -1, 弱カンフー突き手]
type = ChangeState
value = 1000
triggerall = command = "QCF_x"
triggerall = numhelper(1000) = 0
triggerall = numhelper(1001) = 0
triggerall = var(59) = 0
trigger1 = var(1)


[State -1, 強カンフー突き手]
type = ChangeState
value = 1055
triggerall = command = "QCF_y"
triggerall = numhelper(1055) = 0
triggerall = var(59) = 0
trigger1 = var(1)

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


[State -1, 弱カンフーブロー]
type = ChangeState
value = 1020
triggerall = command = "QCB_x"
triggerall = numhelper(1020) = 0
triggerall = var(59) = 0
trigger1 = var(1)
Trigger1 = StateType != A

[State -1, 強カンフーブロー]
type = ChangeState
value = 1070
triggerall = command = "QCB_y"
triggerall = numhelper(1070) = 0
triggerall = var(59) = 0
trigger1 = var(1)

[State -1, 強カンフーブロー]
type = ChangeState
value = 1050
triggerall = command = "QCF_x"
triggerall = numhelper(1050) = 0
triggerall = var(59) = 0
Trigger1 = StateType = A
trigger1 = ctrl
trigger2 = (stateno = 1090) && (animelemtime(6) > 1)
trigger2 = var(21) = 0
trigger3 = ((stateno = 600) && movecontact)

[State -1, 強カンフーブロー]
type = ChangeState
value = 1090
triggerall = command = "board"
triggerall = numhelper(1090) = 0
triggerall = var(59) = 0
Trigger1 = StateType = A
trigger1 = ctrl
trigger2 = (stateno = 1050) && (animelemtime(8) > 1)
trigger2 = var(21) = 0
trigger3 = ((stateno = 600) && movecontact)

[State -1, 強カンフーブロー]
type = ChangeState
value = 1060
triggerall = command = "QCB_a"
triggerall = var(59) = 0
trigger1 = var(1)

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

[State -1, 板投げ]
type = ChangeState
value = 1030
triggerall = command = "board"||command = "board2"
triggerall = var(59) = 0
trigger1 = var(1)

[State -1, 板投げ]
type = ChangeState
value = 1080
triggerall = command = "22"
triggerall = statetype != A
triggerall = var(59) = 0
trigger1 = var(1)

;==============================================================================
; 移動関連
;==============================================================================
;------------------------------------------------------------------------------

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

[State -1, カンフースルー];投げ技
type = ChangeState
value = 800
triggerall = command = "b"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
triggerall = var(59) = 0
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

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

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


;2A
[State -1]
type = ChangeState
value = 400
TriggerAll = var(59)=0
triggerall = statetype != A
triggerall = command = "a" && command = "holddown"
trigger1 = ctrl  
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 400) && (movecontact)
trigger4 = (stateno = 200 || stateno = 400) && (movecontact || animelemtime(7) > 2)

;===========================================================================
;---------------------------------------------------------------------------
;2B
[State -1]
type = ChangeState
value = 410
TriggerAll = var(59)=0
triggerall = stateno != 410
triggerall = statetype != A
triggerall = command = "b" && command = "holddown"
trigger1 = ctrl  
trigger2 = ((stateno = [200,230]) && movecontact) || ((stateno = [400,420]) && movecontact)
trigger3 = (stateno = 200 || stateno = 400) && (movecontact || animelemtime(7) > 2)


---------------------------------------------------
[State -1, Jump Light Punch]
type = ChangeState
value = 600
TriggerAll = var(59)=0
triggerall = command = "a" || command = "b"
trigger1 = statetype = A
trigger1 = stateno != 105
trigger1 = ctrl


;===========================================================================
;--------------------------------------------------------------------------

;===========================================================================
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 200
TriggerAll = var(59)=0
triggerall = statetype != A
triggerall = command = "a"
trigger1 = ctrl  
trigger2 = ((stateno = [200,210]) && movecontact) || ((stateno = 400) && movecontact)
trigger3 = (stateno = 200 || stateno = 400) && (movecontact || animelemtime(7) > 2)

;===========================================================================
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 220
TriggerAll = var(59)=0
triggerall = statetype != A
triggerall = command = "b" 
trigger1 = ctrl  
trigger2 = ((stateno = [200,215]) && movecontact) || ((stateno = [400,420]) && movecontact)
trigger3 = (stateno = 200 || stateno = 400) && (movecontact || animelemtime(7) > 2)

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

[State -1 ]
type = ChangeState
value = 210
TriggerAll = var(59)=0
triggerall = (command = "c" || command = "yb")
triggerall = NumEnemy >= 1
trigger1 = statetype != A
trigger1 = var(1)
trigger2 = (stateno = 150 || stateno = 152) && power >= 1000
