; - コマンドの指定方法
;   方向キーとボタンはカンマ（ , ）で区切ります。
;   特殊文字を先に置くことにより、コマンドの指示ができます。
;
;   スラッシュ (/) - ボタンを押しっぱなしにする
;          例. command = /D       ;下方向に入力されたままの状態
;               command = /F, a    ;前方向を入力した状態でaボタンを押す
;
;   チルダ (~) - ボタンが放される
;          例. command = ~a       ;aボタンが離される
;               command = ~D, F, a ;下方向が離された後、前方向が入力されて、aボタン
;
;          数字を指定することで、入力時間を指定できます
;          例. command = ~30a     ;30フレームaボタンを押しっぱなしにした後で放す
;               command = ~30
;
;   ドル ($) - 複数方向指示
;          例. command = $D       ;D, DB または DF を含みます
;               command = $B       ; B, DB または UB を含みます
;
;   プラス (+) - ボタンの同時押し
;          例. command = a+b      ;ab同時押し
;               command = x+y+z    ;xyz同時押し
;
;   これらは、組み合わせて使用することも可能です
;     例. command = ~30$D, a+b     ;下方向（ D,DB,DFいずれか ）に30フレーム入力して
;                                  　　　　　　　放した後に、ab同時押し
;
; - time (オプション)
;   時間以内にコマンドを入力する必要のある時に使用します。



;-| ＣＰＵ判定用フラグ |--------------------------------------------------------
[Command]
name = "AI1"
command = D,D,D,F,F,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI2"
command = D,D,D,F,F,U,a+b+c+x+y+z
time = 1

[Command]
name = "AI3"
command = D,D,D,F,F,UF,a+b+c+x+y+z
time = 1

[Command]
name = "AI4"
command = D,D,D,F,F,D,a+b+c+x+y+z
time = 1

[Command]
name = "AI5"
command = D,D,D,F,F,DF,a+b+c+x+y+z
time = 1

[Command]
name = "AI6"
command = D,D,D,F,F,B,a+b+c+x+y+z
time = 1

[Command]
name = "AI7"
command = D,D,D,F,F,DB,a+b+c+x+y+z
time = 1

[Command]
name = "AI8"
command = D,D,D,F,F,UB,a+b+c+x+y+z
time = 1

[Command]
name = "AI9"
command = D,D,D,F,U,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI10"
command = D,D,D,F,UF,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI11"
command = D,D,D,F,DF,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI12"
command = D,D,D,F,D,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI13"
command = D,D,D,F,DB,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI14"
command = D,D,D,F,B,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI15"
command = D,D,D,F,UB,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI16"
command = D,D,D,F,F,F,a+b+c+x+y,z
time = 1

[Command]
name = "AI17"
command = D,D,D,F,F,F,a+b+c+x,y,z
time = 1

[Command]
name = "AI18"
command = D,D,D,F,F,F,a+b+c,x,y,z
time = 1

[Command]
name = "AI19"
command = D,D,D,F,F,F,a+b,c,x,y,z
time = 1

[Command]
name = "AI20"
command = D,D,D,F,F,F,a,b,c,x,y,z
time = 1

[Command]
name = "AI21"
command = D,D,D,F,F,F,a+b+c,x+y+z
time = 1

[Command]
name = "AI22"
command = D,D,D,F,F,U,a+b,c+x+y+z
time = 1

[Command]
name = "AI23"
command = D,D,D,F,F,UF,a,b+c+x+y+z
time = 1

[Command]
name = "AI24"
command = D,D,D,F,F,U,a+b,c+x+y+z
time = 1

[Command]
name = "AI25"
command = D,D,D,F,F,DF,a,b,c+x+y+z
time = 1

[Command]
name = "AI26"
command = D,D,D,F,F,B,a+b,c+x,y+z
time = 1

[Command]
name = "AI27"
command = D,D,D,F,F,DB,a,b+c+x,y+z
time = 1

[Command]
name = "AI28"
command = D,D,D,F,F,UB,a,b+c+x+y,z
time = 1

