;-| AIスイッチ (入れてるだけ)|--------------------------------------------------------
[Command]
name = "CPU_01"
command = ~U,U,U,U,U,U,U,U,U,U,x
time = 0

[Command]
name = "CPU_02"
command = ~U,U,U,U,U,U,U,U,U,U,y
time = 0

[Command]
name = "CPU_03"
command = ~U,U,U,U,U,U,U,U,U,U,z
time = 0

[Command]
name = "CPU_04"
command = ~U,U,U,U,U,U,U,U,U,U,a
time = 0

[Command]
name = "CPU_05"
command = ~U,U,U,U,U,U,U,U,U,U,b
time = 0

[Command]
name = "CPU_06"
command = ~U,U,U,U,U,U,U,U,U,U,c
time = 0

[Command]
name = "CPU_07"
command = ~F,F,F,F,F,F,F,F,F,F,x
time = 0

[Command]
name = "CPU_08"
command = ~F,F,F,F,F,F,F,F,F,F,y
time = 0

[Command]
name = "CPU_09"
command = ~F,F,F,F,F,F,F,F,F,F,z
time = 0

[Command]
name = "CPU_10"
command = ~F,F,F,F,F,F,F,F,F,F,a
time = 0

[Command]
name = "CPU_11"
command = ~F,F,F,F,F,F,F,F,F,F,b
time = 0

[Command]
name = "CPU_12"
command = ~F,F,F,F,F,F,F,F,F,F,c
time = 0

[Command]
name = "CPU_13"
command = ~D,D,D,D,D,D,D,D,D,D,x
time = 0

[Command]
name = "CPU_14"
command = ~D,D,D,D,D,D,D,D,D,D,y
time = 0

[Command]
name = "CPU_15"
command = ~D,D,D,D,D,D,D,D,D,D,z
time = 0

[Command]
name = "CPU_16"
command = ~D,D,D,D,D,D,D,D,D,D,a
time = 0

[Command]
name = "CPU_17"
command = ~D,D,D,D,D,D,D,D,D,D,b
time = 0

[Command]
name = "CPU_18"
command = ~D,D,D,D,D,D,D,D,D,D,c
time = 0

[Command]
name = "CPU_19"
command = ~B,B,B,B,B,B,B,B,B,B,x
time = 0

[Command]
name = "CPU_20"
command = ~B,B,B,B,B,B,B,B,B,B,y
time = 0

[Command]
name = "CPU_21"
command = ~B,B,B,B,B,B,B,B,B,B,z
time = 0

[Command]
name = "CPU_22"
command = ~B,B,B,B,B,B,B,B,B,B,a
time = 0

[Command]
name = "CPU_23"
command = ~B,B,B,B,B,B,B,B,B,B,b
time = 0

[Command]
name = "CPU_24"
command = ~B,B,B,B,B,B,B,B,B,B,c
time = 0

[Command]
name = "CPU_25"
command = ~U,x,D,b,B,y,F,a
time = 0

[Command]
name = "CPU_26"
command = ~U,U,U,U,U,U,U,U,U,U,x+y
time = 0

[Command]
name = "CPU_27"
command = ~U,U,U,U,U,U,U,U,U,U,y+z
time = 0

[Command]
name = "CPU_28"
command = ~U,U,U,U,U,U,U,U,U,U,z+x
time = 0

[Command]
name = "CPU_29"
command = ~U,U,U,U,U,U,U,U,U,U,a+b
time = 0

[Command]
name = "CPU_30"
command = ~U,U,U,U,U,U,U,U,U,U,b+c
time = 0

[Command]
name = "CPU_31"
command = ~U,U,U,U,U,U,U,U,U,U,c+a
time = 0

[Command]
name = "CPU_32"
command = ~F,F,F,F,F,F,F,F,F,F,x+y
time = 0

[Command]
name = "CPU_33"
command = ~F,F,F,F,F,F,F,F,F,F,y+z
time = 0

