;-| Super Motions |--------------------------------------------------------

;기공장
[Command]
name = "dfdf_x"
command = ~D, F, D, F , x
time = 25

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

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

;봉익선
[Command]
name = "dfdf_a"
command = ~D, F, D, F , a
time = 25

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

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

;천성난화
[Command]
name = "dbdb_a"
command = ~D, B, D, B , a
time = 25

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

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

[Command]
name = "chun_ok"
command = ~x, x, F, a, z
time = 30

;-| Special Motions |------------------------------------------------------

[Command]
name = "kaku"
command = ~D, F, D, B, s
time = 25

[Command]
name = "100kick_ex"
command = a+b, a+b, a+b
time = 35

[Command]
name = "100kick_ex"
command = a+c, a+c, a+c
time = 35

[Command]
name = "100kick_ex"
command = b+c, b+c, b+c
time = 35

[Command]
name = "100kick_a"
command = a, a, a
time = 35

[Command]
name = "100kick_b"
command = b, b, b
time = 35

[Command]
name = "100kick_c"
command = c, c, c
time = 35

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

[Command]
name = "spin_a"
command = ~40$D, $U, a

[Command]
name = "spin_b"
command = ~40$D, $U, b

[Command]
name = "spin_c"
command = ~40$D, $U, c

[Command]
name = "spin_ex"
command = ~40$D, $U, a+b

[Command]
name = "spin_ex"
command = ~40$D, $U, b+c

[Command]
name = "spin_ex"
command = ~40$D, $U, a+c

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

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

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

[Command]
name = "fdf_ex"
command = ~F, D, DF, a+b

[Command]
name = "fdf_ex"
command = ~F, D, DF, b+c

[Command]
name = "fdf_ex"
command = ~F, D, DF, a+c

[Command]
name = "df_x"
command = ~D, F , x

[Command]
name = "df_y"
command = ~D, F , y

[Command]
name = "df_z"
command = ~D, F , z

[Command]
name = "df_ex"
command = ~D, F , x+y
time = 25

[Command]
name = "df_ex"
command = ~D, F , y+z
time = 25

[Command]
name = "df_ex"
command = ~D, F , x+z
time = 25

[Command]
name = "db_a"
command = ~D, B, a
time = 15

[Command]
name = "db_b"
command = ~D, B, b
time = 15

[Command]
name = "db_c"
command = ~D, B, c
time = 15

[Command]
name = "db_ex"
command = ~D, B, a+b

[Command]
name = "db_ex"
command = ~D, B, b+c

[Command]
name = "db_ex"
command = ~D, B, a+c

; 기공권 EX-mode
[Command]
name = "db_x"
command = ~D, B, x
time = 15

[Command]
name = "db_y"
command = ~D, B, y
time = 15

[Command]
name = "db_z"
command = ~D, B, z
time = 15

[Command]
name = "db_xex"
command = ~D, B, x+y

[Command]
name = "db_xex"
command = ~D, B, x+z

[Command]
name = "db_xex"
command = ~D, B, y+z


;-| Double Tap |-----------------------------------------------------------

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

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

[Command]
name = "Longjump"
command = D, $U
time = 18

;-| 2/3 Button Combination |-----------------------------------------------

[Command]
name = "hold"
command = a+x
time = 5

[Command]
name = "recovery"
command = s
;command = a+x
time = 1

;-| Dir + Button |---------------------------------------------------------

[Command]
name = "fwd_a"
command = /F, a
time = 1

[Command]
name = "fwd_b"
command = /F, b
time = 1

[Command]
name = "fwd_x"
command = /F, x
time = 1

[Command]
name = "fwd_y"
command = /F, y
time = 1

[Command]
name = "fwd_z"
command = /F, z
time = 1

[Command]
name = "back_x"
command = /B, x

[Command]
name = "back_y"
command = /B, y

[Command]
name = "back_z"
command = /B, z

;-| Single Button |---------------------------------------------------------

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

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

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

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

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

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

[Command]
name = "x"
command = x
time = 1

[Command]
name = "hold_x"
command = /$x
time = 1

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

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

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

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

[Command]
name = "s"
command = s
time = 1

[Command]
name = "s"
command = c+z
time = 1

[Command]
name = "fwd"
command = F
time = 1

[Command]
name = "down"
command = D
time = 1

