
;-| CPUアルゴリズム用コマンド |------------------------------
;CPUアルゴリズムを使う際に便利な記述です。
;AIを使わないなら必要ありません。
;これらのコマンドは人間には入力できないものにする必要があります。

[Command]
name = "cpu1"
command = a,U,D,F,F,B,B,D,U,U
time = 1
[Command]
name = "cpu2"
command = b,U,D,F,B,F,B,D,U,D
time = 1
[Command]
name = "cpu3"
command = c,U,D,B,F,B,F,D,U,B
time = 1
[Command]
name = "cpu4"
command = x,U,D,B,F,F,B,D,U,F
time = 1
[Command]
name = "cpu5"
command = y,U,D,F,F,B,B,D,U,a
time = 1
[Command]
name = "cpu6"
command = z,U,D,F,B,F,B,D,U,b
time = 1
[Command]
name = "cpu7"
command = s,U,D,B,F,B,F,D,U,c
time = 1
[Command]
name = "cpu8"
command = b,U,D,B,F,F,B,D,U,x
time = 1
[Command]
name = "cpu9"
command = c,U,D,F,B,F,B,D,U,y
time = 1
[Command]
name = "cpuA"
command = y,U,D,B,F,B,F,D,U,z
time = 1
[Command]
name = "cpuB"
command = z,U,D,B,F,F,B,D,U,s
time = 1
[Command]
name = "cpuC"
command = U,D,F,F,B,B,D,U,a+x
time = 1
[Command]
name = "cpuD"
command = U,D,F,B,F,B,D,U,b+y
time = 1
[Command]
name = "cpuE"
command = U,D,B,F,B,F,D,U,c+z
time = 1
[Command]
name = "cpuF"
command = U,D,s,B,F,F,B,s,D,U
time = 1

[Command] ;同じコマンド名を使えば後が楽になる
name = "cpu1"
command = a,U,D,F,F,B,B,D,U,U,s
time = 1
[Command]
name = "cpu2"
command = b,U,D,F,B,F,B,D,U,D,s
time = 1
[Command]
name = "cpu3"
command = c,U,D,B,F,B,F,D,U,B,s
time = 1
[Command]
name = "cpu4"
command = x,U,D,B,F,F,B,D,U,F,s
time = 1
[Command]
name = "cpu5"
command = y,U,D,F,F,B,B,D,U,a,s
time = 1
[Command]
name = "cpu6"
command = z,U,D,F,B,F,B,D,U,b,s
time = 1
[Command]
name = "cpu7"
command = s,U,D,B,F,B,F,D,U,c,s
time = 1
[Command]
name = "cpu8"
command = b,U,D,B,F,F,B,D,U,x,s
time = 1
[Command]
name = "cpu9"
command = c,U,D,F,B,F,B,D,U,y,s
time = 1
[Command]
name = "cpuA"
command = y,U,D,B,F,B,F,D,U,z,s
time = 1
[Command]
name = "cpuB"
command = z,U,D,B,F,F,B,D,U,s,z
time = 1
[Command]
name = "cpuC"
command = U,D,F,F,B,B,D,U,a+x,s
time = 1
[Command]
name = "cpuD"
command = U,D,F,B,F,B,D,U,b+y,s
time = 1
[Command]
name = "cpuE"
command = U,D,B,F,B,F,D,U,c+z,s
time = 1
[Command]
name = "cpuF"
command = U,D,s,B,F,F,B,s,D,U,z
time = 1


;


;-| 超必殺技 |--------------------------------------------------------
;ここには超必殺技を記述してください、同じ名前を「name =」欄に書けますが
;コマンドは絶対に違ったものにしてください。
;カンフーマンは弱パンチと強パンチで技が出せるように同じ名前のコマンドで
;内容が弱と強になっています。
;「time=20」と書くことで「コマンドを20フレーム以内に入力」と設定できます。


[Command] 
name = "TripleKFPalm"   ;Same name as above
command = ~D, DF, F, D, DF, F, x
time = 40

[Command] 
name = "TripleKFPalm"   ;Same name as above
command = ~D, DF, F, D, DF, F, y
time = 40

[Command] 
name = "ohaousyokouken1"   ;Same name as above
command = ~F, B, DB, D, DF, F, x
time = 40

[Command] 
name = "ohaousyokouken2"   ;Same name as above
command = ~F, B, DB, D, DF, F, y
time = 40

[Command] 
name = "ohaousyokouken1"   ;Same name as above
command = ~F, B, D, F, x
time = 40

[Command] 
name = "ohaousyokouken2"   ;Same name as above
command = ~F, B, D, F, y
time = 30

[Command];交通事故
name = "hikinige"
command = b

[Command];交通事故
name = "chinton"
command = a
;-| 必殺技 |------------------------------------------------------
[Command];カナダ呼び
name = "canada"
command = c