[Command]
name = "CPU_34"
command = ~F,F,F,F,F,F,F,F,F,F,z+x
time = 0

[Command]
name = "CPU_35"
command = ~F,F,F,F,F,F,F,F,F,F,a+b
time = 0

[Command]
name = "CPU_36"
command = ~F,F,F,F,F,F,F,F,F,F,b+c
time = 0

[Command]
name = "CPU_37"
command = ~F,F,F,F,F,F,F,F,F,F,c+a
time = 0

[Command]
name = "CPU_38"
command = ~D,D,D,D,D,D,D,D,D,D,x+y
time = 0

[Command]
name = "CPU_39"
command = ~D,D,D,D,D,D,D,D,D,D,y+z
time = 0

[Command]
name = "CPU_40"
command = ~D,D,D,D,D,D,D,D,D,D,z+x
time = 0

[Command]
name = "CPU_41"
command = ~D,D,D,D,D,D,D,D,D,D,a+b
time = 0

[Command]
name = "CPU_42"
command = ~D,D,D,D,D,D,D,D,D,D,b+c
time = 0

[Command]
name = "CPU_43"
command = ~D,D,D,D,D,D,D,D,D,D,c+a
time = 0

[Command]
name = "CPU_44"
command = ~B,B,B,B,B,B,B,B,B,B,x+y
time = 0

[Command]
name = "CPU_45"
command = ~B,B,B,B,B,B,B,B,B,B,y+z
time = 0

[Command]
name = "CPU_46"
command = ~B,B,B,B,B,B,B,B,B,B,z+x
time = 0

[Command]
name = "CPU_47"
command = ~B,B,B,B,B,B,B,B,B,B,a+b
time = 0

[Command]
name = "CPU_48"
command = ~B,B,B,B,B,B,B,B,B,B,b+c
time = 0

[Command]
name = "CPU_49"
command = ~B,B,B,B,B,B,B,B,B,B,c+a
time = 0

[Command];このコマンドわかる人いるかな？
name = "CPU_50"
command = ~y,a,b,a,y,a,b,a
time = 0

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

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

[Command]
name = "236236a"
command = ~D, F, D, F, a
time = 30

[Command]
name = "236236b"
command = ~D, F, D, F, b
time = 30

[Command]
name = "236236c"
command = ~D, F, D, F, c
time = 30

[Command]
name = "214214a"
command = ~D, B, D, B, a
time = 30

[Command]
name = "214214b"
command = ~D, B, D, B, b
time = 30

[Command]
name = "214214c"
command = ~D, B, D, B, c
time = 30

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

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

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

[Command]
name = "623_c"
command = ~F, D, DF, c

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

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

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

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

[Command]
name = "214_c"
command = ~D, DB, B, c

[Command]
name = "236_c"
command = ~D, DF, F, c

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

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

[Command]
name = "QCB_xy"
command = ~D, DB, B, c

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

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

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

;---------------------------
;(「板投げ」用にコマンドを追加してます)
[Command]
name = "board"
command = ~D, DF, F, a

[Command]
name = "board"
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 = "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 = "holda"
command = /a
[Command]
name = "holdb"
command = /b
[Command]
name = "holdc"
command = /c
[Command]
name = "holdx"
command = /x
[Command]
name = "holdy"
command = /y
[Command]
name = "holdz"
command = /z
;------------------------------------------------------------------------------
;-| 方向キー |-----------------------------------------------------------------

