[Command]
name = "cpu"
command = a,U,D,F,F,B,B,D,U,U
time = 1
[Command]
name = "cpu"
command = b,U,D,F,B,F,B,D,U,D
time = 1
[Command]
name = "cpu"
command = c,U,D,B,F,B,F,D,U,B
time = 1
[Command]
name = "cpu"
command = x,U,D,B,F,F,B,D,U,F
time = 1
[Command]
name = "cpu"
command = y,U,D,F,F,B,B,D,U,a
time = 1
[Command]
name = "cpu"
command = z,U,D,F,B,F,B,D,U,b
time = 1
[Command]
name = "cpu"
command = s,U,D,B,F,B,F,D,U,c
time = 1
[Command]
name = "cpu"
command = b,U,D,B,F,F,B,D,U,x
time = 1
[Command]
name = "cpu"
command = c,U,D,F,B,F,B,D,U,y
time = 1
[Command]
name = "cpu"
command = y,U,D,B,F,B,F,D,U,z
time = 1
[Command]
name = "cpu"
command = z,U,D,B,F,F,B,D,U,s
time = 1
[Command]
name = "cpu"
command = U,D,F,F,B,B,D,U,a+x
time = 1
[Command]
name = "cpu"
command = U,D,F,B,F,B,D,U,b+y
time = 1
[Command]
name = "cpu"
command = U,D,B,F,B,F,D,U,c+z
time = 1
[Command]
name = "cpu"
command = U,D,s,B,F,F,B,s,D,U
time = 1
;追加用
[Command]
name = "s"
command = a,U,D,F,x,B,B,D,U,U
time = 1
[Command]
name = "dd"
command = c,U,D,B,z,B,F,D,U,B
time = 1
[Command]
name = "zc"
command = U,D,F,b,B,B,D,U,a+x
time = 1
[Command]
name = "Bing"
command = b,U,D,B,y,F,B,D,U,x
time = 1
[Command]
name = "Bing2"
command = c,U,D,F,B,z,B,D,U,y
time = 1
[Command]
name = "right"
command = z,U,D,F,B,c,B,D,U,b
time = 1
[Command]
name = "down"
command = s,U,D,B,x,B,F,D,U,c
time = 1
[Command]
name = "up"
command = y,U,D,B,s,B,F,D,U,z
time = 1
[Command]
name = "left"
command = z,U,D,B,a,F,B,D,U,s
time = 1
[Command]
name = "AI-1"
command = U,D,F,B,c,B,D,U,b+y
time = 1
[Command]
name = "AI-2"
command = U,D,B,F,B,s,D,U,c+z
time = 1
[Command]
name = "AI-3"
command = U,B,s,F,B,D,U,s,D,F
time = 1
[Command]
name = "AI-4"
command = b,U,D,F,B,y,B,D,U,D
time = 1
[Command]
name = "AI-5"
command = x,U,D,B,a,F,B,D,U,F
time = 1
[Command]
name = "AI-6"
command = y,U,D,F,b,B,B,D,U,a
time = 1
[Command]
name = "AI-7"
command = ~F,F,F,F,F,F,F,F,F,F,x
time = 0

[Command]
name = "AI-8"
command = ~F,F,F,F,F,F,F,F,F,F,y
time = 0

[Command]
name = "AI-9"
command = ~F,F,F,F,F,F,F,F,F,F,z
time = 0

[Command]
name = "AI-10"
command = ~F,F,F,F,F,F,F,F,F,F,a
time = 0

[Command]
name = "AI-11"
command = ~F,F,F,F,F,F,F,F,F,F,b
time = 0

[Command]
name = "AI-12"
command = ~F,F,F,F,F,F,F,F,F,F,c
time = 0

[Command]
name = "AI-13"
command = ~D,D,D,D,D,D,D,D,D,D,x
time = 0

[Command]
name = "AI-14"
command = ~D,D,D,D,D,D,D,D,D,D,y
time = 0

[Command]
name = "AI-15"
command = ~D,D,D,D,D,D,D,D,D,D,z
time = 0

[Command]
name = "AI-16"
command = ~D,D,D,D,D,D,D,D,D,D,a
time = 0

[Command]
name = "AI-17"
command = ~D,D,D,D,D,D,D,D,D,D,b
time = 0

[Command]
name = "AI-18"
command = ~D,D,D,D,D,D,D,D,D,D,c
time = 0

[Command]
name = "AI-19"
command = ~B,B,B,B,B,B,B,B,B,B,x
time = 0

[Command]
name = "AI-20"
command = ~B,B,B,B,B,B,B,B,B,B,y
time = 0

[Command]
name = "AI-21"
command = ~B,B,B,B,B,B,B,B,B,B,z
time = 0

[Command]
name = "AI-22"
command = ~B,B,B,B,B,B,B,B,B,B,a
time = 0