;-| Hold Dir |--------------------------------------------------------------

[Command]
name = "holdfwd_x"
command = /$F, x
time = 1

[Command]
name = "holdfwd_y"
command = /$F, y
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 = "back"
command = /B
time = 1


;-|Commands|------------------------------------------------------------------------------

[Statedef -1]
;------------------------------------------------------------------------------------
;필살기 강약 구분
;------------------------------------------------------------------------------------
[State -1, SkillPowerVarSet]
type = VarSet
trigger1 = Command = "100kick_a" || Command = "100kick_b" || Command = "100kick_c" || Command = "df_x"  || Command = "df_y" || Command = "df_z"  || Command = "spin_a" || Command = "spin_b"  || Command = "spin_c"
trigger2 = Command = "db_a" || Command = "db_b" || Command = "db_c" || Command = "dfdf_x" || Command = "dfdf_y" || Command = "dfdf_z" || Command = "dfdf_a" || Command = "dfdf_b" || Command = "dfdf_c"
var(31)=ifelse(Command="100kick_a"||Command="df_x"||Command="spin_a"||Command="db_a"||Command="dfdf_x"||Command="dfdf_a",0,Ifelse(Command="100kick_b"||Command="df_y"||Command="spin_b"||Command="db_b"||Command="dfdf_y"||Command="dfdf_b",1,2))

[State -1, SkillPowerVarSet]
type = VarSet
trigger1 = Command= "db_x" || Command= "db_y" || Command= "db_z"
var(31)=ifelse(Command="db_x",0,Ifelse(Command="db_y",1,2))

[State -1, Move Power Set]
type = VarSet
trigger1 = (Command = "df_ex" || Command = "db_ex" )&& Power >= 250
trigger2 = (Command = "db_xex" || Command = "db_xex" )&& Power >= 250
var(31) = 3

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

; 각성
[State -1, Mode Change]
type = ChangeState
value = 850
trigger1 = Power >= 2000 && Command = "kaku" && var(26) = 0
trigger1 = StateType != A && Ctrl

; 春屋殺
[State -1]
type = ChangeState
value = 3000
triggerall = command = "chun_ok" && Power = 3000 && var(26) = 1 && statetype != A
trigger1 = ctrl = 1
;trigger2 = Animelemtime(3) < 0
trigger2 = stateno = 200 || stateno = 211 || stateno = 220

; 중단기
[State -1]
type = ChangeState
value = 207
trigger1 = command = "b" && command = "y"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger1 = stateno != 101

; 기공장
[State -1]
type = ChangeState
value = 1200
triggerall = command = "dfdf_x" || command = "dfdf_y" || command = "dfdf_z"
triggerall = power >= 1000
trigger1 = statetype != A && ctrl = 1
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact
trigger3 = stateno = 1100 && AnimElemTime(9) >= 0
trigger4 = (((stateno = 217 || stateno = 232) && MoveContact)) || stateno = 233

; 봉익선
[State -1]
type = ChangeState
value = 1600
triggerall = command = "dfdf_a" || command = "dfdf_b" || command = "dfdf_c"
triggerall = power >= 1000
trigger1 = statetype != A && ctrl = 1
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact
trigger3 = stateno = 1100 && AnimElemTime(9) >= 0
trigger4 = (((stateno = 217 || stateno = 232) && MoveContact)) || stateno = 233

; 천성난화
[State -1]
type = ChangeState
value = 1550
triggerall = command = "dbdb_a" || command = "dbdb_b" || command = "dbdb_c"
triggerall = power >= 1000
trigger1 = statetype != A && ctrl = 1
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact
trigger3 = stateno = 1100 && AnimElemTime(9) >= 0
trigger4 = (((stateno = 217 || stateno = 232) && MoveContact)) || stateno = 233

; 백열킥 EX
[State -1]
type = ChangeState
value = 1703
triggerall = (Command = "100kick_ex")&& Power >= 250
trigger1 = StateType != A && Ctrl
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact

; 백열킥
[State -1]
type = ChangeState
value = 1700
triggerall = Command = "100kick_a" || Command = "100kick_b" || Command = "100kick_c"
trigger1 = StateType != A && Ctrl
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact

; 스피닝버드킥 EX
[State -1]
type = ChangeState
value = 1330
triggerall = command = "spin_ex"
trigger1 = statetype != A && ctrl
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact
trigger3 = stateno = 40