[Command]
name = "AI29"
command = DF,D,D,F,U,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI30"
command = B,D,D,F,UF,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI31"
command = B,B,BD,F,DF,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI32"
command = D,F,F,F,D,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI33"
command = DF,D,DF,UF,DB,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI34"
command = D,D,D,F,DB,DF,a+b+c+x+y+z
time = 1

[Command]
name = "AI35"
command = D,D,UF,DF,UB,UF,a+b+c+x+y+z
time = 1

[Command]
name = "AI36"
command = D,DF,DF,DF,DF,F,a+b+c+x+y,z
time = 1

[Command]
name = "AI37"
command = D,D,DB,UF,DF,UF,a+b+c+x,y,z
time = 1

[Command]
name = "AI38"
command = F,U,F,F,F,F,a,b+c,x,y,z
time = 1

[Command]
name = "AI39"
command = DF,UF,D,DF,U,F,a+b,c+x,y,z
time = 1

[Command]
name = "AI40"
command = D,D,D,D,F,D,a+b,c,x,y+z
time = 1

[Command]
name = "AI41"
command = D,D,D,F,F,F,a+b+c+x+y+z,a
time = 1

[Command]
name = "AI42"
command = D,D,D,F,F,U,a+b+c+x+y+z,b
time = 1

[Command]
name = "AI43"
command = D,D,D,F,F,UF,a+b+c+x+y+z,c
time = 1

[Command]
name = "AI44"
command = D,D,D,F,F,D,a+b+c+x+y+z,x
time = 1

[Command]
name = "AI45"
command = D,D,D,F,F,DF,a+b+c+x+y+z,y
time = 1

[Command]
name = "AI46"
command = D,D,D,F,F,B,a+b+c+x+y+z,z
time = 1

[Command]
name = "AI47"
command = D,D,D,F,F,DB,a+b+c+x+y+z,a+b
time = 1

[Command]
name = "AI48"
command = D,D,D,F,F,UB,a+b+c+x+y+z,a+c
time = 1

[Command]
name = "AI49"
command = D,D,D,F,U,F,a+b+c+x+y+z,b+c
time = 1

[Command]
name = "AI50"
command = D,D,D,F,UF,F,a+b+c+x+y+z,x+z
time = 1







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

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

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

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

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

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

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


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

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

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


[Command]
name = "246_b"
command = ~D, B, F, b
time = 15


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

;[Command] 
;name = "2626_ab"
;command = ~D, F, D, F, a+b
;time = 30

;[Command] 
;name = "2626_bc"
;command = ~D, F, D, F, b+c
;time = 30

[Command]
name = "246_ab"
command = ~D, B, F, a+b
time = 30

;[Command]
;name = "246_bc"
;command = ~D, B, F, b+c
;time = 30

[Command]
name = "426426_bc"
command = ~B, D, F, B, D, F, b+c
time = 30

[Command]
name = "426426_bc"
command = ~B, D, F, B, D, F, b+c
time = 30

[Command]
name = "6426_ab"
command = ~F, B, D, F, a+b
time = 30


;-| ２回押し技 |-----------------------------------------------------------

[Command]
name = "FF"     
command = F, F
time = 20

[Command]
name = "BB"     
command = B, B
time = 20


;-| ２・３個の同時押し技 |-----------------------------------------------

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

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



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

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



;------------------------------------------------------------
; ハイジャンプコマンド

;下をちょっと押して上を押す、と言う意味。
[Command]
name = "jump"    
command = ~D,$U
time = 10

;-| リコイル |--------------------------------------------------------------
[Command]
name = "s_rg"
command = B
time = 1

[Command]
name = "c_rg"
command = DB
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 = "up" 
command = $U
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

[Command]
name = "holdz"
command = /$z
time = 1

[Command]
name = "holda"
command = /$a
time = 1

[Command]
name = "holdb"
command = /$b
time = 1

[Command]
name = "holdc"
command = /c





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


;===========================================================================
; 潜在
;===========================================================================
; 星流れ

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