[Command]
name = "AI-23"
command = ~B,B,B,B,B,B,B,B,B,B,b
time = 0

[Command]
name = "AI-24"
command = ~B,B,B,B,B,B,B,B,B,B,c
time = 0

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

[Command]
name = "AI-26"
command = ~U,U,U,U,U,U,U,U,U,U,x+y
time = 0

[Command]
name = "AI-27"
command = ~U,U,U,U,U,U,U,U,U,U,y+z
time = 0

[Command]
name = "AI-28"
command = ~U,U,U,U,U,U,U,U,U,U,z+x
time = 0

[Command]
name = "AI-29"
command = ~U,U,U,U,U,U,U,U,U,U,a+b
time = 0

[Command]
name = "AI-30"
command = ~U,U,U,U,U,U,U,U,U,U,b+c
time = 0

[Command]
name = "AI-31"
command = ~U,U,U,U,U,U,U,U,U,U,c+a
time = 0

[Command]
name = "AI-32"
command = ~F,F,F,F,F,F,F,F,F,F,x+y
time = 0

[Command]
name = "AI-33"
command = ~F,F,F,F,F,F,F,F,F,F,y+z
time = 0

[Command]
name = "AI-34"
command = ~F,F,F,F,F,F,F,F,F,F,z+x
time = 0

[Command]
name = "AI-35"
command = ~F,F,F,F,F,F,F,F,F,F,a+b
time = 0

[Command]
name = "AI-36"
command = ~F,F,F,F,F,F,F,F,F,F,b+c
time = 0

[Command]
name = "AI-37"
command = ~F,F,F,F,F,F,F,F,F,F,c+a
time = 0

[Command]
name = "AI-38"
command = ~D,D,D,D,D,D,D,D,D,D,x+y
time = 0

[Command]
name = "AI-39"
command = ~D,D,D,D,D,D,D,D,D,D,y+z
time = 0

[Command]
name = "AI-40"
command = ~D,D,D,D,D,D,D,D,D,D,z+x
time = 0

[Command]
name = "AI-41"
command = ~D,D,D,D,D,D,D,D,D,D,a+b
time = 0

[Command]
name = "AI-42"
command = ~D,D,D,D,D,D,D,D,D,D,b+c
time = 0

[Command]
name = "AI-43"
command = ~D,D,D,D,D,D,D,D,D,D,c+a
time = 0

[Command]
name = "AI-44"
command = ~B,B,B,B,B,B,B,B,B,B,x+y
time = 0

[Command]
name = "AI-45"
command = ~B,B,B,B,B,B,B,B,B,B,y+z
time = 0

[Command]
name = "AI-46"
command = ~B,B,B,B,B,B,B,B,B,B,z+x
time = 0

[Command]
name = "AI-47"
command = ~B,B,B,B,B,B,B,B,B,B,a+b
time = 0

[Command]
name = "AI-48"
command = ~B,B,B,B,B,B,B,B,B,B,b+c
time = 0

[Command]
name = "AI-49"
command = ~B,B,B,B,B,B,B,B,B,B,c+a
time = 0




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


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

[Command]
name = "SmashKFUpper"   ;ボタンが違うことで同じ名前にできる
command = ~D, D, z
time = 20

[Command]
name = "236236_b"
command = ~D, DF, F, D, DF, F, b
time = 26

[Command]
name = "236236_c"
command = ~D, DF, F, D, DF, F, c
time = 26

[Command]
name = "236236_a"
command = ~D, DF, F, D, DF, F, a
time = 26

[Command]
name = "214214_b"
command = ~D, DB, B, D, DB, B, b
time = 28

[Command]
name = "214214_x"
command = ~D, DB, B, D, DB, B, x
time = 28

[Command]
name = "214214_a"
command = ~D, DB, B, D, DB, B, a
time = 28

[Command]
name = "214214_x"
command = ~D, DB, B, D, DB, B, x
time = 28

[Command]
name = "214214_y"
command = ~D, DB, B, D, DB, B, y
time = 28

[Command]
name = "214214_c"
command = ~D, DB, B, D, DB, B, c
time = 28

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

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

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

[Command]
name = "22_y"
command = ~D, D, y
time = 20
;-| 必殺技 |------------------------------------------------------
;一般的に超必殺技の次は、必殺技を記述します。
;コマンドの一部が重なる場合、先に書かれたものが優先されるので
;気を付けてください。

[Command]
name = "41236_c"
command = ~B, DB, D, DF, F, c
time = 25


[Command]
name = "41236_x"
command = ~B, DB, D, DF, F, x
time = 25

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

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

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

