;-| Super Motions |--------------------------------------------------------
[Command]
name = "combo"
command = ~D, DF, F, D, DB, B, x
time = 30

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

[Command]
name = "hurricane"
command = ~D, DF, F, D, DF, F, x
time = 30

[Command]
name = "hurricane"
command = ~D, DF, F, D, DF, F, y
time = 30

[Command]
name = "heel"
command = ~D, DF, F, D, DF, F, a
time = 30

[Command]
name = "heel"
command = ~D, DF, F, D, DF, F, b
time = 30

;-| Special Motions |------------------------------------------------------
[Command]
name = "baku"
command = x, x, x, x
time = 30

[Command]
name = "baku"
command = y, y, y
time = 30

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

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

[Command]
name = "QCF_x"
command = ~D, DF, F, x
time = 15

[Command]
name = "QCF_y"
command = ~D, DF, F, y
time = 15

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

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

;-| Double Tap |-----------------------------------------------------------
[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";Required (do not remove)
command = x+y
time = 1

[Command]
name = "dodge"
command = y+b
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "DF_a"
command = /$DF,a
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, Combo condition Reset]
type = VarSet
trigger1 = 1
var(1) = 0

[State -1, Combo condition Check]
type = VarSet
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact
var(1) = 1

;===========================================================================
;Bakuretsu Hurricane Tiger Heel
[State -1, BHTH]
type = ChangeState
value = 2100
triggerall = command = "combo"
triggerall = power >= 1000
triggerall = palno < 7
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger3 = stateno != [2000,2900]

;---------------------------------------------------------------------------
;Screw Upper
[State -1, SU]
type = ChangeState
value = 2000
triggerall = command = "hurricane"
triggerall = power >= 1000
triggerall = palno < 7
triggerall = NumProjID(1000) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger3 = stateno != [2000,2900]

;---------------------------------------------------------------------------
;The Greatest Heel Ever
[State -1, TGHE]
type = ChangeState
value = 2200
triggerall = command = "heel"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = palno > 6
trigger1 = ctrl
trigger2 = movecontact
trigger3 = stateno != [2000,2900]

;---------------------------------------------------------------------------
;Triple Hurricane
[State -1, TH]
type = ChangeState
value = 2300
triggerall = command = "hurricane"
triggerall = power >= 1000
triggerall = palno > 6
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger3 = stateno != [2000,2900]

;===========================================================================
;Bakuretsu Ken
[State -1, BK]
type = ChangeState
value = 1150
triggerall = command = "baku"
trigger1 = var(1)

;---------------------------------------------------------------------------
;Light Tiger Kick
[State -1, LTK]
type = ChangeState
value = 1050
triggerall = command = "tk_a"
trigger1 = var(1)

;Strong Tiger Kick
[State -1, STK]
type = ChangeState
value = 1060
triggerall = command = "tk_b"
trigger1 = var(1)

;---------------------------------------------------------------------------
;Light Hurricane Upper (1)
[State -1, 1HU]
type = ChangeState
value = 1000
triggerall = command = "QCF_x"
triggerall = NumProjID(1000) = 0
Trigger1 = Statetype != A
trigger1 = ctrl

;Strong Hurricane Upper (2)
[State -1, 2HU]
type = ChangeState
value = 1010
triggerall = command = "QCF_y"
triggerall = NumProjID(1000) = 0
Trigger1 = Statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Light Tiger Kick
[State -1, LTK]
type = ChangeState
value = 1100
triggerall = command = "QCF_a"
trigger1 = var(1)

;Strong Tiger Kick
[State -1, STK]
type = ChangeState
value = 1110
triggerall = command = "QCF_b"
trigger1 = var(1)

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

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

;---------------------------------------------------------------------------
;Dodge
[State -1, Dodge]
type = ChangeState
value = 700
trigger1 = command = "dodge"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Throw
[State -1, Throw]
type = ChangeState
value = 800
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

;Hell Knees
[State -1, Hell Knees]
type = ChangeState
value = 850
triggerall = command = "b"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

;---------------------------------------------------------------------------
;Slide
[State -1, Slide]
type = ChangeState
value = 450
triggerall = command = "DF_a"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;===========================================================================
;---------------------------------------------------------------------------
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 6

;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6

;---------------------------------------------------------------------------
;Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 230) && time > 9

;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6

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

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

;---------------------------------------------------------------------------
;Crouching Strong Punch
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;Crouching Light Kick
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;Crouching Strong Kick
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = statetime >= 7
trigger3 = stateno = 1350 ;Air blocking

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
trigger3 = stateno = 1350 ;Air blocking

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1350 ;Air blocking

;---------------------------------------------------------------------------
;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
trigger3 = stateno = 1350 ;Air blocking
