; The Hyrulian CMD file.
;-| AI |--------------------------------------------------------
[Command]
name = "CPU01"
command = U,U,U
time = 1

[Command]
name = "CPU02"
command = U,U,U
time = 1

[Command]
name = "CPU03"
command = U,U,U
time = 1

[Command]
name = "CPU04"
command = U,U,U
time = 1

[Command]
name = "CPU05"
command = U,U,U
time = 1

[Command]
name = "CPU06"
command = U,U,U
time = 1

[Command]
name = "CPU07"
command = U,U,U
time = 1

[Command]
name = "CPU08"
command = U,U,U
time = 1

[Command]
name = "CPU09"
command = U,U,U
time = 1

[Command]
name = "CPU10"
command = U,U,U
time = 1

[Command]
name = "CPU11"
command = U,U,U
time = 1

[Command]
name = "CPU12"
command = U,U,U
time = 1

[Command]
name = "CPU13"
command = U,U,U
time = 1

[Command]
name = "CPU14"
command = U,U,U
time = 1

[Command]
name = "CPU15"
command = U,U,U
time = 1

[Command]
name = "CPU16"
command = U,U,U
time = 1

[Command]
name = "CPU17"
command = U,U,U
time = 1

[Command]
name = "CPU18"
command = U,U,U
time = 1

[Command]
name = "CPU19"
command = U,U,U
time = 1

[Command]
name = "CPU20"
command = U,U,U
time = 1

[Command]
name = "CPU21"
command = U,U,U
time = 1

[Command]
name = "CPU22"
command = U,U,U
time = 1

[Command]
name = "CPU23"
command = U,U,U
time = 1

[Command]
name = "CPU24"
command = U,U,U
time = 1

[Command]
name = "CPU25"
command = U,U,U
time = 1

[Command]
name = "CPU26"
command = U,U,U
time = 1

[Command]
name = "CPU27"
command = U,U,U
time = 1

[Command]
name = "CPU28"
command = U,U,U
time = 1

[Command]
name = "CPU29"
command = U,U,U
time = 1

[Command]
name = "CPU30"
command = U,U,U
time = 1

[Command]
name = "CPU31"
command = U,U,U
time = 1

[Command]
name = "CPU32"
command = U,U,U
time = 1

[Command]
name = "CPU33"
command = U,U,U
time = 1

[Command]
name = "CPU34"
command = U,U,U
time = 1

[Command]
name = "CPU35"
command = U,U,U
time = 1

[Command]
name = "CPU36"
command = U,U,U
time = 1

[Command]
name = "CPU37"
command = U,U,U
time = 1

[Command]
name = "CPU38"
command = U,U,U
time = 1

[Command]
name = "CPU39"
command = U,U,U
time = 1

[Command]
name = "CPU40"
command = U,U,U
time = 1

[Command]
name = "CPU41"
command = U,U,U
time = 1

[Command]
name = "CPU42"
command = U,U,U
time = 1

[Command]
name = "CPU43"
command = U,U,U
time = 1

[Command]
name = "CPU44"
command = U,U,U
time = 1

[Command]
name = "CPU45"
command = U,U,U
time = 1

[Command]
name = "CPU46"
command = U,U,U
time = 1

[Command]
name = "CPU47"
command = U,U,U
time = 1

[Command]
name = "CPU48"
command = U,U,U
time = 1

[Command]
name = "CPU49"
command = U,U,U
time = 1

[Command]
name = "CPU50"
command = U,U,U
time = 1

[Command]
name = "CPU51"
command = U,U,U
time = 1

[Command]
name = "CPU52"
command = U,U,U
time = 1

[Command]
name = "CPU53"
command = U,U,U
time = 1

[Command]
name = "CPU54"
command = U,U,U
time = 1

[Command]
name = "CPU55"
command = U,U,U
time = 1

[Command]
name = "CPU56"
command = U,U,U
time = 1