; 乱舞
[State -1, mouko]
type = ChangeState
value = 4000
triggerall = !var(50)
triggerall = command = "6426_ab"
triggerall = power >= 2000
trigger1 = statetype = S && ctrl
trigger2 = (stateno = [165,166])  && time >= 5
trigger3 = (stateno = 200) && movecontact && animelem=5, >=0
trigger4 = (stateno = 210) && movecontact && animelem=7, >=0
trigger5 = (stateno = 220) && movecontact && animelem=8, >=0
trigger6 = (stateno = 400) && movecontact && animelem=4, >=6
trigger7 = (stateno = 410) && movecontact && vel y > 0 && pos y >= -20

; 蒙古覇極道
[State -1, mouko]
type = ChangeState
value = 3000
triggerall = !var(50)
triggerall = command = "246_ab"
triggerall = power >= 1000
trigger1 = statetype = S && ctrl
trigger2 = (stateno = [165,166]) && time >= 5
trigger3 = (stateno = 200) && movecontact && animelem=5, >=0
trigger4 = (stateno = 210) && movecontact && animelem=7, >=0
trigger5 = (stateno = 220) && movecontact && animelem=8, >=0
trigger6 = (stateno = 400) && movecontact && animelem=4, >=6
trigger7 = (stateno = 410) && movecontact && vel y > 0 && pos y >= -20
;trigger8 = (stateno = 1100) && movecontact && vel y > 0 && pos y >= -20

; 投げ
[State -1, mouko]
type = ChangeState
value = 3200
triggerall = !var(50)
triggerall = command = "426426_bc" ;|| command = "start"
triggerall = power >= 1000
trigger1 = statetype = S && ctrl
trigger2 = (stateno = [165,166])  && time >= 5


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

; レイガンA
[State -1, Stand Light Punch]
type = ChangeState
value = 1000
triggerall = !var(50)
triggerall = command = "236_a"
triggerall = !numprojid(1000)
trigger1 = statetype = S && ctrl
trigger2 = (stateno = [165,166])  && time >= 5
trigger3 = (stateno = 200) && movecontact && animelem=5, >=0
trigger4 = (stateno = 210) && movecontact && animelem=7, >=0
trigger5 = (stateno = 220) && movecontact && animelem=8, >=0
trigger6 = (stateno = 400) && movecontact && animelem=4, >=6

; レイガンB
[State -1, Stand Light Punch]
type = ChangeState
value = 1050
triggerall = !var(50)
triggerall = command = "236_b"
triggerall = !numprojid(1000)
trigger1 = statetype = S && ctrl
trigger2 = (stateno = [165,166])  && time >= 5
trigger3 = (stateno = 200) && movecontact && animelem=5, >=0
trigger4 = (stateno = 210) && movecontact && animelem=7, >=0
trigger5 = (stateno = 220) && movecontact && animelem=8, >=0
trigger6 = (stateno = 400) && movecontact && animelem=4, >=6

; 掌底
[State -1, Stand Light Punch]
type = ChangeState
value = 1100
triggerall = !var(50)
triggerall = command = "246_b"
trigger1 = statetype = S && ctrl
trigger2 = (stateno = [165,166])  && time >= 5
trigger3 = (stateno = 200) && movecontact && animelem=5, >=0
trigger4 = (stateno = 210) && movecontact && animelem=7, >=0
trigger5 = (stateno = 220) && movecontact && animelem=8, >=0
trigger6 = (stateno = 400) && movecontact && animelem=4, >=6
trigger7 = (stateno = 410) && movecontact && vel y > 0 && pos y >= -20

; 対空抜刀斬り（昇竜拳C）
[State -1, Stand Light Punch]
type = ChangeState
value = 1200
triggerall = !var(50)
triggerall = command = "623_c"
trigger1 = statetype = S && ctrl
trigger2 = (stateno = [165,166])  && time >= 5
trigger3 = (stateno = 200) && movecontact && animelem=5, >=0
trigger4 = (stateno = 210) && movecontact && animelem=7, >=0
trigger5 = (stateno = 220) && movecontact && animelem=8, >=0

; 空中急襲蹴り（竜巻A）

