;켄 CMD 설정파일.
;가고일의 것+_+

;-| 초필살기 |--------------------------------------------------------
[Command]
name = "reppa1"
command = ~D, DF, F, D, DF, F, x
time = 25

[Command]
name = "reppa2"
command = ~D, DF, F, D, DF, F, y
time = 25

[Command]
name = "reppa3"
command = ~D, DF, F, D, DF, F, z
time = 25

[Command]
name = "shinryu1"
command = ~D, DF, F, D, DF, F, a
time = 25

[Command]
name = "shinryu2"
command = ~D, DF, F, D, DF, F, b
time = 25

[Command]
name = "shinryu3"
command = ~D, DF, F, D, DF, F, c
time = 25

[Command]
name = "shipu1"
command = ~D, DB, B, D, DB, B, a
time = 25

[Command]
name = "shipu2"
command = ~D, DB, B, D, DB, B, b
time = 25

[Command]
name = "shipu3"
command = ~D, DB, B, D, DB, B, c
time = 25

;-| 필살기 |------------------------------------------------------
[Command]
name = "hadou1"
command = ~D, DF, F, x
time = 20

[Command]
name = "hadou2"
command = ~D, DF, F, y
time = 20

[Command]
name = "hadou3"
command = ~D, DF, F, z
time = 20

[Command]
name = "hadou1"
command = D, DF, F, x
time = 20

[Command]
name = "hadou2"
command = D, DF, F, y
time = 20

[Command]
name = "hadou3"
command = D, DF, F, z
time = 20

[Command]
name = "hadou1"
command = D, F, x
time = 15

[Command]
name = "hadou2"
command = D, F, y
time = 15

[Command]
name = "hadou3"
command = D, F, z
time = 15

[Command]
name = "shoryu1"
command = ~F, D, DF, x
time = 20

[Command]
name = "shoryu2"
command = ~F, D, DF, y
time = 20

[Command]
name = "shoryu3"
command = ~F, D, DF, z
time = 20

[Command]
name = "shoryu1"
command = F, D, DF, x
time = 20

[Command]
name = "shoryu2"
command = F, D, DF, y
time = 20

[Command]
name = "shoryu3"
command = F, D, DF, z
time = 20

[Command]
name = "shoryu1"
command = F, D, F, x
time = 20

[Command]
name = "shoryu2"
command = F, D, F, y
time = 20

[Command]
name = "shoryu3"
command = F, D, F, z
time = 20

[Command]
name = "zenpou1"
command = ~D, DB, B, x
time = 20

[Command]
name = "zenpou2"
command = ~D, DB, B, y
time = 20

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

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

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

[Command]
name = "tatsu3"
command = ~D, DB, B, c
time = 20

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

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

[Command]
name = "ryusen3"
command = ~B, D, DB, c
time = 20

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

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

[Command]
name = "osoto3"
command = ~D, DF, F, c
time = 20

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "longjump"
command = D, $U
time = 18

[Command]
name = "groggyrecover"
command = F,B
time = 20