[Command]
name = "CPU57"
command = U,U,U
time = 1

[Command]
name = "CPU58"
command = U,U,U
time = 1

[Command]
name = "CPU59"
command = U,U,U
time = 1

[Command]
name = "CPU60"
command = U,U,U
time = 1

[Command]
name = "CPU61"
command = U,U,U
time = 1

[Command]
name = "CPU62"
command = U,U,U
time = 1

[Command]
name = "CPU63"
command = U,U,U
time = 1

[Command]
name = "CPU64"
command = U,U,U
time = 1

[Command]
name = "CPU65"
command = U,U,U
time = 1

[Command]
name = "CPU66"
command = U,U,U
time = 1

[Command]
name = "CPU67"
command = U,U,U
time = 1

[Command]
name = "CPU68"
command = U,U,U
time = 1

[Command]
name = "CPU69"
command = U,U,U
time = 1

[Command]
name = "CPU70"
command = U,U,U
time = 1

;-| Super Motions |--------------------------------------------------------
[Command]
name = "QCF_xy"
command = ~D, DF, F, x+y

[Command]
name = "QCF_xy"
command = ~D, DF, F, y+z

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

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

[Command]
name = "BF_x"
command = B, F, x

[Command]
name = "BF_y"
command = B, F, y

[Command]
name = "BF_z"
command = B, F, z

[Command]
name = "BF_s"
command = B, F, s

;-| Special Motions |------------------------------------------------------
[Command]
name = "3D_s"
command = ~D, D, D, s
time = 25

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

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

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

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

[Command]
name = "QCB_y"
command = ~D, DB, B, y

[Command]
name = "QCB_z"
command = ~D, DB, B, z

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

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

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

[Command]
name = "DU"
command = $D, $U
time = 10

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

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

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

[Command]
name = "Tap_x"
command = x, x, x, x
time = 30

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"
command = F, F
time = 10

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

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

;-| Dir + Button |---------------------------------------------------------
;-| Single Button |---------------------------------------------------------
[Command]
name = "up"
command = U
time = 1

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

[Command]
name = "back"
command = B
time = 1

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

[Command]
name = "up2"
command = $U
time = 1

[Command]
name = "up3"
command = ~$U
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

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd"
command = /$F
time = 1

[Command]
name = "holdfwd2"
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 = "holddown2"
command = /D
time = 1

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

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

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

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

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

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

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

;===========================================================================
;---------------------------------------------------------------------------
; AI
[State -1]
type = Varset
trigger1 = command = "CPU01"
trigger2 = command = "CPU02"
trigger3 = command = "CPU03"
trigger4 = command = "CPU04"
trigger5 = command = "CPU05"
trigger6 = command = "CPU06"
trigger7 = command = "CPU07"
trigger8 = command = "CPU08"
trigger9 = command = "CPU09"
trigger10 = command = "CPU10"
trigger11 = command = "CPU11"
trigger12 = command = "CPU12"
trigger13 = command = "CPU13"
trigger14 = command = "CPU14"
trigger15 = command = "CPU15"
trigger16 = command = "CPU16"
trigger17 = command = "CPU17"
trigger18 = command = "CPU18"
trigger19 = command = "CPU19"
trigger20 = command = "CPU20"
trigger21 = command = "CPU21"
trigger22 = command = "CPU22"
trigger23 = command = "CPU23"
trigger24 = command = "CPU24"
trigger25 = command = "CPU25"
trigger27 = command = "CPU26"
trigger29 = command = "CPU27"
trigger28 = command = "CPU28"
trigger29 = command = "CPU29"
trigger30 = command = "CPU30"
trigger31 = command = "CPU31"
trigger32 = command = "CPU32"
trigger33 = command = "CPU33"
trigger34 = command = "CPU34"
trigger35 = command = "CPU35"
trigger36 = command = "CPU36"
trigger37 = command = "CPU37"
trigger38 = command = "CPU38"
trigger39 = command = "CPU39"
trigger40 = command = "CPU40"
trigger41 = command = "CPU41"
trigger42 = command = "CPU42"
trigger43 = command = "CPU43"
trigger44 = command = "CPU44"
trigger45 = command = "CPU45"
trigger46 = command = "CPU46"
trigger47 = command = "CPU47"
trigger48 = command = "CPU48"
trigger49 = command = "CPU49"
trigger50 = command = "CPU50"
trigger51 = command = "CPU51"
trigger52 = command = "CPU52"
trigger53 = command = "CPU53"
trigger54 = command = "CPU54"
trigger55 = command = "CPU55"
trigger56 = command = "CPU56"
trigger57 = command = "CPU57"
trigger58 = command = "CPU58"
trigger59 = command = "CPU59"
trigger60 = command = "CPU60"
trigger61 = command = "CPU61"
trigger62 = command = "CPU62"
trigger63 = command = "CPU63"
trigger64 = command = "CPU64"
trigger65 = command = "CPU65"
trigger66 = command = "CPU66"
trigger67 = command = "CPU67"
trigger68 = command = "CPU68"
trigger69 = command = "CPU69"
trigger70 = command = "CPU70"
var(32) = 1
ignorehitpause = 1