;===========================================================================
; 特殊系
;===========================================================================
;---------------------------------------------------------------------------
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = !var(50)
triggerall = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl
triggerall = stateno != 100

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

;空中ダッシュ
[State -1, airdashF]
type = ChangeState
value = 101
triggerall = command = "FF"
triggerall = statetype = A
triggerall = ctrl
triggerall = vel Y = [-9,9] ;高速落下時ダッシュ不可
triggerall = var(5) <= 2
trigger1 = stateno != 101
trigger2 = stateno = 101 && time > 14        ;空中前ダッシュ中でも指定時間が経過すれば可

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

;ブロッキング
[State -1, Blocking]
type = ChangeState
value = 160
triggerall = !var(50)
triggerall = command = "x"
trigger1 = ctrl && statetype = S
trigger2 = stateno = 165 && time >= 5

;しゃがみブロッキング
[State -1, Blocking]
type = ChangeState
value = 161
triggerall = !var(50)
triggerall = command = "x"
trigger1 = ctrl && statetype = c
trigger2 = stateno = 166 && time >= 5

;空中ブロッキング
[State -1, Blocking]
type = ChangeState
value = 162
triggerall = !var(50)
triggerall = command = "x"
trigger1 = ctrl && statetype = a
trigger2 = stateno = 167 && time >= 5

;---------------------------------------------------------------------------
;前ワープ

[State -1, Run Back]
type = ChangeState
value = 900
triggerall = !var(50)
triggerall = command = "away-f"
triggerall = statetype = S
trigger1 = ctrl

;後ワープ

[State -1, Run Back]
type = ChangeState
value = 910
triggerall = !var(50)
triggerall = command = "away-b"
triggerall = statetype = S
trigger1 = ctrl


;---------------------------------------------------------------------------
;投げ
[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = !var(50)
triggerall = command = "bc"
triggerall = statetype = S && ctrl
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

;===========================================================================
;基本技
;===========================================================================
;---------------------------------------------------------------------------
; 立ちA
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = !var(50)
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S && ctrl
trigger2 = (stateno = 165)  && time >= 5

; 立ちB
[State -1, Stand Light Punch]
type = ChangeState
value = 210
triggerall = !var(50)
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S && ctrl
trigger2 = (stateno = 165)  && time >= 5
trigger3 = (stateno = 200) && movecontact && animelem=5, >=0

; 立ちC
[State -1, Stand Light Punch]
type = ChangeState
value = 220
triggerall = !var(50)
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S && ctrl
trigger2 = (stateno = 165)  && time >= 5
trigger3 = (stateno = 200) && movecontact && animelem=5, >=0

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

;しゃがみA
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = !var(50)
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = (stateno = 166)  && time >= 5

;しゃがみB
[State -1, Crouching Light Punch]
type = ChangeState
value = 410
triggerall = !var(50)
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = (stateno = 166)  && time >= 5
trigger3 = (stateno = 400) && movecontact && animelem=4, >=6

;しゃがみC
[State -1, Crouching Light Punch]
type = ChangeState
value = 420
triggerall = !var(50)
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = (stateno = 166)  && time >= 5
trigger3 = (stateno = 400) && movecontact && animelem=4, >=6
trigger4 = (stateno = 410) && vel y > 0 && pos y >= -20

;---------------------------------------------------------------------------
;空中A
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = !var(50)
triggerall = command = "a"
trigger1 = statetype = A && ctrl
trigger2 = (stateno = 167)  && time >= 5

;空中B
[State -1, Jump Light Punch]
type = ChangeState
value = 610
triggerall = !var(50)
triggerall = command = "b"
trigger1 = statetype = A && ctrl
trigger2 = (stateno = 167)  && time >= 5

;空中C
[State -1, Jump Light Punch]
type = ChangeState
value = 620
triggerall = !var(50)
triggerall = command = "c"
trigger1 = statetype = A && ctrl
trigger2 = (stateno = 167)  && time >= 5
trigger3 = (stateno = 600) && movecontact
trigger4 = (stateno = 610) && movecontact

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