[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, ]
type = selfState
value = 3702
triggerall = var(59) = 0
triggerall = palno <=6
triggerall = command = "214214c"
triggerall = power >= 3000
trigger1 = movetype = H
trigger2 = stateno = [5000,5199]
trigger3 = stateno = 3601 && time > 120
[State -1, ]
type = selfState
value = 3602
triggerall = var(59) = 0
triggerall = palno <=6
triggerall = command = "214214b"
triggerall = power >= 2000
trigger1 = movetype = H
trigger2 = stateno = [5000,5199]

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3700
triggerall = var(59) = 0
triggerall = palno <=6
triggerall = command = "214214c"
triggerall = power >= 3000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != 103300
trigger2 = movecontact
trigger3 = (StateNo = 1300) && (Time = [12,38]) ;ちょっとこ丸が追加
[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3900
triggerall = var(59) = 0
triggerall = palno <=6
triggerall = command = "236236c"
triggerall = power >= 3000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != 103300
trigger2 = movecontact
trigger3 = (StateNo = 3800) && (Time = [60,80]) ;ちょっとこ丸が追加

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3800
triggerall = var(59) = 0
triggerall = palno <=6
triggerall = command = "236236b"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != 103300
trigger2 = movecontact
trigger3 = (StateNo = 1300) && (Time = [12,38]) ;ちょっとこ丸が追加

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 103300
triggerall = var(59) = 0
triggerall = palno >=7
triggerall = command = "236236b"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != 103300
trigger2 = movecontact
trigger3 = (StateNo = 1300) && (Time = [12,38]) ;ちょっとこ丸が追加
[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 103400
triggerall = var(59) = 0
triggerall = palno >=7
triggerall = command = "214214b"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != 103300
trigger2 = movecontact
trigger3 = (StateNo = 1300) && (Time = [12,38]) ;ちょっとこ丸が追加
[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3600
triggerall = var(59) = 0
triggerall = palno <=6
triggerall = command = "214214b"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != 103300
trigger2 = movecontact
trigger3 = (StateNo = 1300) && (Time = [12,38]) ;ちょっとこ丸が追加



[State -1, スマッシュカンフーアッパー];ゲージレベル１
type = ChangeState
value = 3240
triggerall = var(59) = 0
triggerall = palno <= 6
triggerall = numhelper(250) = 0
triggerall = command = "214214a"  ;「SmashKFUpper」の名前のコマンドが入力されたら
triggerall = power >= 1000             ;パワーゲージがレベル１以上溜まっている時（※）
triggerall = statetype != A            ;「空中」ではない時
trigger1 = ctrl                        ;コントロールが可能な場合
trigger2 = hitdefattr = SC, NA, SA, HA ;自分の「HitDefの一部の攻撃属性」が出ている時（テンプレート参照）
trigger2 = stateno != [3050,3100)      ;現在のステートが「3050以上、3100未満」の間のどれかな場合
trigger2 = movecontact                 ;攻撃が相手に触れている時（ヒット・ガード両方）
trigger3 = (StateNo = 1300) && (Time = [12,38]) ;ちょっとこ丸が追加

[State -1, スマッシュカンフーアッパー];ゲージレベル１
type = ChangeState
value = 103200
triggerall = var(59) = 0
triggerall = palno >= 7
triggerall = command = "214214a"  ;「SmashKFUpper」の名前のコマンドが入力されたら
triggerall = power >= 1000             ;パワーゲージがレベル１以上溜まっている時（※）
triggerall = statetype != A            ;「空中」ではない時
trigger1 = ctrl                        ;コントロールが可能な場合
trigger2 = hitdefattr = SC, NA, SA, HA ;自分の「HitDefの一部の攻撃属性」が出ている時（テンプレート参照）
trigger2 = stateno != [103100,103400)      ;現在のステートが「3050以上、3100未満」の間のどれかな場合
trigger2 = movecontact                 ;攻撃が相手に触れている時（ヒット・ガード両方）
trigger3 = (StateNo = 1300) && (Time = [12,38]) ;ちょっとこ丸が追加

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

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3100
triggerall = var(59) = 0
triggerall = palno <= 6
triggerall = command = "236236a"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != [3000,3050)
trigger2 = movecontact
trigger3 = (StateNo = 1300) && (Time = [12,38]) ;ちょっとこ丸が追加

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 103100
triggerall = var(59) = 0
triggerall = palno >=7
triggerall = command = "236236a"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != [103100,103400)
trigger2 = movecontact
trigger3 = (StateNo = 1300) && (Time = [12,38]) ;ちょっとこ丸が追加

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

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

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

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


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

[State -1, あてみ];ゲージ消費
type = ChangeState
value = 1040
triggerall = palno <= 6
triggerall = command = "214_c"
triggerall = power >= 500
trigger1 = var(1)

[State -1, さまそ];ゲージ消費
type = ChangeState
value = 1050
triggerall = palno <= 6
triggerall = command = "623_c"
triggerall = power >= 500
trigger1 = var(1)

[State -1, あてみ];ゲージ消費
type = ChangeState
value = 1020
triggerall = palno <= 6
triggerall = command = "214_b"
trigger1 = var(1)

[State -1, サマソ];ゲージ消費
type = ChangeState
value = 1030
triggerall = palno <= 6
triggerall = command = "623_b"
trigger1 = var(1)

[State -1, あてみ]
type = ChangeState
value = 1000
triggerall = palno <= 6
triggerall = command = "214_a"
trigger1 = var(1)

[State -1, さまそ]
type = ChangeState
value = 1010
triggerall = palno <= 6
triggerall = command = "623_a"
trigger1 = var(1)

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

[State -1, 速いカンフーブロー];ゲージ消費
type = ChangeState
value = 1220
triggerall = palno <= 6
triggerall = command = "236_c"
triggerall = power >= 330
trigger1 = var(1)

[State -1, 弱カンフーブロー]
type = ChangeState
value = 1200
triggerall = palno <= 6
triggerall = command = "236_a"
trigger1 = var(1)

[State -1, 強カンフーブロー]
type = ChangeState
value = 1210
triggerall = palno <= 6
triggerall = command = "236_b"
trigger1 = var(1)

;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
[State -1, ]
type = ChangeState
value = 101000
triggerall = palno >= 7
triggerall = command = "236_a"
trigger1 = var(1)

[State -1, ]
type = ChangeState
value = 101010
triggerall = palno >= 7
triggerall = command = "236_b"
trigger1 = var(1)
trigger2 = (stateno = 101000) && movecontact

[State -1, ]
type = ChangeState
value = 101020
triggerall = palno >= 7
triggerall = command = "236_c"
trigger1 = var(1)
trigger2 = (stateno = [101000,101010]) && movecontact

[State -1, ]
type = ChangeState
value = 101200
triggerall = palno >= 7
triggerall = command = "214_a"
trigger1 = var(1)

[State -1, ]
type = ChangeState
value = 101210
triggerall = palno >= 7
triggerall = command = "214_b"
trigger1 = var(1)

[State -1, ]
type = ChangeState
value = 101220
triggerall = palno >= 7
triggerall = command = "214_c"
trigger1 = var(1)
;==============================================================================
; 移動関連
;==============================================================================
;------------------------------------------------------------------------------

[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 = 800
triggerall = var(59) = 0
triggerall = command = "b"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 40
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 40
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

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

[State -1, ]
type = ChangeState
value = 700
triggerall = var(59) = 0
triggerall = palno <= 6
triggerall = power >= 500
triggerall = command = "y"
trigger1 = stateno = [200,1999]
trigger1 = movecontact
trigger1 = stateno != [1040,1051]
trigger1 = stateno != 1220
trigger2 = stateno = 701

[State -1, ]
type = ChangeState
value = 700
triggerall = var(59) = 0
triggerall = palno >= 7
triggerall = power >= 500
triggerall = command = "y"
trigger1 = (stateno = [200,499]) || (stateno=[100000,101299]) || stateno = 103101
trigger1 = movecontact

[State -1, 回避]
type = ChangeState
value = 105
triggerall = var(59) = 0
triggerall = statetype != A
triggerall = palno >= 7
triggerall = command = "z"
triggerall = command = "holdback"
trigger1 = ctrl

[State -1, 回避]
type = ChangeState
value = 100
triggerall = var(59) = 0
triggerall = statetype != A
triggerall = palno >= 7
triggerall = command = "z"
triggerall = command != "holdback"
trigger1 = ctrl

[State -1, 回避]
type = ChangeState
value = 115
triggerall = var(59) = 0
triggerall = !var(11)
triggerall = statetype = A
triggerall = palno >= 7
triggerall = (command = "z") ||(command="BB")
triggerall = command = "holdback"
trigger1 = ctrl

[State -1, 回避]
type = ChangeState
value = 110
triggerall = var(59) = 0
triggerall = !var(11)
triggerall = statetype = A
triggerall = palno >= 7
triggerall = (command = "z") || (command="FF")
triggerall = command != "holdback"
trigger1 = ctrl

[State -1, シールド];ちょっとこ丸が追加した技
type = ChangeState
value = 701
triggerall = var(59) = 0
triggerall = palno <= 6
triggerall = command = "z"
trigger1 = ctrl

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

[State -1, 立ち弱パンチ]
type = ChangeState
value = 200
triggerall = var(59) = 0
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 3

[State -1, 立ち強パンチ]
type = ChangeState
value = 220
triggerall = var(59) = 0
triggerall = command = "c"
triggerall = command != "holdfwd"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 3
trigger3 = (stateno = 210) && time > 8

[State -1, 立ち弱キック]
type = ChangeState
value = 210
triggerall = var(59) = 0
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 4

[State -1, 立ち強キック]
type = ChangeState
value = 230
triggerall = var(59) = 0
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 210) && time > 8

[State -1, 立ち強キック]
type = ChangeState
value = 240
triggerall = var(59) = 0
triggerall = palno <=6
triggerall = numhelper(250) = 0
triggerall = command = "x"
trigger1 = statetype != A
trigger1 = ctrl

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

[State -1, ]
type = ChangeState
value = 300
triggerall = var(59) = 0
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 300
trigger2 = time > 3

[State -1, ]
type = ChangeState
value = 310
triggerall = var(59) = 0
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 300) && time > 3

[State -1, ]
type = ChangeState
value = 320
triggerall = var(59) = 0
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 300) && time > 4
trigger3 = (stateno = 310) && time > 8
;------------------------------------------------------------------------------
[State -1, ]
type = ChangeState
value = 400
triggerall = var(59) = 0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 400
trigger2 = time > 3

[State -1, ]
type = ChangeState
value = 410
triggerall = var(59) = 0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 400) && time > 3