;---------------------------------------------------------------------------
; Impalor
[State -1]
type = Changestate
trigger1 = p2stateno = 5110
trigger1 = p2bodydist x <= 20
trigger1 = command = "holddown" && command = "holdfwd" && command = "x"
trigger1 = ctrl
value = 520

;---------------------------------------------------------------------------
; Roll forward
[State -1]
type = Changestate
trigger1 = stateno = 5110 && time >= 10
trigger1 = command = "FF"
value = 510

;---------------------------------------------------------------------------
; Roll back
[State -1]
type = Changestate
trigger1 = stateno = 5110 && time >= 10
trigger1 = command = "BB"
value = 511

;---------------------------------------------------------------------------
; Superjump
[State -1]
type = ChangeState
value = 90
triggerall = command = "DU"
trigger1 = statetype != A && time <= 20
trigger1 = ctrl

;---------------------------------------------------------------------------
; Combojump
[State -1]
type = ChangeState
value = 95
triggerall = command = "holdup"
trigger1 = stateno = 450
;trigger1 = animelemno(0) >= 8
trigger1 = movehit
ctrl = 1

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

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

;===========================================================================
;---------------------------------------------------------------------------
; Kokiri Wave
[State -1]
type = ChangeState
value = 3000
triggerall = command = "QCF_xy"
triggerall = power >= 3000
triggerall = enemy, stateno != 348 && enemy, stateno != 368
triggerall = numhelper(335) = 0
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; Biggoron Scombo
[State -1]
type = ChangeState
value = 3100
triggerall = command = "QCB_xy"
triggerall = power >= 3000
triggerall = enemy, stateno != 348 && enemy, stateno != 368
triggerall = numhelper(335) = 0
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; Kokiri Shot X
[State -1]
type = ChangeState
value = 1000
triggerall = command = "QCF_x"
triggerall = numprojID(1000) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

; Kokiri Shot Y
[State -1]
type = ChangeState
value = 1010
triggerall = command = "QCF_y"
triggerall = numprojID(1000) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

; Kokiri Shot Z
[State -1]
type = ChangeState
value = 1020
triggerall = command = "QCF_z"
triggerall = numprojID(1000) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

;---------------------------------------------------------------------------
; Teleport X
[State -1]
type = ChangeState
value = 1100
triggerall = command = "QCB_a"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

; Teleport Y
[State -1]
type = ChangeState
value = 1110
triggerall = command = "QCB_b"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

; Teleport Z
[State -1]
type = ChangeState
value = 1120
triggerall = command = "QCB_c"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

;---------------------------------------------------------------------------
; Spin Attack X
[State -1]
type = ChangeState
value = 1200
triggerall = command = "QCB_x"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