; 스피닝버드킥 light
[State -1]
type = ChangeState
value = 1300
triggerall = command = "spin_a"
trigger1 = statetype != A && ctrl
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact
trigger3 = stateno = 40

; 스피닝버드킥 Medium
[State -1]
type = ChangeState
value = 1310
triggerall = command = "spin_b"
trigger1 = statetype != A && ctrl
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact
trigger3 = stateno = 40

; 스피닝버드킥 hard
[State -1]
type = ChangeState
value = 1320
triggerall = command = "spin_c"
trigger1 = statetype != A && ctrl
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact
trigger3 = stateno = 40

; 공중 기공권 (ex-mode)
[State -1]
type = ChangeState
value = 2500
triggerall = (Command = "df_x" || Command = "df_y" || Command = "df_z" || (Command = "df_ex" && Power >= 250)) && var(26) = 1
triggerall = !NumProjID(2501)
trigger1 = StateType = A && Ctrl

; 기공권
[State -1]
type = ChangeState
value = 1100
triggerall = Command = "df_x" || Command = "df_y" || Command = "df_z" || (Command = "df_ex" && Power >= 250)
triggerall = !NumProjID(1001)
trigger1 = StateType != A && Ctrl
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact

; EX 기공권
[State -1]
type = ChangeState
value = 2700
triggerall = (Command = "db_x" || Command = "db_y" || Command = "db_z" || (Command = "db_xex" && Power >= 250)) && var(26) = 1
triggerall = !NumProjID(1001)
trigger1 = StateType != A && Ctrl
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact


; 패산축 (공중)
[State -1]
type = ChangeState
value = 2600
triggerall = ((command = "db_a" || command = "db_b" || command = "db_c"|| (command = "db_ex" && Power >= 250)) && pos Y < -50) && var(26) = 1
trigger1 = StateType = A && Ctrl

; 패산축
[State -1]
type = ChangeState
value = 1500
triggerall = command = "db_a" || command = "db_b" || command = "db_c"|| (command = "db_ex" && Power >= 250)
trigger1 = StateType != A && Ctrl
trigger2 = (stateno = 200 || stateno = 201 || stateno = 205 || stateno = 400 || stateno = 415 || stateno = 420 || stateno = 221 || stateno = 206) && MoveContact

; 잡기(공중)
[State -1]
type = ChangeState
value = 2300
trigger1 = statetype = A
trigger1 = command = "hold"
;trigger1 = command = "s"
trigger1 = ctrl = 1

; 잡기(던지기)
[State -1]
type = ChangeState
value = 2100
trigger1 = command = "hold"
trigger1 = statetype = S
trigger1 = ctrl = 1


; 응조각
[State -1]
type = ChangeState
value = 616
trigger1 = command = "holddown"
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger1 = stateno != 101

[State -1];삼각점프
type = ChangeState
value = 60
Trigger1 = backEdgeDist < 4
Trigger1 = Pos Y < -50
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger1 = stateno != 60
trigger1 = command = "fwd"
trigger1 = stateno != 101

[State -1];삼각점프
type = ChangeState
value = 61
Trigger1 = frontEdgeDist < 3
Trigger1 = Pos Y < -50
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger1 = stateno != 61
trigger1 = command = "back"
trigger1 = stateno != 101

; 퍼스날액션
[State -1]
type = ChangeState
value = 199
trigger1 = command = "s" && StateType != A && Ctrl

;-----------기본기관련----------------------------------------------------------

; Jumping light kick
[State -1]
type = ChangeState
value = 600
trigger1 = command = "x"
trigger1 = statetype = A
trigger1 = Vel X != 0
trigger1 = ctrl = 1
trigger1 = stateno != 101

; Jumping light punch (forward)
[State -1]
type = ChangeState
value = 605
trigger1 = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger1 = stateno != 101

; Jumping forward light kick
[State -1]
type = ChangeState
value = 611
trigger1 = command = "a"
trigger1 = statetype = A
trigger1 = Vel X != 0
trigger1 = ctrl = 1
trigger1 = stateno != 101

; Jumping light kick
[State -1]
type = ChangeState
value = 610
trigger1 = command = "a"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger1 = stateno != 101