[State -1, ]
type = ChangeState
value = 420
triggerall = var(59) = 0
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 400) && time > 4
trigger3 = (stateno = 410) && time > 8
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------


[State -1, サマソ];ゲージ消費
type = ChangeState
value = 1030
triggerall = statetype != A
triggerall = var(59) = 1
triggerall = palno <= 6
trigger1 = ctrl
trigger1 = p2movetype = A && InGuarddist
trigger1 = parent,stateno != 701
trigger1 = random%3 = 1

[State -1, ]
type = ChangeState
value = 701
triggerall = stateno != 702
triggerall = var(59) = 1
triggerall = palno <= 5
triggerall = statetype != A
trigger1 = ctrl
trigger1 = p2movetype = A && InGuarddist
trigger1 = parent,stateno != 701
;==============================================================================

[State -1, ]
type = selfState
value = 3702
triggerall = var(59) =1
triggerall = palno <=6
triggerall = power >= 3000
trigger1 = stateno = 3601 && time > 160
[State -1, ]
type = selfState
value = 3602
triggerall = var(59) = 1
triggerall = palno <=6
triggerall = random%10 = 1
triggerall = power >= 5000
triggerall = p2bodydist x < 70
trigger1 = movetype = H
trigger2 = stateno = [5000,5199]
[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3900
triggerall = palno <=6
triggerall = var(59) = 1
triggerall = power >= 3000
triggerall = random%20 = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = p2stateno = [5100,5110]
trigger2 = (StateNo = 3800) && (Time = [60,80]) ;ちょっとこ丸が追加

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3800
triggerall = palno <=6
triggerall = var(59) = 1
triggerall = power >= 2000
triggerall = statetype = S
triggerall = random%30 = 1
trigger1 = (stateno = [200,1220])&&movecontact
trigger1 = p2bodydist x < 50 
trigger2 = p2statetype = A
trigger2 = p2bodydist x < 80
trigger2 = ctrl

[State -1, スマッシュカンフーアッパー];ゲージレベル１
type = ChangeState
value = 3240
triggerall = palno <= 6
triggerall = numhelper(250) = 0
triggerall = var(59) = 1
triggerall = random%40 = 1
triggerall = power >= 1000             ;パワーゲージがレベル１以上溜まっている時（※）
triggerall = statetype != A            ;「空中」ではない時
trigger1 = ctrl                        ;コントロールが可能な場合
trigger1 = p2bodydist x > 180 

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 3100
triggerall = palno <= 6
triggerall = power >= 1000
triggerall = random%40 = 1
triggerall = var(59) = 1
trigger1 = statetype != A
trigger1 = hitdefattr = SC, NA, SA, HA
trigger1 = stateno != [3000,3050)
trigger1 = stateno != 230
trigger1 = movecontact
;------------------------------------------------------------------------------

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 103300
triggerall = palno >=7
triggerall = var(59) = 1
triggerall = power >= 2000
trigger1 = stateno = 103101
trigger1 = movehit && time >= 8

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 103100
triggerall = palno >=7
triggerall = var(59) = 1
triggerall = power >= 3000
trigger1 = stateno = [101000,101020]
trigger1 = movehit

[State -1, 三烈カンフー突き手];ゲージレベル１
type = ChangeState
value = 103100
triggerall = palno >=7
triggerall = var(59) = 1
triggerall = power >= 1000
triggerall = random%40 = 1
trigger1 = stateno = 101020
trigger1 = movehit

;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
[State -1, ]
type = ChangeState
value = 101000
triggerall = palno >= 7
triggerall = var(59) = 1
triggerall = p2bodydist x <=85
triggerall = p2stateno != [5100,5199]
trigger1 = ctrl
trigger1 = p2statetype != A
trigger1 = statetype != A
trigger2 = stateno = 220
trigger2 = movecontact

[State -1, ]
type = ChangeState
value = 101010
triggerall = palno >= 7
triggerall = var(59) = 1
trigger1 = stateno = 101000
trigger1 = movecontact

[State -1, ]
type = ChangeState
value = 101020
triggerall = palno >= 7
triggerall = var(59) = 1
trigger1 = stateno = 101010
trigger1 = movecontact

[State -1, ]
type = null;ChangeState
value = 101200
triggerall = palno >= 7
triggerall = var(59) = 1
triggerall = p2bodydist x = [55,85]
trigger1 = ctrl
trigger1 = statetype != A
trigger1 = enemy,pos y >= -150

[State -1, ]
type = ChangeState
value = 101210
triggerall = palno >= 7
triggerall = var(59) = 1
triggerall = p2bodydist x = [125,155]
trigger1 = ctrl
trigger1 = statetype != A
trigger1 = enemy,pos y >= -150

[State -1, ]
type = ChangeState
value = 101220
triggerall = palno >= 7
triggerall = var(59) = 1
triggerall = p2bodydist x = [195,225]
trigger1 = ctrl
trigger1 = statetype != A
trigger1 = enemy,pos y >= -150
;------------------------------------------------------------------------------

[State -1, あてみ];ゲージ消費
type = ChangeState
value = 1040
triggerall = statetype != A
triggerall = power >= 1500
triggerall = var(59) = 1
triggerall = palno <= 6
triggerall = p2bodydist x < 70
trigger1 = p2movetype = A
trigger1 = ctrl
trigger1 = random%5 = 3

[State -1, さまそ];ゲージ消費
type = ChangeState
value = 1050
triggerall = statetype != A
triggerall = power >= 1500
triggerall = var(59) = 1
triggerall = palno <= 6
trigger1 = ctrl
trigger1 = p2movetype != H
trigger1 = p2statetype = A
trigger1 = p2bodydist x < 70
trigger1 = statetype != A

[State -1, あてみ];ゲージ消費
type = ChangeState
value = 1020
triggerall = statetype != A
triggerall = var(59) = 1
triggerall = palno <= 6
triggerall = p2bodydist x < 70
trigger1 = p2movetype = A
trigger1 = ctrl
trigger1 = random%5 = 2

[State -1, サマソ];ゲージ消費
type = ChangeState
value = 1030
triggerall = statetype != A
triggerall = var(59) = 1
triggerall = palno <= 6
trigger1 = ctrl
trigger1 = p2movetype != H
trigger1 = p2statetype = A
trigger1 = p2bodydist x < 70
trigger1 = statetype != A

[State -1, あてみ]
type = ChangeState
value = 1000
triggerall = statetype != A
triggerall = var(59) = 1
triggerall = palno <= 6
triggerall = p2bodydist x < 110
trigger1 = p2movetype = A
trigger1 = ctrl
trigger1 = random%5 = 1

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

[State -1, ]
type = ChangeState
value = 1220
triggerall = palno <= 6
triggerall = var(59) = 1
triggerall = power >= 1500
triggerall = random%20 = 1
trigger1 = stateno = [200,210]
trigger1 = movecontact

[State -1, ]
type = ChangeState
value = 1200
triggerall = palno <= 6
triggerall = var(59) = 1
triggerall = p2bodydist x < 40
trigger1 = stateno = [200,210]
trigger1 = movecontact

[State -1, ]
type = ChangeState
value = 1210
triggerall = palno <= 6
triggerall = var(59) = 1
triggerall = p2bodydist x < 40
trigger1 = stateno = 220
trigger1 = movecontact
;------------------------------------------------------------------------------
;==============================================================================
; 移動関連
;==============================================================================
;------------------------------------------------------------------------------

[State -1, 走る]
type = ChangeState
value = 100
triggerall = statetype != A
triggerall = var(59) = 1
triggerall = random%20 = 1
trigger1 = stateno != 100
trigger1 = p2bodydist x >= 160
trigger1 = ctrl

;==============================================================================

[State -1, カンフースルー];投げ技
type = ChangeState
value = 800
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl
triggerall = p2bodydist X < 40
trigger1 = random%10 = 1
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = p2stateno = 151
;==============================================================================
; 通常攻撃技
;==============================================================================
;------------------------------------------------------------------------------

[State -1, 立ち弱パンチ]
type = ChangeState
value = 200
triggerall = p2stateno != [5100,5199]
triggerall = var(59) = 1
triggerall = p2bodydist x < 30
triggerall = enemy,pos y >= -70
trigger1 = statetype != A
trigger1 = ctrl

[State -1, 立ち強パンチ]
type = ChangeState
value = 220
triggerall = var(59) = 1
triggerall = p2bodydist x < 100
trigger1 = (stateno = 210) && time > 3
trigger1 = movecontact

[State -1, 立ち弱キック]
type = ChangeState
value = 210
triggerall = p2bodydist x < 65
triggerall = var(59) = 1
trigger1 = (stateno = 200) && time > 4
trigger1 = movecontact

[State -1, 立ち強キック]
type = ChangeState
value = 230
triggerall = p2bodydist x < 60
triggerall = var(59) = 1
triggerall = statetype != A
trigger1 = enemy,pos y = [-100,-70]
trigger1 = ctrl
trigger2 = (stateno = 210) && time > 8
trigger2 = movecontact
trigger3 = statetype != A
trigger3 = stateno = 702 && time > 6

[State -1, 立ち強キック]
type = ChangeState
value = 240
triggerall = palno <6
triggerall = numhelper(250) = 0
triggerall = var(59) = 1
triggerall = random%50 = 1
trigger1 = enemy,power>= 2000
trigger1 = statetype != A
trigger1 = ctrl
[State -1, 立ち強キック]
type = ChangeState
value = 240
triggerall = palno =6
triggerall = numhelper(250) = 0
triggerall = var(59) = 1
trigger1 = statetype != A
trigger1 = ctrl

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

[State -1, ]
type = ChangeState
value = 300
triggerall = p2bodydist x < 55
triggerall = var(59) = 1
trigger1 = statetype = C
trigger1 = ctrl
trigger1 = p2stateno = 120 || p2stateno = 130 || p2stateno = 140 || p2stateno = 150

[State -1, ]
type = ChangeState
value = 310
triggerall = p2bodydist x < 90
triggerall = var(59) = 1
trigger1 = (stateno = 300) && time > 3
trigger1 = movecontact

[State -1, ]
type = ChangeState
value = 320
triggerall = p2bodydist x < 120
triggerall = var(59) = 1
trigger1 = movecontact
trigger1 = (stateno = 310) && time > 8
;------------------------------------------------------------------------------
[State -1, ]
type = ChangeState
value = 400
triggerall = p2bodydist x < 70
triggerall = var(59) = 1
triggerall = random%3 = 2
trigger1 = statetype = A
trigger1 = ctrl

[State -1, ]
type = ChangeState
value = 410
triggerall = var(59) = 1
triggerall = p2bodydist x < 80
triggerall = random%3 = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 400) && time > 3
trigger2 = movecontact