; Spin Attack Y
[State -1]
type = ChangeState
value = 1210
triggerall = command = "QCB_y"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

; Spin Attack Z
[State -1]
type = ChangeState
value = 1220
triggerall = command = "QCB_z"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

;---------------------------------------------------------------------------
; Stone Mask
[State -1]
type = ChangeState
value = 1400
triggerall = command = "3D_s"
trigger1 = var(8) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

[State -1]
type = ChangeState
value = 1450
triggerall = command = "3D_s"
trigger1 = var(8) = 1
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

;---------------------------------------------------------------------------
; Mushu (near)
[State -1]
type = ChangeState
value = 1500
triggerall = command = "QCF_a"
triggerall = numhelper(1501) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

; Mushu
[State -1]
type = ChangeState
value = 1510
triggerall = command = "QCF_b"
triggerall = numhelper(1501) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

; Mushu (far)
[State -1]
type = ChangeState
value = 1520
triggerall = command = "QCF_c"
triggerall = numhelper(1501) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

;---------------------------------------------------------------------------
; Time Song
[State -1]
type = ChangeState
value = 3400
triggerall = command = "BF_s"
triggerall = power >= 3000
triggerall = enemy, stateno != 348 && enemy, stateno != 368
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
; Illusion Dance (1)
[State -1]
type = ChangeState
value = 3500
triggerall = command = "BF_x"
triggerall = power >= 1500
triggerall = var(40) = 0
triggerall = enemy, stateno != 348 && enemy, stateno != 368
trigger1 = statetype = S
trigger1 = ctrl

; Illusion Dance (2)
[State -1]
type = ChangeState
value = 3510
triggerall = command = "BF_y"
triggerall = power >= 1500
triggerall = var(40) = 0
triggerall = enemy, stateno != 348 && enemy, stateno != 368
trigger1 = statetype = S
trigger1 = ctrl

; Illusion Dance (3)
[State -1]
type = ChangeState
value = 3520
triggerall = command = "BF_z"
triggerall = power >= 1500
triggerall = var(40) = 0
triggerall = enemy, stateno != 348 && enemy, stateno != 368
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; Multi-Slash
[State -1]
type = ChangeState
value = 205
triggerall = command = "Tap_x"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

;---------------------------------------------------------------------------
; Standing Bow Shot
[State -1]
type = ChangeState
value = 300
triggerall = command = "x" && command = "a"
triggerall = numprojID(300) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

;---------------------------------------------------------------------------
; Boomerang
[State -1]
type = ChangeState
value = 310
triggerall = command = "y" && command = "b"
triggerall = statetype != A
trigger1 = ctrl
trigger1 = numhelper(315) = 0
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

;---------------------------------------------------------------------------
; Bomb
[State -1]
type = ChangeState
value = 320
triggerall = command = "x" && command = "y"
triggerall = statetype != A
trigger1 = numhelper(325) < 1
trigger1 = ctrl
trigger2 = numhelper(325) = 1 
trigger2 = helper(325), time >= 45
trigger2 = ctrl
trigger3 = hitdefattr = SC, NA
trigger3 = movecontact

;---------------------------------------------------------------------------
; Time Bomb
[State -1]
type = ChangeState
value = 330
triggerall = command = "a" && command = "b"
triggerall = statetype != A
trigger1 = numhelper(335) < 1
trigger1 = ctrl
trigger2 = numhelper(335) = 1 
trigger2 = helper(335), time >= 45
trigger2 = ctrl
trigger3 = hitdefattr = SC, NA
trigger3 = movecontact

;---------------------------------------------------------------------------
; Hook Shot
[State -1]
type = Changestate
value = 340
triggerall = command = "z" && command = "c"
triggerall = numhelper(345) < 1
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
; Fire Staff
[State -1]
type = Changestate
value = 350
triggerall = command = "y" && command = "z"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