; Jumping middle punch
[State -1]
type = ChangeState
value = 620
trigger1 = command = "y"
trigger1 = statetype = A
trigger1 = Vel X != 0
trigger1 = ctrl = 1
trigger1 = stateno != 101

; Jumping middle punch (forward)
[State -1]
type = ChangeState
value = 625
trigger1 = command = "y"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger1 = stateno != 101

; Jumping forward middle kick
[State -1]
type = ChangeState
value = 631
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = Vel X != 0
trigger1 = ctrl = 1
trigger1 = stateno != 101

; Jumping middle kick
[State -1]
type = ChangeState
value = 630
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger1 = stateno != 101

; 추돌타
[State -1]
type = ChangeState
value = 645
trigger1 = command = "z" && command = "holddown"
trigger1 = statetype = A
trigger1 = Vel X != 0
trigger1 = ctrl = 1
trigger1 = stateno != 101

; Jumping forward hard punch
[State -1]
type = ChangeState
value = 640
trigger1 = command = "z"
trigger1 = statetype = A
trigger1 = Vel X != 0
trigger1 = ctrl = 1
trigger1 = stateno != 101

; Jumping hard punch
[State -1]
type = ChangeState
value = 645
trigger1 = command = "z" && statetype = A & ctrl = 1 && stateno != 101
trigger2 = command = "holddown" && command = "z" && statetype = A && ctrl = 1 && stateno != 101

; Jumping forward hard kick
[State -1]
type = ChangeState
value = 651
trigger1 = command = "c"
trigger1 = statetype = A
trigger1 = Vel X != 0
trigger1 = ctrl = 1
trigger1 = stateno != 101
  
; Jumping hard kick
[State -1]
type = ChangeState
value = 650
trigger1 = command = "c"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger1 = stateno != 101

; Crouching light punch
[State -1]
type = ChangeState
value = 400
trigger1 = statetype = C
trigger1 = command = "x"
trigger1 = ctrl = 1

; Crouching light kick
[State -1]
type = ChangeState
value = 410
trigger1 = statetype = C
trigger1 = command = "a"
trigger1 = ctrl = 1

; Crouching middle kick
[State -1]
type = ChangeState
value = 415
trigger1 = statetype = C
trigger1 = command = "b"
trigger1 = ctrl = 1

; Crouching middle punch
[State -1]
type = ChangeState
value = 405
trigger1 = statetype = C
trigger1 = command = "y"
trigger1 = ctrl = 1

; Crouching hard punch
[State -1]
type = ChangeState
value = 420
trigger1 = statetype = C
trigger1 = command = "z"
trigger1 = ctrl = 1

; 전신취각
[State -1]
type = ChangeState
value = 232
triggerall = statetype != A && command = "holddown" && command = "c"  && command = "holdfwd"
trigger1 = ctrl = 1

; Crouching hard kick
[State -1]
type = ChangeState
value = 430
trigger1 = statetype = C
trigger1 = command = "c"
trigger1 = ctrl = 1

; Standing middle punch (close)
[State -1]
type = ChangeState
value = 201
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2bodydist X <= 15

; Standing light punch
[State -1]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

; Standing middle punch (backward)
[State -1]
type = ChangeState
value = 206
triggerall = command = "y"&& command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl = 1

; Standing middle punch
[State -1]
type = ChangeState
value = 205
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

; Standing hard punch (backward)
[State -1]
type = ChangeState
value = 221
triggerall = command = "z"&& command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl = 1

; Standing hard punch
[State -1]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

; Forward middle kick
[State -1]
type = ChangeState
value = 225
triggerall = command = "fwd_b"
triggerall = command != "holddown"
trigger1 = statetype = S && ctrl = 1

; Standing light kick
[State -1]
type = ChangeState
value = 211
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

; Standing middle kick (close)
[State -1]
type = ChangeState
value = 216
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2bodydist X <= 35

; Standing middle kick
[State -1]
type = ChangeState
value = 215
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

; Standing hard kick (close)
[State -1]
type = ChangeState
value = 235
trigger1 = command = "c"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2bodydist X <= 15

; Standing hard kick
[State -1]
type = ChangeState
value = 230
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

; 대쉬
[State -1]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S && stateno != 101 && stateno != 100
trigger1 = command != "holddown"
trigger1 = ctrl = 1

; 백대쉬
[State -1]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = command != "holddown"
trigger1 = ctrl = 1