[State -1, ]
type = ChangeState
value = 420
triggerall = p2bodydist x < 70
triggerall = var(59) = 1
trigger1 = stateno = 410 && time >= 15
trigger1 = movecontact
trigger2 = movecontact
trigger2 = stateno = 1030 && time >= 10
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------

;AI用スイッチ
[State -1, AIflg]
type = VarSet
triggerall = var(59) != 1
trigger1 = command = "CPU_01"
trigger2 = command = "CPU_02"
trigger3 = command = "CPU_03"
trigger4 = command = "CPU_04"
trigger5 = command = "CPU_05"
trigger6 = command = "CPU_06"
trigger7 = command = "CPU_07"
trigger8 = command = "CPU_08"
trigger9 = command = "CPU_09"
trigger10= command = "CPU_10"
trigger11= command = "CPU_11"
trigger12= command = "CPU_12"
trigger13= command = "CPU_13"
trigger14= command = "CPU_14"
trigger15= command = "CPU_15"
trigger16= command = "CPU_16"
trigger17= command = "CPU_17"
trigger18= command = "CPU_18"
trigger19= command = "CPU_19"
trigger20= command = "CPU_20"
trigger21= command = "CPU_21"
trigger22= command = "CPU_22"
trigger23= command = "CPU_23"
trigger24= command = "CPU_24"
trigger25= command = "CPU_25"
trigger26= command = "CPU_26"
trigger27= command = "CPU_27"
trigger28= command = "CPU_28"
trigger29= command = "CPU_29"
trigger30= command = "CPU_30"
trigger31= command = "CPU_31"
trigger32= command = "CPU_32"
trigger33= command = "CPU_33"
trigger34= command = "CPU_34"
trigger35= command = "CPU_35"
trigger36= command = "CPU_36"
trigger37= command = "CPU_37"
trigger38= command = "CPU_38"
trigger39= command = "CPU_39"
trigger40= command = "CPU_40"
trigger41= command = "CPU_41"
trigger42= command = "CPU_42"
trigger43= command = "CPU_43"
trigger44= command = "CPU_44"
trigger45= command = "CPU_45"
trigger46= command = "CPU_46"
trigger47= command = "CPU_47"
trigger48= command = "CPU_48"
trigger49= command = "CPU_49"
trigger50= command = "CPU_50"
v = 59
value = 1