[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 10

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery"
command = a+x
time = 1

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

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

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

[Command]
name = "charge2"
command = /y
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

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

;-| Single Button |---------------------------------------------------------
[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

;-| Hold Dir |--------------------------------------------------------------
[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

;---------------------------------------------------------------------------
[Statedef -1]
;===========================================================================
;===========================================================================
;초필살기
;---------------------------------------------------------------------------
;승룡열파
[State -1, ShoryuReppa]
type = ChangeState
value = 3000
triggerall = Power >= 1000
triggerall = Command = "reppa1" || Command = "reppa2" || Command = "reppa3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || (StateNo = [400,405])) && MoveContact
trigger3 = ((StateNo = 1010 && (Anim != 1013 && AnimElemTime(5) < 0) && (Pos Y = 0 && !Vel Y)) || StateNo = 1060) && MoveContact
trigger4 = StateNo = 1000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger5 = StateNo = 3000 && ((Anim = 3000 && (AnimElemTime(3) >= 0 && AnimElemTime(12) < 0)) || (Anim = 3001 && (AnimElemTime(3) >= 0 && AnimElemTime(20) < 0)))
trigger6 = StateNo = 3050 && (Anim = 3050 && (AnimElemTime(3) >= 0 && AnimElemTime(7) < 0)) 
trigger7 = StateNo = 3100 && (Anim = 3100 && (AnimElemTime(3) >= 0 && AnimElemTime(41) < 0)) 

;---------------------------------------------------------------------------
;신룡권
[State -1, ShinryuKen]
type = ChangeState
value = 3050
triggerall = Power >= 1000
triggerall = Command = "shinryu1" || Command = "shinryu2" || Command = "shinryu3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || (StateNo = [400,405])) && MoveContact
trigger3 = ((StateNo = 1010 && (Anim != 1013 && AnimElemTime(5) < 0) && (Pos Y = 0 && !Vel Y)) || StateNo = 1060) && MoveContact
trigger4 = StateNo = 1000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger5 = StateNo = 3000 && ((Anim = 3000 && (AnimElemTime(3) >= 0 && AnimElemTime(12) < 0)) || (Anim = 3001 && (AnimElemTime(3) >= 0 && AnimElemTime(20) < 0)))
trigger6 = StateNo = 3100 && (Anim = 3100 && (AnimElemTime(3) >= 0 && AnimElemTime(41) < 0)) 

;---------------------------------------------------------------------------
;질풍신뢰각
[State -1, ShipuJinraiKyaku]
type = ChangeState
value = 3100
triggerall = Power >= 2000
triggerall = Command = "shipu1" || Command = "shipu2" || Command = "shipu3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || (StateNo = [400,405])) && MoveContact
trigger3 = ((StateNo = 1010 && (Anim != 1013 && AnimElemTime(5) < 0) && (Pos Y = 0 && !Vel Y)) || StateNo = 1060) && MoveContact
trigger4 = StateNo = 1000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger5 = StateNo = 3000 && ((Anim = 3000 && (AnimElemTime(3) >= 0 && AnimElemTime(12) < 0)) || (Anim = 3001 && (AnimElemTime(3) >= 0 && AnimElemTime(20) < 0)))
trigger6 = StateNo = 3050 && (Anim = 3050 && (AnimElemTime(3) >= 0 && AnimElemTime(7) < 0)) 

;---------------------------------------------------------------------------
;필살기
;---------------------------------------------------------------------------
;승룡권
[State -1, ShoryuKen]
type = ChangeState
value = 1010
triggerall = Command = "shoryu1" || Command = "shoryu2" || Command = "shoryu3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || (StateNo = [400,404])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded

;---------------------------------------------------------------------------
;파동권
[State -1, HadouKen]
type = ChangeState
value = 1000
triggerall = !NumProjID(1005)
triggerall = Command = "hadou1" || Command = "hadou2" || Command = "hadou3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || (StateNo = [400,404])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded

;---------------------------------------------------------------------------
;오소토마와게리
[State -1, OsotoMawashigeri]
type = ChangeState
value = 1060
triggerall = Command = "osoto1" || Command = "osoto2" || Command = "osoto3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || (StateNo = [400,404])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded

;---------------------------------------------------------------------------
;용선각
[State -1, RyusenKyaku]
type = ChangeState
value = 1040
triggerall = Command = "ryusen1" || Command = "ryusen2" || Command = "ryusen3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || (StateNo = [400,404])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded

;---------------------------------------------------------------------------
;용권선풍각
[State -1, TatsumakiSenpuKyaku]
type = ChangeState
value = ifelse (statetype = A, 1050, 1030)
triggerall = Command = "tatsu1" || Command = "tatsu2" || Command = "tatsu3"
trigger1 = statetype = S || statetype = A
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || (StateNo = [400,404]) || (StateNo = [600,699])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded

;---------------------------------------------------------------------------
;전방전신
[State -1, ZenpouTenshin]
type = ChangeState
value = 1020
triggerall = Command = "zenpou1" || Command = "zenpou2" || Command = "zenpou3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || (StateNo = [400,405])) && MoveContact

;---------------------------------------------------------------------------
;도발
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;전방 대시
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;후방 대시
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;기 저축
[State -1]
type = ChangeState
value = 820
triggerall = Power < 3000 && (command = "charge1" && command = "charge2")
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;회피
[State -1]
type = ChangeState
value = 810
triggerall = command = "recovery"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;메치기 & 지옥차
[State -1, Throw]
type = ChangeState
value = 800
triggerall = (command = "holdfwd" || command = "holdback") && (command = "y" || command = "z" || command = "b" || command = "c")
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
triggerall = p2bodydist X < 6
trigger1 = p2statetype = S || p2statetype = C
trigger1 = p2movetype != H

;---------------------------------------------------------------------------
;공중 지옥차
[State -1, Throw]
type = ChangeState
value = 830
triggerall = (command = "holdfwd" || command = "holdback") && (command = "b" || command = "c")
triggerall = statetype = A
triggerall = ctrl
triggerall = p2bodydist X < 6
trigger1 = p2statetype = A
trigger1 = p2movetype != H

;---------------------------------------------------------------------------
;내리찍기
[State -1, Knee Kick]
type = ChangeState
value = 300
triggerall = command = "b"
triggerall = command = "holdfwd"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;서서 약펀치
[State -1, Stand Light Punch]
type = ChangeState
value = ifelse (P2bodydist X >= 25, 200, 201)
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;서서 중펀치
[State -1, Stand Medium Punch]
type = ChangeState
value = 202
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 205) && MoveContact

;---------------------------------------------------------------------------
;서서 강펀치
[State -1, Stand Strong Punch]
type = ChangeState
value = ifelse (P2bodydist X >= 25, 203, 204)
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 205 || StateNo = 206 || StateNo = 207) && MoveContact
;---------------------------------------------------------------------------
;서서 약킥
[State -1, Stand Light Kick]
type = ChangeState
value = 205
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;서서 중킥
[State -1, Stand Medium Kick]
type = ChangeState
value = ifelse (P2bodydist X >= 20, 206, 207)
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 205) && MoveContact

;---------------------------------------------------------------------------
;서서 강킥
[State -1, Standing Strong Kick]
type = ChangeState
value = 208
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 205 || StateNo = 206 || StateNo = 207) && MoveContact

;---------------------------------------------------------------------------
;하단 약펀치
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
;하단 중펀치
[State -1, Crouching Medium Punch]
type = ChangeState
value = 401
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (StateNo = 400 || StateNo = 403) && MoveContact

;---------------------------------------------------------------------------
;하단 강펀치
[State -1, Crouching Strong Punch]
type = ChangeState
value = 402
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (StateNo = 400 || StateNo = 401 || StateNo = 403 || StateNo = 404) && MoveContact

;---------------------------------------------------------------------------
;하단 약킥
[State -1, Crouching Light Kick]
type = ChangeState
value = 403
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = StateNo = 403 && MoveContact

;---------------------------------------------------------------------------
;하단 중킥
[State -1, Crouching Medium Kick]
type = ChangeState
value = 404
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (StateNo = 400 || StateNo = 403) && MoveContact

;---------------------------------------------------------------------------
;하단 강킥
[State -1, Crouching Strong Kick]
type = ChangeState
value = 405
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (StateNo = 400 || StateNo = 401 || StateNo = 403 || StateNo = 404) && MoveContact

;---------------------------------------------------------------------------
;점프 약펀치
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;점프 중펀치
[State -1, Jump medium Punch]
type = ChangeState
value = 601
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;점프 강펀치
[State -1, Jump Strong Punch]
type = ChangeState
value = 602
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;점프 약킥
[State -1, Jump Light Kick]
type = ChangeState
value = ifelse (!Var(4) && !Vel X, 603, 604)
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;점프 중킥
[State -1, Jump Medium Kick]
type = ChangeState
value = ifelse (!Var(4) && !Vel X, 605, 606)
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;점프 강킥
[State -1, Jump Strong Kick]
type = ChangeState
value = ifelse (!Vel X, 607, 608)
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl

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