[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 = "421_a"
command = ~B, D, DB, a

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

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

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

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

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

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

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

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

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

[Command]
name = "6c"
command = /$F,c
time = 2

[Command]
name = "6a"
command = /$F,a
time = 2

[Command]
name = "3a"
command = /$DF, a
;----------------------------------------------------------

[Command]
name = "jump"    
command = ~$D,$U
time = 6

[Command]
name = "jump"    
command = $D,$U
time = 6

[Command]
name = "jump2"
command = ~U
time = 2

;-| 2回押し |-----------------------------------------------------------
[Command]
name = "FF"     ;消さないように
command = F, F
time = 10

[Command]
name = "BB"     ;消さなくて良い
command = B, B
time = 10

;-| 2,3ボタン同時押し |-----------------------------------------------
[Command]
name = "recovery" ;消さないこと
command = x
time = 1

;-| 方向とボタン |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,b
time = 1

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

[Command]
name = "mode1"
command = /$B,s
time = 1

[Command]
name = "mode2"
command = /$F,s
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";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1

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

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

[Command]
name = "hold_y"
command = /c
time = 1

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

[Command]
name = "hold_z"
command = /z
time = 1

[Command]
name = "hold_c"
command = /c
time = 1

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

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

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

;===========================================================================
[Statedef -1]

;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S && ctrl
trigger1 = stateno !=[100,110]

;バックステップ
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S && ctrl
trigger1 = stateno !=[100,110]

;---------------------------------------------------------------------------
;空中ダッシュ
;空中ダッシュを連続でできないように「stateno != 」としています

[State -1, Fwd Air Dash]
type = ChangeState
value = 103
triggerall = command = "FF" &&  ctrl
triggerall = statetype = A && stateno != 103 && stateno !=51
trigger1 = pos y <-15

[State -1, Back Air Dash]
type = ChangeState
value = 108
triggerall = command = "BB" && statetype = A && ctrl
triggerall = stateno != 103 && stateno !=51
trigger1 = pos y <-15

[State -1, Back Air Dash]
type = ChangeState
value = 40
triggerall = command = "jump2"
trigger1 = pos y = 0 && ctrl
trigger2 = stateno = 320 && movehit
;---------------------------------------------------------------------------

;==========================================================================
;超必
;==========================================================================

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

;kagetu
[State -1, Stand Punch]
type = ChangeState
value = 14250
triggerall = command = "214214_a"
trigger1 = statetype = S && power>=5000
trigger1 = ctrl || movehit

;sensyou
[State -1, Stand Punch]
type = ChangeState
value = 12050
triggerall = command = "214214_b"
trigger1 = statetype = S && power>=1000
trigger1 = ctrl || movehit


;konkai 
[State -1, Stand Punch]
type = ChangeState
value = 8800
triggerall = command = "214214_c"
trigger1 = statetype = S && power>=5000
trigger1 = ctrl || movehit

;daja
[State -1, Stand Punch]
type = ChangeState
value = 8388
triggerall = command = "236236_a"
trigger1 = statetype = S && power>=5000
trigger1 = ctrl || movehit

;ripper
[State -1, Stand Punch]
type = ChangeState
value = 8500
triggerall = command = "236236_b"
trigger1 = statetype = S && power>=3000
trigger1 = ctrl || movehit

;tenmei
[State -1, Stand Punch]
type = ChangeState
value = 8600
triggerall = command = "236236_c"
trigger1 = statetype = S && power>=3000
trigger1 = ctrl || movehit

;--------------------------------------------------------------------
;通常

;214c
[State -1, Stand Punch]
type = ChangeState
value = 3500
triggerall = command = "214_c"
trigger1 = statetype = S
trigger1 = ctrl

;214b
[State -1, Stand Punch]
type = ChangeState
value = 3720
triggerall = command = "214_b"
trigger1 = statetype = S
trigger1 = ctrl

;C
[State -1, Stand Punch]
type = ChangeState
value = 510
triggerall = command = "c"
trigger1 = statetype = S
trigger1 = ctrl || statetype = S && movehit

;B
[State -1, Stand Punch]
type = ChangeState
value = 2100
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl

;JB
[State -1, Stand Punch]
type = ChangeState
value = 3725
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl

;JC
[State -1, Stand Punch]
type = ChangeState
value = 3084
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl

;J2A
[State -1, Stand Punch]
type = ChangeState
value = 700
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = A
trigger1 = ctrl

;J6A
[State -1, Stand Punch]
type = ChangeState
value = 620
triggerall = command = "6a"
trigger1 = statetype = A
trigger1 = ctrl

;JA
[State -1, Stand Punch]
type = ChangeState
value = 440
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;3A
[State -1, Stand Punch]
type = ChangeState
value = 220
triggerall = command = "3a"
trigger1 = pos y =0
trigger1 = ctrl 

;6A
[State -1, Stand Punch]
type = ChangeState
value = 385
triggerall = command = "6a"
trigger1 = pos y =0
trigger1 = ctrl 


;A
[State -1, Stand Punch]
type = ChangeState
value = ifelse(p2bodydist x>=35,210,250)
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = ctrl

;2A
[State -1, Stand Punch]
type = ChangeState
value = 310
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl 