[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_a"
command = ~D, DF, F, a

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

[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 = "board"
command = ~D, DF, F, b
;※※※※※※※※※※※※※※※※※※※※ハイジャンプコマンド
;下をちょっと押して上を押す、と言う意味。
[Command]
name = "jump"    
command = ~D,$U
time = 10

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

;※※※※※※※※※※※※※※※※※※※※前避け
;後を押しながらＡ＋Ｂ、という意味
[Command]
name = "away-b"    
command = /B,a+b
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 = "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 = "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 = "holdx"
command = /$x
time = 1

[Command]
name = "holdy"
command = /$y
time = 1

; 下の記述↓は絶対に消さないでください。
[Statedef -1]

;===========================================================================
;---------------------------------------------------------------------------
;三烈カンフー突き手（ゲージレベル１）
[State -1, Triple Kung Fu Palm]
type = ChangeState
value = 3000
triggerall = command = "TripleKFPalm"
triggerall = power >= 1000
triggerall = Var(20) != 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact

;---------------------------------------------------------------------------
;お覇王翔吼拳(低速
[State -1, Triple Kung Fu Palm]
type = ChangeState
value = 2000
triggerall = command = "ohaousyokouken1"
triggerall = power >= 1000
triggerall = Var(20) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact

;---------------------------------------------------------------------------
;お覇王翔吼拳(高速
[State -1, Triple Kung Fu Palm]
type = ChangeState
value = 2020
triggerall = command = "ohaousyokouken2"
triggerall = power >= 1000
triggerall = Var(20) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact

;===========================================================================
[State -1, 板投げ];ちょっとこ丸が追加した技
type = ChangeState
value = 1300
triggerall = command = "board"
triggerall = NumHelper(1300) = 0 ;ＩＤナンバー「1300」のヘルパーが画面中に１個も出てない時
triggerall = NumProjID(1302) = 0 ;ＩＤナンバー「1302」の飛び道具が画面中に１個も出てない時
trigger1 = var(1)
;---------------------------------------------------------------------------
;速いカンフー突き手（ゲージレベル１／３）
[State -1, Fast Kung Fu Palm]
type = ChangeState
value = 1020
triggerall = command = "QCF_xy"
triggerall = power >= 1000
triggerall = Var(20) != 1
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
;trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

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

;カンフー突き手（強）
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 1015
triggerall = command = "QCF_y"
triggerall = Var(20) != 1
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

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

;カンフー突き手（弱）
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 1010
triggerall = command = "QCF_x"
triggerall = Var(20) != 1
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;===========================================================================
;空中カンフー突き手（強）
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1005
triggerall = command = "QCF_y"
triggerall = Var(20) != 1
trigger1 = statetype != S
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

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

;空中カンフー突き手（弱）
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1000
triggerall = command = "QCF_x"
triggerall = Var(20) != 1
trigger1 = statetype != S
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = Var(20) != 1
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = Var(20) != 1
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl



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




;===========================================================================
;---------------------------------------------------------------------------
;挑発 投げすかりの代わり
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start"
triggerall = Var(20) != 1
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;アーマー解除
[State -1, Taunt]
type = ChangeState
value = 6002
triggerall = command = "z"
triggerall = Var(20) != 1
trigger1 = var(25) = 1
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;アーマー
[State -1, Taunt]
type = ChangeState
value = 6001
triggerall = command = "z"
triggerall = Var(20) != 1
trigger1 = var(25) = 0
trigger1 = statetype != A
trigger1 = ctrl


;---------------------------------------------------------------------------
;立ち弱パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = Var(20) != 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 9
trigger3 = (stateno = 230) && time > 6

;---------------------------------------------------------------------------
;立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = Var(20) != 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 9
trigger3 = (stateno = 230) && time > 6







;---------------------------------------------------------------------------
;空中弱パンチ
[State -1, Jump Strong Kick]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = Var(20) != 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && time > 8
trigger2 = movecontact


;---------------------------------------------------------------------------
;空中強パンチ
[State -1, Jump Strong Kick]
type = ChangeState
value = 610
triggerall = command = "y"
triggerall = Var(20) != 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && time > 8
trigger2 = movecontact

;---------------------------------------------------------------------------
[State -1];カナダ
type = ChangeState
value = 4005
triggerall = Numhelper(1000) = 0
triggerall = command = "canada"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time >= 8
trigger3 = stateno = 210
trigger3 = time >= 8
trigger4 = stateno = 205
trigger4 = time >= 8
;---------------------------------------------------------------------------
;交通事故
[State -1, Stand Y]
type = ChangeState
value = 4000
triggerall = command = "hikinige"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
;---------------------------------------------------------------------------
;ちんとん亭
[State -1]
type = ChangeState
value = 7005
triggerall = NumExplod(7005) = 0
triggerall = command = "chinton"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact