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

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

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

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

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

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

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

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

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

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

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

[Command]
name = "fire2"
command = ~B, DB, D, DF, F, y
time = 20

[Command]
name = "fire3"
command = ~B, DB, 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 = "hadouex"
command = ~D, DF, F, x+y
time = 20

[Command]
name = "hadouex"
command = ~D, DF, F, y+z
time = 20

[Command]
name = "hadouex"
command = ~D, DF, F, x+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 = "shoryuex"
command = ~F, D, DF, x+y
time = 20

[Command]
name = "shoryuex"
command = ~F, D, DF, y+z
time = 20

[Command]
name = "shoryuex"
command = ~F, D, DF, x+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 = "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 = "tatsuex"
command = ~D, DB, B, a+b
time = 20

[Command]
name = "tatsuex"
command = ~D, DB, B, b+c
time = 20

[Command]
name = "tatsuex"
command = ~D, DB, B, a+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, ShinkuHadouKen]
type = ChangeState
value = 3000
triggerall = !NumProjID(3000)
triggerall = !NumProjID(1005)
triggerall = !NumProjID(1006)
triggerall = Power >= 1000
triggerall = Command = "shinku1" || Command = "shinku2" || Command = "shinku3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || StateNo = 208 || StateNo = 209 || StateNo = 302 || (StateNo = [400,405])) && MoveContact
trigger3 = ((StateNo = 1010 && (Anim != 1013 && AnimElemTime(4) < 0) && (Pos Y = 0 && !Vel Y)) || StateNo = 1060) && MoveContact
trigger4 = StateNo = 1000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger5 = StateNo = 1005 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger6 = StateNo = 3000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)

;---------------------------------------------------------------------------
;진공용권선풍각
[State -1, ShinkuTatsumakiSenpuKyaku]
type = ChangeState
value = 3050
triggerall = Power >= 1000
triggerall = Command = "shintatsu1" || Command = "shintatsu2" || Command = "shintatsu3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || StateNo = 208 || StateNo = 209 || StateNo = 302 || (StateNo = [400,405])) && MoveContact
trigger3 = ((StateNo = 1010 && (Anim != 1013 && AnimElemTime(4) < 0) && (Pos Y = 0 && !Vel Y)) || StateNo = 1060) && MoveContact
trigger4 = StateNo = 1000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger5 = StateNo = 1005 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger6 = StateNo = 3000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)

;---------------------------------------------------------------------------
;진승룡권
[State -1, ShinShoryuKen]
type = ChangeState
value = 3100
triggerall = Power >= 3000
triggerall = Command = "shin1" || Command = "shin2" || Command = "shin3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207  || StateNo = 208 || StateNo = 209 || StateNo = 302 || (StateNo = [400,405])) && MoveContact
trigger3 = ((StateNo = 1010 && (Anim != 1013 && AnimElemTime(4) < 0) && (Pos Y = 0 && !Vel Y)) || StateNo = 1060) && MoveContact
trigger4 = StateNo = 1000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger5 = StateNo = 1005 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)

;---------------------------------------------------------------------------
;필살기
;---------------------------------------------------------------------------
;EX승룡권
[State -1, EXShoryuKen]
type = ChangeState
value = 2010
triggerall = Power >= 500
triggerall = Command = "shoryuex"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || StateNo = 208 || StateNo = 209 || StateNo = 302 || (StateNo = [400,404])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded
trigger4 = ((StateNo = 1010 && (Anim != 1013 && AnimElemTime(4) < 0) && (Pos Y = 0 && !Vel Y)) || StateNo = 1060) && MoveContact
trigger5 = StateNo = 1000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger6 = StateNo = 1005 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger7 = StateNo = 3000 && (AnimElemTime(5) >= 2 && 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 = 208 || StateNo = 209 || StateNo = 302 || (StateNo = [400,404])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded

;---------------------------------------------------------------------------
;EX파동권
[State -1, EXHadouKen]
type = ChangeState
value = 2000
triggerall = !NumProjID(3000)
triggerall = !NumProjID(1005)
triggerall = !NumProjID(1006)
triggerall = Power >= 500
triggerall = Command = "hadouex"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || StateNo = 208 || StateNo = 209 || StateNo = 302 || (StateNo = [400,404])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded
trigger4 = ((StateNo = 1010 && (Anim != 1013 && AnimElemTime(4) < 0) && (Pos Y = 0 && !Vel Y)) || StateNo = 1060) && MoveContact
trigger5 = StateNo = 1000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger6 = StateNo = 1005 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger7 = StateNo = 3000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)

;---------------------------------------------------------------------------
;파이어 파동권
[State -1, HadouKen]
type = ChangeState
value = 1005
triggerall = !NumProjID(3000)
triggerall = !NumProjID(1005)
triggerall = !NumProjID(1006)
triggerall = Command = "fire1" || Command = "fire2" || Command = "fire3"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || StateNo = 208 || StateNo = 209 || StateNo = 302 || (StateNo = [400,404])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded

;---------------------------------------------------------------------------
;파동권
[State -1, HadouKen]
type = ChangeState
value = 1000
triggerall = !NumProjID(3000)
triggerall = !NumProjID(1005)
triggerall = !NumProjID(1006)
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 = 208 || StateNo = 209 || StateNo = 302 || (StateNo = [400,404])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded

;---------------------------------------------------------------------------
;EX용권선풍각
[State -1, TatsumakiSenpuKyaku]
type = ChangeState
value = ifelse (statetype = A, 2030, 2020)
triggerall = Power >= 500
triggerall = Command = "tatsuex"
trigger1 = statetype = S || statetype = A
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207  || StateNo = 208 || StateNo = 209 || (StateNo = 302 || StateNo = [400,404]) || (StateNo = [600,699])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded
trigger4 = ((StateNo = 1010 && (Anim != 1013 && AnimElemTime(4) < 0) && (Pos Y = 0 && !Vel Y)) || StateNo = 1060) && MoveContact
trigger5 = StateNo = 1000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger6 = StateNo = 1005 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)
trigger7 = StateNo = 3000 && (AnimElemTime(5) >= 2 && AnimElemTime(7) < 0)

;---------------------------------------------------------------------------
;용권선풍각
[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 = 208 || StateNo = 209 || (StateNo = 302 || StateNo = [400,404]) || (StateNo = [600,699])) && MoveContact
trigger3 = StateNo = 405 && MoveGuarded

;---------------------------------------------------------------------------
;도발
[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, SenpuKyaku]
type = ChangeState
value = 302
triggerall = command = "holdfwd" && Command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (StateNo = 200 || StateNo = 201 || StateNo = 202 || StateNo = 204 || StateNo = 205 || StateNo = 207 || StateNo = 209 || (StateNo = [400,404])) && MoveContact

;---------------------------------------------------------------------------
;쇄골깨기 && 선풍각
[State -1, SenpuKyaku]
type = ChangeState
value = ifelse (Command = "y", 300, 301)
triggerall = command = "holdfwd" && (command = "b" || command = "y")
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

;---------------------------------------------------------------------------
;서서 강펀치
[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

;---------------------------------------------------------------------------
;서서 약킥
[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

;---------------------------------------------------------------------------
;서서 강킥
[State -1, Standing Strong Kick]
type = ChangeState
value = ifelse (P2bodydist X >= 20, 208, 209)
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;하단 약펀치
[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

;---------------------------------------------------------------------------
;하단 강펀치
[State -1, Crouching Strong Punch]
type = ChangeState
value = 402
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
;하단 약킥
[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

;---------------------------------------------------------------------------
;하단 강킥
[State -1, Crouching Strong Kick]
type = ChangeState
value = 405
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
;점프 약펀치
[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

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