;---------------------------------------------------------------------------
; Ice Staff
[State -1]
type = Changestate
value = 360
triggerall = command = "b" && command = "c"
triggerall = numhelper(365) < 1
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact

;===========================================================================
;---------------------------------------------------------------------------
; Kung Fu Throw
[State -1]
type = ChangeState
value = 800
triggerall = command = "y" || command = "z"
triggerall = stateno != 100
triggerall = statetype = S
triggerall = ctrl
triggerall = p2statetype != A
triggerall = p2movetype != H
triggerall = var(40) = 0
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X <= 5
trigger2 = command = "holdback"
trigger2 = p2bodydist X <= 7

;---------------------------------------------------------------------------
; Stand Light Punch
[State -1]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = var(40) != 0
trigger2 = stateno = [200,450]
trigger2 = movecontact

;---------------------------------------------------------------------------
; Stand Medium Punch
[State -1]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [230,235]
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [200,450]
trigger3 = movecontact

;---------------------------------------------------------------------------
; Stand Strong Punch
[State -1]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = [230,235]
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [200,450]
trigger3 = movecontact

;---------------------------------------------------------------------------
; Stand Light Kick
[State -1]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [200,450]
trigger3 = stateno != 230
trigger3 = movecontact

; Double Stand Light Kick
[State -1]
type = ChangeState
value = 235
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = stateno = 230
trigger1 = time = [4,9]

;---------------------------------------------------------------------------
; Standing Medium Kick
[State -1]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 220 || stateno = 230 || stateno = 235 || stateno = 420
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [200,450]
trigger3 = movecontact

;---------------------------------------------------------------------------
; Standing Strong Kick
[State -1]
type = ChangeState
value = 250
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 210 || stateno = 230 || stateno = 235 || stateno = 240  || stateno = 410 || stateno = 440
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [200,450]
trigger3 = movecontact

;---------------------------------------------------------------------------
; Crouching Light Punch
[State -1]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = var(40) != 0
trigger2 = stateno = [200,450]
trigger2 = movecontact

;---------------------------------------------------------------------------
; Crouching Medium Punch
[State -1]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = var(40) != 0
trigger2 = stateno = [200,450]
trigger2 = movecontact

;---------------------------------------------------------------------------
; Crouching Strong Punch
[State -1]
type = ChangeState
value = 420
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = var(40) != 0
trigger2 = stateno = [200,450]
trigger2 = movecontact

;---------------------------------------------------------------------------
;Crouching Light Kick
[State -1]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 400
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [200,450]
trigger3 = movecontact

;---------------------------------------------------------------------------
; Crouching Medium Kick
[State -1]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 220 || stateno = 420
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [200,450]
trigger3 = movecontact

;---------------------------------------------------------------------------
; Crouching Strong Kick
[State -1]
type = ChangeState
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 210 || stateno = 230 || stateno = 235 || stateno = 240 || stateno = 410 || stateno = 440
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [200,450]
trigger3 = movecontact

;---------------------------------------------------------------------------
; Jump Light Punch
[State -1]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = var(40) != 0
trigger2 = stateno = [600,650]
trigger2 = movecontact

;---------------------------------------------------------------------------
; Jump Medium Punch
[State -1]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 630
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [600,650]
trigger3 = movecontact

;---------------------------------------------------------------------------
; Jump Strong Punch
[State -1]
type = ChangeState
value = 620
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 630
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [600,650]
trigger3 = movecontact

;---------------------------------------------------------------------------
; Jump Light Kick
[State -1]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [600,650]
trigger3 = movecontact

;---------------------------------------------------------------------------
; Jump Medium Kick
[State -1]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 620 || stateno = 630
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [600,650]
trigger3 = movecontact

;---------------------------------------------------------------------------
; Jump Strong Kick
[State -1]
type = ChangeState
value = 650
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610 || stateno = 630 || stateno = 640
trigger2 = movecontact
trigger3 = var(40) != 0
trigger3 = stateno = [600,650]
trigger3 = movecontact

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