;-| CPU Activation Commands |--------------------------------------------------------
[Command]
name = "cpu1"
command = ~D,UB, F, x, s, a, x, U,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu2"
command = ~D,UB, F, y, s, a, x, U,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu3"
command = ~D,UB, F, z, s, a, x, U,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu4"
command = ~D,DB, F, x, s,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu5"
command = ~D,DB, F, y, s,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu6"
command = ~D,DB, F, z, s,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu7"
command = ~D,DB, s, U, B, x ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu8"
command = ~D,DB, s, U, B, y ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu9"
command = ~D,DB, s, U, B, z ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu10"
command = ~D,DF, F, x, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu11"
command = ~D,DF, F, y, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu12"
command = ~D,DF, F, z, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu13"
command = ~D,DF, F, a, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu14"
command = ~D,DF, F, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu15"
command = ~D,DF, F, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu16"
command = ~D,DB, B, a, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu17"
command = ~D,DB, B, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu18"
command = ~D,DB, B, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu19"
command = ~D,DB, F, a, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu20"
command = ~D,DB, F, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu21"
command = ~D,DB, F, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu22"
command = ~D,UB, F, a, s, U,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu23"
command = ~D,UB, F, b, s, U,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu24"
command = ~D, D, B, F, s
time = 20

[Command]
name = "cpu25"
command = ~D, DF, F, D, DF, F, s
time = 15

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

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

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

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

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

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

[Command]
name = "cpu32"
command = U, D, U, D, U
time = 1

[Command]
name = "cpu33"
command = D, U, D, U, D
time = 1

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

[Command]
name = "cpu35"
command = D, D, D, D, D
time = 1

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

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

[Command]
name = "cpu37"
command = ~D,DF, F, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu36"
command = ~D,DF, F, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu35"
command = ~D,DB, B, a, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu34"
command = ~D,DB, B, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu33"
command = ~D,DB, B, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu32"
command = ~D,DB, F, a, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu31"
command = ~D,DB, F, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu30"
command = ~D,DB, F, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu29"
command = ~D,UB, F, a, s, U,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu28"
command = ~D,UB, F, b, s, U,x+y+z+a+b+c+s
time = 1

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

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

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

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

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

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

[Command]
name = "cpu19"
command = U, D, U, D, U
time = 1

[Command]
name = "cpu18"
command = D, U, D, U, D
time = 1

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

[Command]
name = "cpu16"
command = D, D, D, D, D
time = 1

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

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

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

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

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

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

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

[Command]
name = "cpu8"
command = U, D, U, D, U
time = 1

[Command]
name = "cpu7"
command = D, U, D, U, D
time = 1

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

[Command]
name = "cpu5"
command = D, D, D, D, D
time = 1

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

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

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

[Command]
name = "cpu1"
command = a, a, a, a, a, D, D, D, B, B, F, F, s
time = 1

[Command]
name = "cpu1"
command = ~D,UB, F, x, s, a, x, U,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu2"
command = ~D,UB, F, y, s, a, x, U,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu3"
command = ~D,UB, F, z, s, a, x, U,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu4"
command = ~D,DB, F, x, s,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu5"
command = ~D,DB, F, y, s,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu6"
command = ~D,DB, F, z, s,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu7"
command = ~D,DB, s, U, B, x ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu8"
command = ~D,DB, s, U, B, y ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu9"
command = ~D,DB, s, U, B, z ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu10"
command = ~D,DF, F, x, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu11"
command = ~D,DF, F, y, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu12"
command = ~D,DF, F, z, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu13"
command = ~D,DF, F, a, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu14"
command = ~D,DF, F, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu15"
command = ~D,DF, F, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu16"
command = ~D,DB, B, a, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu17"
command = ~D,DB, B, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu18"
command = ~D,DB, B, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu19"
command = ~D,DB, F, a, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu20"
command = ~D,DB, F, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu21"
command = ~D,DB, F, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu22"
command = ~D,UB, F, a, s, U,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu23"
command = ~D,UB, F, b, s, U,x+y+z+a+b+c+s
time = 1

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

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

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

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

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

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

[Command]
name = "cpu32"
command = U, D, U, D, U
time = 1

[Command]
name = "cpu33"
command = D, U, D, U, D
time = 1

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

[Command]
name = "cpu35"
command = D, D, D, D, D
time = 1

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

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

[Command]
name = "cpu37"
command = ~D,DF, F, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu36"
command = ~D,DF, F, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu35"
command = ~D,DB, B, a, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu34"
command = ~D,DB, B, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu33"
command = ~D,DB, B, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu32"
command = ~D,DB, F, a, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu31"
command = ~D,DB, F, b, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu30"
command = ~D,DB, F, c, s, U ,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu29"
command = ~D,UB, F, a, s, U,x+y+z+a+b+c+s
time = 1

[Command]
name = "cpu28"
command = ~D,UB, F, b, s, U,x+y+z+a+b+c+s
time = 1

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

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

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

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

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

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

[Command]
name = "cpu19"
command = U, D, U, D, U
time = 1

[Command]
name = "cpu18"
command = D, U, D, U, D
time = 1

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

[Command]
name = "cpu16"
command = D, D, D, D, D
time = 1

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

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

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

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

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

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

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

[Command]
name = "cpu8"
command = U, D, U, D, U
time = 1

[Command]
name = "cpu7"
command = D, U, D, U, D
time = 1

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

[Command]
name = "cpu5"
command = D, D, D, D, D
time = 1

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

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

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

[Command]
name = "cpu1"
command = a, a, a, a, a, D, D, D, B, B, F, F, s
time = 1

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

[Command]
name = "UltimateSmash"
command = ~20$D, U, a+b
time = 10

[Command]
name = "Gigaton2"
command = ~20$B, F, B, F, a
time = 40

[Command]
name = "Gigaton2"
command = ~20$B, F, B, F, b
time = 40

[Command]
name = "Gigaton"
command = ~20$B, F, B, F, a
time = 40

[Command]
name = "Gigaton"
command = ~20$B, F, B, F, b
time = 40

[Command]
name = "Gigaton"
command = ~20$B, F, B, F, c
time = 40

[Command]
name = "QCFQCF_c"
command = ~D, DF, F, D, DF, F, c
time = 30

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

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

[Command]
name = "QCFQCF_z"
command = ~D, DF, F, D, DF, F, z
time = 30

; 2xQCB
[Command]
name = "QCBQCB_a"
command = ~D, DB, B, D, DB, B, a
time = 30

[Command]
name = "QCBQCB_b"
command = ~D, DB, B, D, DB, B, b
time = 30

[Command]
name = "QCBQCB_c"
command = ~D, DB, B, D, DB, B, c
time = 30

[Command]
name = "CrazyX"
command = ~20$B, F, B, F, x
time = 40

[Command]
name = "CrazyY"
command = ~20$B, F, B, F, y
time = 40

[Command]
name = "CrazyZ"
command = ~20$B, F, B, F, z
time = 40

;-| Special Motions |------------------------------------------------------
;-----------------
; QCF
[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 = "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

;-----------------
; QCB
[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 = "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 = "kk"
command = a+b
time = 1

[Command]
name = "kk"
command = a+c
time = 1

[Command]
name = "kk"
command = b+c
time = 1

;--------------------
;Charge_Back_fwd
[Command]
name = "chargebackfwd_a"
command = ~20$B, F, a
time = 10

[Command]
name = "chargebackfwd_b"
command = ~20$B, F, b
time = 10

[Command]
name = "chargebackfwd_c"
command = ~20$B, F, c
time = 10

[Command]
name = "chargebackfwd_x"
command = ~20$B, F, x
time = 10

[Command]
name = "chargebackfwd_x2"
command = ~20$B, DF, x
time = 10

[Command]
name = "chargebackfwd_x2"
command = ~20$B, DB, D, DF, F, x
time = 10

[Command]
name = "chargebackfwd_y"
command = ~20$B, F, y
time = 10

[Command]
name = "chargebackfwd_y2"
command = ~20$B, DF, y
time = 10

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

[Command]
name = "chargebackfwd_z"
command = ~20$B, F, z
time = 10

[Command]
name = "chargebackfwd_z2"
command = ~20$B, DF, z
time = 10

[Command]
name = "chargebackfwd_z2"
command = ~20$B, DB, D, DF, F, z
time = 10

[Command]
name = "chargebackfwd_a2"
command = ~20$B, DF, a
time = 10

[Command]
name = "chargebackfwd_a2"
command = ~20$B, DB, D, DF, F, a
time = 10

[Command]
name = "chargebackfwd_b2"
command = ~20$B, DF, b
time = 10

[Command]
name = "chargebackfwd_b2"
command = ~20$B, DB, D, DF, F, b
time = 10

[Command]
name = "chargebackfwd_c2"
command = ~20$B, DF, c
time = 10

[Command]
name = "chargebackfwd_c2"
command = ~20$B, DB, D, DF, F, c
time = 10

[Command]
name = "chargedownup_x"
command = ~20$D, U, x
time = 10

[Command]
name = "chargedownup_y"
command = ~20$D, U, y
time = 10

[Command]
name = "chargedownup_z"
command = ~20$D, U, z
time = 10

[Command]
name = "chargedownup_a"
command = ~20$D, U, a
time = 10

[Command]
name = "chargedownup_b"
command = ~20$D, U, b
time = 10

[Command]
name = "downup"
command = ~D, U
time = 5

[Command]
name = "downup"
command = ~D, UF
time = 5

[Command]
name = "downup"
command = ~D, UB
time = 5

;--------------------
;Charge_Punch 1
[Command]
name = "charge10"
command = ~60x, ~60y
time = 119

[Command]
name = "charge10"
command = ~60y, ~60z
time = 119

[Command]
name = "charge10"
command = ~60z, ~60x
time = 119

[Command]
name = "chargesnk"
command = ~100a
time = 1000

[Command]
name = "chargesnk"
command = ~100b
time = 1000

[Command]
name = "chargesnk"
command = ~100c
time = 1000

;Charge_Punch 2
[Command]
name = "charge20"
command = ~120x, ~120y
time = 199

[Command]
name = "charge20"
command = ~120y, ~120z
time = 199

[Command]
name = "charge20"
command = ~120z, ~120x
time = 199

;Charge_Punch 3
[Command]
name = "charge30"
command = ~200x, ~200y
time = 279

[Command]
name = "charge30"
command = ~200y, ~200z
time = 279

[Command]
name = "charge30"
command = ~200z, ~200x
time = 279

;Charge_Punch 4
[Command]
name = "charge40"
command = ~280x, ~280y
time = 379

[Command]
name = "charge40"
command = ~280y, ~280z
time = 379

[Command]
name = "charge40"
command = ~280z, ~280x
time = 379

;Charge_Punch 5
[Command]
name = "charge50"
command = ~380x, ~380y
time = 499

[Command]
name = "charge50"
command = ~380y, ~380z
time = 499

[Command]
name = "charge50"
command = ~380z, ~380x
time = 499

;Charge_Punch 6
[Command]
name = "charge60"
command = ~500x, ~500y
time = 619

[Command]
name = "charge60"
command = ~500y, ~500z
time = 619

[Command]
name = "charge60"
command = ~500z, ~500x
time = 619

;Charge_Punch 7
[Command]
name = "charge70"
command = ~620x, ~620y
time = 739

[Command]
name = "charge70"
command = ~620y, ~620z
time = 739

[Command]
name = "charge70"
command = ~620z, ~620x
time = 739

;Charge_Punch 8
[Command]
name = "charge80"
command = ~740x, ~740y
time = 859

[Command]
name = "charge80"
command = ~740y, ~740z
time = 859

[Command]
name = "charge80"
command = ~740z, ~740x
time = 859

;Charge_Punch 9
[Command]
name = "charge90"
command = ~860x, ~860y
time = 999

[Command]
name = "charge90"
command = ~860y, ~860z
time = 999

[Command]
name = "charge90"
command = ~860z, ~860x
time = 999

;Charge_Punch 10
[Command]
name = "charge100"
command = ~1000x, ~1000y

[Command]
name = "charge100"
command = ~1000y, ~1000z

[Command]
name = "charge100"
command = ~1000z, ~1000x

;-| 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 = a+b
time = 1

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

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

[Command]
name = "down_c"
command = /$D,c
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 = "s"
command = s
time = 1

[Command]
name = "ReleaseS"
command = ~s
time = 20

;-| Two Buttons |---------------------------------------------------------

[Command]
name = "ax"
command = a+x
time = 1

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

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

[Command]
name = "pp"
command = x+y
time = 1

[Command]
name = "pp"
command = x+z
time = 1

[Command]
name = "pp"
command = y+z
time = 1

[Command]
name = "ppp"
command = x+y+z
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd"  ;Required (do not remove)
command = /$F
time = 1

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

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

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

[Command]
name = "up"
command = U
time = 2

[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

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

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

[Command]
name = "hold_c"
command = /c
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_s"
command = /s
time = 1

;---------------------------------------------------------------------------
; 2. State entry
; --------------
; This is where you define what commands bring you to what states.
;
; Each state entry block looks like:
;   [State -1]                  ;Don't change this
;   type = ChangeState          ;Don't change this
;   value = new_state_number
;   trigger1 = command = command_name
;   . . .  (any additional triggers)
;
; - new_state_number is the number of the state to change to
; - command_name is the name of the command (from the section above)
; - Useful triggers to know:
;   - statetype
;       S, C or A : current state-type of player (stand, crouch, air)
;   - ctrl
;       0 or 1 : 1 if player has control. Unless "interrupting" another
;                move, you'll want ctrl = 1
;   - stateno
;       number of state player is in - useful for "move interrupts"
;   - movecontact
;       0 or 1 : 1 if player's last attack touched the opponent
;                useful for "move interrupts"
;
; Note: The order of state entry is important.
;   State entry with a certain command must come before another state
;   entry with a command that is the subset of the first.
;   For example, command "fwd_a" must be listed before "a", and
;   "fwd_ab" should come before both of the others.
;
; For reference on triggers, see CNS documentation.
;
; Just for your information (skip if you're not interested):
; This part is an extension of the CNS. "State -1" is a special state
; that is executed once every game-tick, regardless of what other state
; you are in.


; Don't remove the following line. It's required by the CMD standard.

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

;AI ACTIVATE!
[State -1, AI]
type = VarSet
trigger1  = command = "cpu1"
trigger2  = command = "cpu2"
trigger3  = command = "cpu3"
trigger4  = command = "cpu4"
trigger5  = command = "cpu5"
trigger6  = command = "cpu6"
trigger7  = command = "cpu7"
trigger8  = command = "cpu8"
trigger9  = command = "cpu9"
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 = "cpu26"
trigger25 = command = "cpu27"
trigger26 = command = "cpu28"
trigger27 = command = "cpu29"
trigger28 = command = "cpu30"
trigger29 = command = "cpu31"
trigger30 = command = "cpu32"
trigger31 = command = "cpu33"
trigger32 = command = "cpu34"
trigger33 = command = "cpu35"
trigger34 = command = "cpu36"
trigger35 = command = "cpu37"
v = 30
value = 1

[State 200, Sound1]
type = stopsnd
trigger1 = roundstate = 2
channel = 22

;Tactical Recover
[State 5110, 11]
type = ChangeState
trigger1 = command = "hold_x"
trigger1 = command = "hold_y"
trigger2 = command = "hold_y"
trigger2 = command = "hold_z"
trigger3 = command = "hold_x"
trigger3 = command = "hold_z"
triggerall = Var(58) = 1 || Var(58) = 4 || Var(58) = 3
triggerall = alive = 1
triggerall = life > 0
triggerall = stateno = 5110
triggerall = anim = 5110
value = 125

;Safe fall
[State 5110, 11]
type = ChangeState
trigger1 = command = "pp"
trigger1 = Var(58) = 2 || Var(58) = 5 || Var(58) = 6
triigerall = alive = 1
triggerall = life > 0
triggerall = stateno = 5110
value = 126

;Roll
[State 5110, 11]
type = ChangeState
trigger1 = command = "holdback"
trigger1 = Var(58) = 1 || Var(58) = 2 || Var(58) = 5 || Var(58) = 7 || Var(58) = 8
triiger1 = alive = 1
trigger1 = life > 0
trigger1 = stateno = 5110
value = 5202

[State 5110, 11]
type = ChangeState
trigger1 = command = "holdfwd"
trigger1 = Var(58) = 1 || Var(58) = 2 || Var(58) = 5 || Var(58) = 7 || Var(58) = 8
triiger1 = alive = 1
trigger1 = life > 0
trigger1 = stateno = 5110
value = 5203

[State -1, V-IsmOff]
type = VarSet
trigger1 = power = 0
trigger1 = var(35) = 1
v = 35
value = 0

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(57) = 1
trigger1 = (gametime%54)=0
add = 40, -40, -40
time = 27
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(57) = 1
trigger1 = (gametime%54)=27
add = 40, -60, -60
time = 9
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(57) = 1
trigger1 = (gametime%54)=36
add = 40, -80, -80
time = 9
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(57) = 1
trigger1 = (gametime%54)=45
add = 40, -60, -60
time = 9
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(55) > 0
trigger1 = (gametime%27)=0
add = 80, 80, 0
time = 3
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(55) > 0
trigger1 = (gametime%27)=3
add = 60, 60, 0
time = 3
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(55) > 0
trigger1 = (gametime%27)=6
add = 40, 40, 0
time = 3
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(55) > 0
trigger1 = (gametime%27)=9
add = 20, 20, 0
time = 3
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(55) > 0
trigger1 = (gametime%27)=15
add = 20, 20, 0
time = 3
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(55) > 0
trigger1 = (gametime%27)=18
add = 40, 40, 0
time = 3
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(55) > 0
trigger1 = (gametime%27)=21
add = 60, 60, 0
time = 3
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = palfx
trigger1 = var(55) > 0
trigger1 = (gametime%27)=24
add = 80, 80, 0
time = 3
ignorehitpause = 1

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(35) = 1
value = 0.6

[State -1, V-Ism Attackset]
type = varset
trigger1 = var(58) != 7
trigger1 = stateno = 2193
value = 0
v = 51

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(58) = 7
trigger1 = var(51) = 0
value = 1

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(58) = 7
trigger1 = var(51) = 1
value = 1.05

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(58) = 7
trigger1 = var(51) = 2
value = 1.1

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(58) = 7
trigger1 = var(51) = 3
value = 1.15

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(58) = 7
trigger1 = var(51) = 4
value = 1.2

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(58) = 7
trigger1 = var(51) = -1
value = 0.95

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(58) = 7
trigger1 = var(51) = -2
value = 0.9

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(58) = 7
trigger1 = var(51) = -3
value = 0.85

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(58) = 7
trigger1 = var(51) = -4
value = 0.8

[State -1, V-Ism Attackset]
type = defencemulset
trigger1 = var(58) = 7
trigger1 = var(51) = 0
value = 1

[State -1, V-Ism Attackset]
type = defencemulset
trigger1 = var(58) = 7
trigger1 = var(51) = 1
value = 1.05

[State -1, V-Ism Attackset]
type = defencemulset
trigger1 = var(58) = 7
trigger1 = var(51) = 2
value = 1.1

[State -1, V-Ism Attackset]
type = defencemulset
trigger1 = var(58) = 7
trigger1 = var(51) = 3
value = 1.15

[State -1, V-Ism Attackset]
type = defencemulset
trigger1 = var(58) = 7
trigger1 = var(51) = 4
value = 1.2

[State -1, V-Ism Attackset]
type = defencemulset
trigger1 = var(58) = 7
trigger1 = var(51) = -1
value = 0.95

[State -1, V-Ism Attackset]
type = defencemulset
trigger1 = var(58) = 7
trigger1 = var(51) = -2
value = 0.9

[State -1, V-Ism Attackset]
type = defencemulset
trigger1 = var(58) = 7
trigger1 = var(51) = -3
value = 0.85

[State -1, V-Ism Attackset]
type = defencemulset
trigger1 = var(58) = 7
trigger1 = var(51) = -4
value = 0.8

[State -1, V-Ism Attackset]
type = varset
trigger1 = var(58) != 7
trigger1 = stateno = 2193
v = 51
value = 0

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(58) != 7
trigger1 = stateno = 2193
value = 1

[State -1, V-Ism Attackset]
type = defencemulset
trigger1 = var(58) != 7
trigger1 = stateno = 2193
value = 1

[State -1, V-Ism Attackset]
type = Attackmulset
trigger1 = var(58) = 8
trigger1 = stateno != 2193
value = 0.65

[State -1, V-Ism AttackOff]
type = Attackmulset
trigger1 = var(35) = 0 && var(54) = 0 && var(57) = 0 && var(58) != 8 && var(55) = 0 && var(51) = 0
value = 1

[State -1, S Groove Attack]
type = Attackmulset
trigger1 = var(54) = 1
trigger1 = stateno != 2193
value = 1.10

[State -1, N Groove Attack]
type = Attackmulset
trigger1 = var(55) > 0
trigger1 = stateno != 2193
value = 1.15

[State -1, K Groove Attack]
type = Attackmulset
trigger1 = var(57) = 1
trigger1 = stateno != 2193
value = 1.20

[State -1, K Groove Attack]
type = PowerSet
trigger1 = var(58) = 9
trigger1 = stateno != 2193
trigger1 = power = 0
value = 1750

[State -1, V-Ism]
type = ChangeState
trigger1 = command = "cz"
trigger1 = power >= 1500
trigger1 = statetype = S
trigger1 = var(35) = 0
trigger1 = ctrl = 1
trigger1 = var(58) = 2
value = 2000

[State -1, V-Ism]
type = ChangeState
trigger1 = command = "cz"
trigger1 = power >= 1000
trigger1 = statetype = S
trigger1 = var(55) = 0
trigger1 = ctrl = 1
trigger1 = var(58) = 5
value = 4123

[State -1, V-Ism]
type = ChangeState
trigger1 = command = "cz"
trigger1 = power >= 1500
trigger1 = statetype = A
trigger1 = var(35) = 0
trigger1 = ctrl = 1
trigger1 = var(58) = 2
value = 2001

[State -1, V-IsmOff]
type = poweradd
trigger1 = roundstate = 0
trigger2 = roundstate = 1
triggerall = var(57) = 1
value = -3000

[State -1, V-IsmOff]
type = poweradd
triggerall = var(35) = 1
trigger1 = MoveType = H
trigger2 = Life = 0
trigger3 = p2Life = 0
value = -1500

[State -1, V-IsmOff]
type = VarSet
triggerall = var(35) = 1
trigger1 = MoveType = H
trigger2 = Life = 0
trigger3 = p2Life = 0
v = 35
value = 0

[State -1, AfterStop]
type = AfterImage
triggerall = stateno != 125
triggerall = stateno != 800
triggerall = stateno != 805
triggerall = stateno != 810
triggerall = stateno != 815
triggerall = stateno != 820
triggerall = stateno != 825
triggerall = stateno != 830
triggerall = stateno != 835
triggerall = stateno != 840
triggerall = stateno != 845
triggerall = stateno != 850
triggerall = stateno != 855
triggerall = stateno != 127
triggerall = stateno != 128
triggerall = stateno != 3000
triggerall = stateno != 3001
triggerall = stateno != 5120
triggerall = stateno != 2100
triggerall = stateno != 2101
trigger1 = var(35) = 0
time = 0

[State -1, V-IsmLosePower]
type = Varset
trigger1 = var(57) = 0
trigger1 = var(58) = 6
trigger1 = stateno != 2193
trigger1 = power = 3000
v = 57
value = 1

[State -1, V-IsmLosePower]
type = Varset
trigger1 = var(54) = 0
trigger1 = var(58) = 4
trigger1 = stateno != 2193
trigger1 = power = 3000
v = 54
value = 1

[State -1, V-IsmLosePower]
type = Varset
trigger1 = var(57) = 1
trigger1 = var(58) = 6
trigger1 = power = 0
v = 57
value = 0

[State -1, V-IsmLosePower]
type = Varset
triggerall = var(54) = 1
triggerall = var(58) = 4
trigger1 = power = 0
v = 54
value = 0

[State -1, V-IsmLosePower]
type = Varset
triggerall = var(55) > 0
trigger1 = win
trigger2 = lose
trigger3 = roundstate = 1 || roundstate = 0
v = 55
value = 0

[State -1, V-IsmLosePower]
type = Varadd
trigger1 = var(55) > 0
trigger1 = 1
v = 55
value = -1

[State -1, V-IsmLosePower]
type = PowerSet
triggerall = roundstate != 2
trigger1 = var(57) = 1
value = 0

[State -1, V-IsmLosePower]
type = PowerAdd
trigger1 = var(54) = 1
ignorehitpause = 1
value = -6

[State -1, V-IsmLosePower]
type = PowerAdd
trigger1 = var(57) = 1
ignorehitpause = 1
value = -6

[State -1, V-IsmLosePower]
type = PowerAdd
trigger1 = var(35) = 1
ignorehitpause = 1
value = -7

;-| Special Moves |------------------------------------------------------

;Turn Punch SNK
[State -1]
type = ChangeState
value = 1401
triggerall = Var(35) = 1
triggerall = statetype = A
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = command = "chargesnk"
trigger2 = movecontact
trigger2 = stateno = 640
trigger2 = prevstateno = 610
trigger2 = command = "c"

;Dash Punch Weak Trip
[State -1]
type = ChangeState
value = 705
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = statetype = S
trigger1 = command = "chargebackfwd_x2"

;Dash Punch Weak Trip
[State -1]
type = ChangeState
value = 735
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = statetype = S
trigger1 = command = "chargebackfwd_a2"

;Dash Punch Medium Trip
[State -1]
type = ChangeState
value = 715
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = statetype = S
trigger1 = command = "chargebackfwd_y2"

;Dash Punch Medium Trip
[State -1]
type = ChangeState
value = 745
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = statetype = S
trigger1 = command = "chargebackfwd_b2"

;Dash Punch Strong Trip
[State -1]
type = ChangeState
value = 725
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = statetype = S
trigger1 = command = "chargebackfwd_z2"

;Dash Punch Strong Trip
[State -1]
type = ChangeState
value = 755
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = statetype = S
trigger1 = command = "chargebackfwd_c2"


;Dash Punch Weak
[State -1]
type = ChangeState
value = 700
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = command = "chargebackfwd_x"
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_x"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_x"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_x"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_x"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_x"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_x"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_x"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_x"
trigger10 = MoveContact
trigger10 = stateno = 241
trigger10 = command = "QCF_x"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_x"

;Dash Punch Medium
[State -1]
type = ChangeState
value = 710
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = command = "chargebackfwd_y"
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_y"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_y"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_y"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_y"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_y"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_y"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_y"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_y"
trigger10 = MoveContact
trigger10 = stateno = 241
trigger10 = command = "QCF_y"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_y"

;Dash Punch Strong
[State -1]
type = ChangeState
value = 720
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = command = "chargebackfwd_z"
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_z"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_z"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_z"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_z"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_z"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_z"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_z"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_z"
trigger10 = MoveContact
trigger10 = stateno = 241
trigger10 = command = "QCF_z"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_z"

;Dash Kick Weak
[State -1]
type = ChangeState
value = 730
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = command = "chargebackfwd_a"
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_a"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_a"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_a"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_a"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_a"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_a"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_a"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_a"
trigger10 = MoveContact
trigger10 = stateno = 241
trigger10 = command = "QCF_a"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_a"

;Dash Kick Medium
[State -1]
type = ChangeState
value = 740
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = command = "chargebackfwd_b"
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_b"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_b"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_b"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_b"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_b"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_b"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_b"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_b"
trigger10 = MoveContact
trigger10 = stateno = 241
trigger10 = command = "QCF_b"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_b"

;Dash Kick Strong
[State -1]
type = ChangeState
value = 750
trigger1 = command = "chargebackfwd_c"
trigger1 = command != "holddown"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = statetype = S
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_c"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_c"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_c"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_c"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_c"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_c"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_c"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_c"
trigger10 = MoveContact
trigger10 = stateno = 241
trigger10 = command = "QCF_c"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_c"

;===========================================================================
[State -1, AI]
type = ChangeState
trigger1 = command = "cpu24"
trigger1 = ctrl = 1
trigger1 = statetype = S
value = 169

; Taunt 2
[State -1]
type = ChangeState
value = 162
triggerall = var(27) = 1
trigger1 = command = "cpu25"
trigger1 = var(46) != 1
trigger1 = power >= 100
trigger1 = ctrl = 1
trigger1 = statetype = S

; Taunt
[State -1]
type = ChangeState
value = 160
triggerall = var(58) != 8
triggerall = var(58) != 9
trigger1 = command = "s"
trigger1 = ctrl = 1
trigger1 = statetype = S

; Taunt
[State -1]
type = ChangeState
value = 159
triggerall = Var(35) = 0
triggerall = var(58) = 8
trigger1 = command = "hold_s"
trigger1 = Var(20) < 5
trigger1 = Var(21) = 0
trigger1 = ctrl = 1
trigger1 = statetype = S

;---------------------------------------------------------------------------
;Stand_X
[State -1]
type = ChangeState
value = 200
triggerall = command = "x"          ;Place name of command here
triggerall = command != "holddown"  ;Standing moves should have this line
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Stand_Y
[State -1]
type = ChangeState
value = 211
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = p2bodydist X <= 20
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact

;Stand_Y
[State -1]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Stand_Z
[State -1]
type = ChangeState
value = 221
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = p2bodydist X <= 5
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact

;Stand_Z
[State -1]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Stand_A
[State -1]
type = ChangeState
value = 230
triggerall = command = "a"          ;Place name of command here
triggerall = command != "holddown"  ;Standing moves should have this line
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Stand_B
[State -1]
type = ChangeState
value = 241
triggerall = command = "b"          ;Place name of command here
triggerall = command != "holddown"  ;Standing moves should have this line
triggerall = Var(35) = 1
triggerall = p2bodydist X <= 5
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact

;Stand_B
[State -1]
type = ChangeState
value = 240
triggerall = command = "b"          ;Place name of command here
triggerall = command != "holddown"  ;Standing moves should have this line
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Stand_C
[State -1]
type = ChangeState
value = 251
triggerall = Var(35) = 1
triggerall = p2bodydist X <= 5
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact

;Stand_C
[State -1]
type = ChangeState
value = 250
triggerall = Var(35) = 1
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Crouch_X
[State -1]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Crouch_Y
[State -1]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Crouch_Z
[State -1]
type = ChangeState
value = 420
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Crouch_A
[State -1]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = Var(35) = 1
triggerall = command = "holddown"
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = MoveContact


;---------------------------------------------------------------------------
;Crouch_B
[State -1]
type = ChangeState
value = 440
triggerall = Var(35) = 1
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Crouch_C
[State -1]
type = ChangeState
value = 450
triggerall = Var(35) = 1
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = MoveContact


;---------------------------------------------------------------------------
;Jump_X
[State -1]
type = ChangeState
value = 600
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = command = "x"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = MoveContact


;---------------------------------------------------------------------------
;Jump_Y
[State -1]
type = ChangeState
value = 610
triggerall = command = "y"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Jump_Z
[State -1]
type = ChangeState
value = 620
triggerall = command = "z"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = MoveContact
;---------------------------------------------------------------------------
;Jump_A
[State -1]
type = ChangeState
value = 630
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Jump_B
[State -1]
type = ChangeState
value = 640
triggerall = command = "b"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = MoveContact

;---------------------------------------------------------------------------
;Jump_C
[State -1]
type = ChangeState
value = 650
triggerall = command = "c"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = MoveContact

;------------------------------------------------------
;BELOW HERE IS THE REAL STUFF. EVERYTHING UP THERE IS FOR V-ISM ONLY.
;---------------------------------------------------------------------------
;-| Supers Moves |--------------------------------------------------------

;Alpha
[State -1]
type = ChangeState
value = 900
triggerall = Power >= 1000
triggerall = p2bodydist x <= 85
triggerall = command != "holddown"
triggerall = statetype != A
triggerall = command = "by"
triggerall = enemy, hitdefattr = SCA, NA, SA
triggerall = Var(58) = 1 || Var(58) = 2 || Var(58) = 4 || Var(58) = 5
trigger1 = stateno = 150
trigger2 = stateno = 151

;Alpha
[State -1]
type = ChangeState
value = 900
triggerall = Power >= 1000
triggerall = p2bodydist x <= 85
triggerall = command != "holddown"
triggerall = statetype != A
triggerall = enemy, hitdefattr = SCA, NA, SA
triggerall = command = "cz"
triggerall = Var(58) = 7
trigger1 = stateno = 150
trigger2 = stateno = 151


;Side step
[State -1]
type = ChangeState
value = 3000
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = command = "ax"
trigger1 = ctrl = 1
triggerall = Var(58) = 1 || Var(58) = 2 || Var(58) = 5

;S-Groove Charge
[State -1]
type = ChangeState
value = 162
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = command = "cz"
trigger1 = ctrl = 1
trigger1 = power < 3000
triggerall = Var(58) = 4
triggerall = Var(54) = 0

;Dodge
[State -1]
type = ChangeState
value = 3001
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = command = "ax"
trigger1 = ctrl = 1
triggerall = Var(58) = 4

;Alpha
;[State -1]
;type = ChangeState
;value = 905
;triggerall = Power >= 200
;triggerall = stateno != 151
;triggerall = stateno != 150
;trigger1 = command != "holddown"
;trigger1 = command = "QCB_x"
;trigger2 = command != "holddown"
;trigger2 = command = "QCB_y"
;trigger3 = command != "holddown"
;trigger3 = command = "QCB_z"
;trigger4 = command != "holddown"
;trigger4 = command = "AlphaCounter"

;Special C
[State -1]
type = ChangeState
value = 802
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = ctrl = 1 || stateno = 40
triggerall = command = "UltimateSmash"
trigger1 = var(44) = 1
trigger1 = var(43) = 0
trigger1 = Var(58) = 10

;Special C
[State -1]
type = ChangeState
value = 850
triggerall = command != "holddown"
triggerall = Var(35) != 1
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = command = "Gigaton"
trigger1 = Var(58) = 1
trigger1 = power = 3000
trigger2 = Var(58) = 3
trigger2 = power = 3000
trigger3 = Var(58) = 4
trigger3 = var(54) = 1
trigger3 = life < 300
trigger4 = Var(58) = 5
trigger4 = power = 3000
trigger5 = Var(58) = 6
trigger5 = var(57) = 1
trigger6 = Var(58) = 7
trigger6 = power = 3000
trigger7 = Var(58) = 8
trigger7 = power = 3000

;Special C
[State -1]
type = ChangeState
value = 850
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = Var(58) = 10
triggerall = command = "Gigaton2"
trigger1 = var(40) = 1
trigger2 = power >= 1000

;Special X
[State -1]
type = ChangeState
value = 800
triggerall = command = "QCFQCF_x"
triggerall = command != "holddown"
triggerall = power >= 1000
triggerall = Var(35) != 1
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;Special X 2
[State -1]
type = ChangeState
value = 805
triggerall = command = "CrazyX"
triggerall = command != "holddown"
trigger1 = Var(58) = 1
trigger1 = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = Var(58) = 2
trigger2 = power >= 1500
trigger2 = statetype = S
trigger2 = ctrl = 1
trigger3 = Var(58) = 4
trigger3 = Var(54) = 1
trigger3 = life >= 300
trigger3 = statetype = S
trigger3 = ctrl = 1
trigger4 = Var(58) = 4
trigger4 = life < 300
trigger4 = Var(54) = 0
trigger4 = statetype = S
trigger4 = ctrl = 1
trigger5 = Var(58) = 5
trigger5 = power >= 1000
trigger5 = statetype = S
trigger5 = ctrl = 1
trigger6 = Var(58) = 7
trigger6 = power >= 1000
trigger6 = statetype = S
trigger6 = ctrl = 1
trigger7 = power >= 1000
trigger7 = stateno = 815
trigger7 = var(58) = 1

;Special X 2
[State -1]
type = ChangeState
value = 805
triggerall = command = "CrazyY"
triggerall = command != "holddown"
trigger1 = Var(58) = 1
trigger1 = power >= 1000 && power < 2000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = Var(58) = 2
trigger2 = power >= 1500
trigger2 = statetype = S
trigger2 = ctrl = 1
trigger3 = Var(58) = 4
trigger3 = Var(54) = 1
trigger3 = life >= 300
trigger3 = statetype = S
trigger3 = ctrl = 1
trigger4 = Var(58) = 4
trigger4 = life < 300
trigger4 = Var(54) = 0
trigger4 = statetype = S
trigger4 = ctrl = 1
trigger5 = Var(58) = 5
trigger5 = power >= 1000
trigger5 = statetype = S
trigger5 = ctrl = 1
trigger6 = Var(58) = 7
trigger6 = power >= 1000 && power < 2000
trigger6 = statetype = S
trigger6 = ctrl = 1
trigger7 = power >= 1000 && power < 2000
trigger7 = stateno = 815
trigger7 = var(58) = 1

;Special X 2
[State -1]
type = ChangeState
value = 805
triggerall = command = "CrazyZ"
triggerall = command != "holddown"
trigger1 = Var(58) = 1
trigger1 = power >= 1000 && power < 2000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = Var(58) = 2
trigger2 = power >= 1500
trigger2 = statetype = S
trigger2 = ctrl = 1
trigger3 = Var(58) = 4
trigger3 = Var(54) = 1
trigger3 = life >= 300
trigger3 = statetype = S
trigger3 = ctrl = 1
trigger4 = Var(58) = 4
trigger4 = life < 300
trigger4 = Var(54) = 0
trigger4 = statetype = S
trigger4 = ctrl = 1
trigger5 = Var(58) = 5
trigger5 = power >= 1000
trigger5 = statetype = S
trigger5 = ctrl = 1
trigger6 = Var(58) = 7
trigger6 = power >= 1000 && power < 2000
trigger6 = statetype = S
trigger6 = ctrl = 1
trigger7 = power >= 1000 && power < 2000
trigger7 = stateno = 815
trigger7 = var(58) = 1

;Special X 2
[State -1]
type = ChangeState
value = 805
triggerall = command = "CrazyX"
triggerall = command != "holddown"
triggerall = power >= 1000
triggerall = Var(35) != 1
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

[State -1]
type = ChangeState
value = 835
triggerall = command = "QCBQCB_a"
triggerall = command != "holddown"
triggerall = power >= 1000
triggerall = Var(35) != 1
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;Special Y
[State -1]
type = ChangeState
value = 810
triggerall = command = "QCFQCF_y"
triggerall = command != "holddown"
triggerall = power >= 2000
triggerall = Var(35) != 1
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

[State -1]
type = ChangeState
value = 815
triggerall = command = "CrazyZ"
triggerall = command != "holddown"
triggerall = Var(35) != 1
trigger1 = Var(58) = 1
trigger1 = power >= 2000 && power < 3000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = Var(58) = 7
trigger2 = power >= 2000 && power < 3000
trigger2 = statetype = S
trigger2 = ctrl = 1

[State -1]
type = ChangeState
value = 815
triggerall = command = "CrazyY"
triggerall = command != "holddown"
triggerall = Var(35) != 1
trigger1 = Var(58) = 1
trigger1 = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = Var(58) = 7
trigger2 = power >= 2000
trigger2 = statetype = S
trigger2 = ctrl = 1

;Special Y 2
[State -1]
type = ChangeState
value = 815
triggerall = command = "CrazyY"
triggerall = command != "holddown"
triggerall = power >= 2000
triggerall = Var(35) != 1
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;Special Y 2
[State -1]
type = ChangeState
value = 845
triggerall = command = "QCBQCB_b"
triggerall = command != "holddown"
triggerall = power >= 2000
triggerall = Var(35) != 1
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211


;Special Z
[State -1]
type = ChangeState
value = 820
triggerall = command = "QCFQCF_z"
triggerall = command != "holddown"
triggerall = power >= 3000
triggerall = Var(35) != 1
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;Special Z 2
[State -1]
type = ChangeState
value = 825
triggerall = command = "CrazyZ" || command = "CrazyY" || command = "CrazyX" 
triggerall = command != "holddown"
triggerall = Var(35) != 1
trigger1 = Var(58) = 9
trigger1 = power >= 3000
trigger1 = statetype = S
trigger1 = ctrl = 1

;Special Z 2
[State -1]
type = ChangeState
value = 825
triggerall = command = "CrazyZ"
triggerall = command != "holddown"
triggerall = Var(35) != 1
trigger1 = Var(58) = 1
trigger1 = power >= 3000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = Var(58) = 3
trigger2 = power >= 3000
trigger2 = statetype = S
trigger2 = ctrl = 1
trigger3 = Var(58) = 4
trigger3 = Var(54) = 1
trigger3 = life < 200
trigger3 = statetype = S
trigger3 = ctrl = 1
trigger4 = Var(58) = 6
trigger4 = Var(57) = 1
trigger4 = statetype = S
trigger4 = ctrl = 1
trigger5 = Var(58) = 7
trigger5 = power >= 3000
trigger5 = statetype = S
trigger5 = ctrl = 1

;Special Z 2
[State -1]
type = ChangeState
value = 825
triggerall = command = "CrazyX"
triggerall = command != "holddown"
triggerall = Var(35) != 1
trigger1 = Var(58) = 3
trigger1 = power >= 3000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = Var(58) = 4
trigger2 = Var(54) = 1
trigger2 = life < 200
trigger2 = statetype = S
trigger2 = ctrl = 1
trigger3 = Var(58) = 6
trigger3 = Var(57) = 1
trigger3 = statetype = S
trigger3 = ctrl = 1
trigger4 = Var(58) = 7
trigger4 = power >= 3000
trigger4 = statetype = S
trigger4 = ctrl = 1

;Special Z 2
[State -1]
type = ChangeState
value = 825
triggerall = command = "CrazyY"
triggerall = command != "holddown"
triggerall = Var(35) != 1
trigger1 = Var(58) = 3
trigger1 = power >= 3000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = Var(58) = 4
trigger2 = Var(54) = 1
trigger2 = life < 200
trigger2 = statetype = S
trigger2 = ctrl = 1
trigger3 = Var(58) = 6
trigger3 = Var(57) = 1
trigger3 = statetype = S
trigger3 = ctrl = 1
trigger4 = Var(58) = 7
trigger4 = power >= 3000
trigger4 = statetype = S
trigger4 = ctrl = 1

;Special Z 2
[State -1]
type = ChangeState
value = 825
triggerall = command = "CrazyY" || command = "CrazyX"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = Var(58) = 10
trigger1 = power >= 1000
trigger2 = var(40) = 1

;Special Z 2
[State -1]
type = ChangeState
value = 855
triggerall = command = "Gigaton"
triggerall = command != "holddown"
triggerall = power >= 3000
triggerall = Var(35) != 1
trigger1 = Var(58) = 9
trigger1 = statetype = S
trigger1 = ctrl = 1

;Special Z 2
[State -1]
type = ChangeState
value = 855
triggerall = command = "QCBQCB_c"
triggerall = command != "holddown"
triggerall = power >= 3000
triggerall = Var(35) != 1
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;Special Z 2
[State -1]
type = ChangeState
value = 825
triggerall = command = "CrazyZ"
triggerall = command != "holddown"
triggerall = power >= 3000
triggerall = Var(35) != 1
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;-| Special Moves |------------------------------------------------------
;Headbutt
[State -1]
type = ChangeState
value = 1000
triggerall = Var(58) = 7 || Var(58) = 8
triggerall = command = "pp"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = Var(35) != 1
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State -1]
type = ChangeState
value = 1000
triggerall = Var(58) = 10
triggerall = command = "by"
triggerall = command = "holdfwd" || command = "holdback"
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1


[State -1]
type = ChangeState
value = 1000
triggerall = Var(58) = 9
triggerall = command = "z" || command = "y"
triggerall = Var(35) != 1
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = ctrl = 1
trigger1 = command = "holdfwd"
trigger1 = P2BodyDist X < 10

;Headbutt
[State -1]
type = ChangeState
value = 1004
triggerall = Var(35) != 1
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = p2statetype != A
triggerall = command = "z"
triggerall = P2BodyDist X >= -1
triggerall = Var(58) != 7 && var(58) != 9 && var(58) != 10
trigger1 = command = "holdfwd"
trigger1 = P2BodyDist X < 10
trigger2 = command = "holdback"
trigger2 = P2BodyDist X < 20

;Headbutt
[State -1]
type = ChangeState
value = 1004
triggerall = Var(35) != 1
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = p2statetype != A
triggerall = command = "x"
triggerall = command = "a"
triggerall = P2BodyDist X >= -1
triggerall = var(58) = 10
trigger1 = command = "holdfwd"
trigger1 = P2BodyDist X < 10
trigger2 = command = "holdback"
trigger2 = P2BodyDist X < 20

;Headbutt
[State -1]
type = ChangeState
value = 1006
triggerall = backedgebodydist > 20
triggerall = Var(35) != 1
triggerall = command != "holddown"
triggerall = ctrl = 1
triggerall = p2statetype != A
triggerall = command = "c"
triggerall= statetype = S
triggerall = P2BodyDist X >= -1
triggerall = Var(58) != 7 && var(58) != 9 && var(58) != 10
trigger1 = P2BodyDist X < 10
trigger1 = command = "holdfwd"
trigger2 = P2BodyDist X < 20
trigger2 = command = "holdback"

;Headbutt
[State -1]
type = ChangeState
value = 1007
triggerall = Var(58) = 7 || Var(58) = 8
triggerall = command = "pp"
triggerall = Var(35) != 1
trigger1 = statetype = A
trigger1 = ctrl = 1

;Turn Punch SNK
[State -1]
type = ChangeState
value = 1401
triggerall = Var(58) = 8
triggerall = statetype = A
trigger1 = ctrl = 1
trigger1 = command = "chargesnk"
trigger2 = movecontact
trigger2 = stateno = 640
trigger2 = prevstateno = 610
trigger2 = command = "c"

;Turn Punch FINAL!
[State -1]
type = ChangeState
value = 1200
triggerall = ctrl = 1
triggerall = command = "charge100"
triggerall = statetype = S
trigger1 = var(58) != 10
trigger2 = var(58) = 10
trigger2 = command != "z"

;Turn Punch 90
[State -1]
type = ChangeState
value = 1190
triggerall = ctrl = 1
triggerall = command = "charge90"
triggerall = command != "charge100"
triggerall = statetype = S
trigger1 = var(58) != 10
trigger2 = var(58) = 10
trigger2 = command != "z"

;Turn Punch 80
[State -1]
type = ChangeState
value = 1180
triggerall = ctrl = 1
triggerall = command = "charge80"
triggerall = command != "charge90"
triggerall = statetype = S
trigger1 = var(58) != 10
trigger2 = var(58) = 10
trigger2 = command != "z"

;Turn Punch 70
[State -1]
type = ChangeState
value = 1170
triggerall = ctrl = 1
triggerall = command = "charge70"
triggerall = command != "charge80"
triggerall = statetype = S
trigger1 = var(58) != 10
trigger2 = var(58) = 10
trigger2 = command != "z"

;Turn Punch 60
[State -1]
type = ChangeState
value = 1160
triggerall = ctrl = 1
triggerall = command = "charge60"
triggerall = command != "charge70"
triggerall = statetype = S
trigger1 = var(58) != 10
trigger2 = var(58) = 10
trigger2 = command != "z"

;Turn Punch 50
[State -1]
type = ChangeState
value = 1150
triggerall = ctrl = 1
triggerall = command = "charge50"
triggerall = command != "charge60"
triggerall = statetype = S
trigger1 = var(58) != 10
trigger2 = var(58) = 10
trigger2 = command != "z"

;Turn Punch 40
[State -1]
type = ChangeState
value = 1140
triggerall = ctrl = 1
triggerall = command = "charge40"
triggerall = command != "charge50"
triggerall = statetype = S
trigger1 = var(58) != 10
trigger2 = var(58) = 10
trigger2 = command != "z"

;Turn Punch 30
[State -1]
type = ChangeState
value = 1130
triggerall = ctrl = 1
triggerall = command = "charge30"
triggerall = command != "charge40"
triggerall = statetype = S
trigger1 = var(58) != 10
trigger2 = var(58) = 10
trigger2 = command != "z"

;Turn Punch 20
[State -1]
type = ChangeState
value = 1120
triggerall = ctrl = 1
triggerall = command = "charge20"
triggerall = command != "charge30"
triggerall = statetype = S
trigger1 = var(58) != 10
trigger2 = var(58) = 10
trigger2 = command != "z"

;Turn Punch 10
[State -1]
type = ChangeState
value = 1110
triggerall = ctrl = 1
triggerall = command = "charge10"
triggerall = command != "charge20"
triggerall = statetype = S
trigger1 = var(58) != 10
trigger2 = var(58) = 10
trigger2 = command != "z"

;Upwards Headbutt Weak
[State -1]
type = ChangeState
value = 1500
triggerAll = command = "chargedownup_x"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = statetype != A || stateno = 40


;Upwards Headbutt Medium
[State -1]
type = ChangeState
value = 1510
triggerall = command = "chargedownup_y"
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = statetype != A || stateno = 40


;Upwards Headbutt Hard
[State -1]
type = ChangeState
value = 1520
triggerall = Var(35) = 1
triggerall = stateno != 1500
triggerall = stateno != 1501
triggerall = stateno != 1510
triggerall = stateno != 1520
trigger1 = statetype != A || stateno = 40
trigger1 = command = "chargedownup_z"

;Upwards Headbutt Weak
[State -1]
type = ChangeState
value = 1500
triggerall = Var(35) != 1
trigger1 = statetype != A
trigger1 = ctrl = 1 || stateno = 40
triggerall = command = "chargedownup_x"
trigger2 = stateno = 815
trigger2 = var(58) = 1
trigger3 = stateno = 400 || stateno = 410 || stateno = 430

;Upwards Headbutt Medium
[State -1]
type = ChangeState
value = 1510
triggerall = Var(35) != 1
trigger1 = statetype != A
trigger1 = ctrl = 1 || stateno = 40
triggerall = var(58) != 10
triggerall = command = "chargedownup_y"
trigger2 = stateno = 815
trigger2 = var(58) = 1
trigger3 = stateno = 400 || stateno = 410 || stateno = 430

;Upwards Headbutt Hard
[State -1]
type = ChangeState
value = 1520
triggerall = Var(35) != 1
trigger1 = statetype != A
trigger1 = ctrl = 1 || stateno = 40
triggerall = var(58) != 10
triggerall = command = "chargedownup_z"
trigger2 = stateno = 815
trigger2 = var(58) = 1
trigger3 = stateno = 400 || stateno = 410 || stateno = 430 || stateno = 440

;Upwards Headbutt Hard
[State -1]
type = ChangeState
value = 1520
triggerall = Var(35) != 1
trigger1 = statetype != A
trigger1 = ctrl = 1 || stateno = 40
triggerall = var(58) = 10
triggerall = command = "chargedownup_y"

;Dash Punch Weak Trip
[State -1]
type = ChangeState
value = 705
trigger1 = statetype = S
trigger1 = ctrl = 1
triggerall = command = "chargebackfwd_x2"
trigger2 = stateno = 815
trigger2 = var(58) = 1

;Dash Punch Weak Trip
[State -1]
type = ChangeState
value = 735
trigger1 = statetype = S
trigger1 = ctrl = 1
triggerall = command = "chargebackfwd_a2"
trigger2 = stateno = 815
trigger2 = var(58) = 1

;Dash Punch Medium Trip
[State -1]
type = ChangeState
value = 715
triggerall = var(58) != 10
trigger1 = statetype = S
trigger1 = ctrl = 1
triggerall = command = "chargebackfwd_y2"
trigger2 = stateno = 815
trigger2 = var(58) = 1

;Dash Punch Medium Trip
[State -1]
type = ChangeState
value = 745
triggerall = var(58) != 10
trigger1 = statetype = S
trigger1 = ctrl = 1
triggerall = command = "chargebackfwd_b2"
trigger2 = stateno = 815
trigger2 = var(58) = 1


;Dash Punch Strong Trip
[State -1]
type = ChangeState
value = 725
triggerall = command = "chargebackfwd_z2"
triggerall = var(58) != 10
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 815
trigger2 = var(58) = 1

;Dash Punch Strong Trip
[State -1]
type = ChangeState
value = 725
triggerall = command = "chargebackfwd_y2"
triggerall = var(58) = 10
trigger1 = statetype = S
trigger1 = ctrl = 1

;Dash Punch Strong Trip
[State -1]
type = ChangeState
value = 755
triggerall = command = "chargebackfwd_c2"
triggerall = var(58) != 10
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 815
trigger2 = var(58) = 1

;Dash Punch Strong Trip
[State -1]
type = ChangeState
value = 755
triggerall = command = "chargebackfwd_b2"
triggerall = var(58) = 10
trigger1 = statetype = S
trigger1 = ctrl = 1

;Dash Punch Weak
[State -1]
type = ChangeState
value = 700
triggerall = var(58) != 8
triggerall = command != "holddown"
triggerall = command = "chargebackfwd_x"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 815
trigger2 = var(58) = 1

;Dash Punch Weak
[State -1]
type = ChangeState
value = 703
triggerall = var(58) = 10
triggerall = command = "chargedownup_b"
trigger1 = statetype != A
trigger1 = ctrl = 1 || stateno = 40

;Dash Punch Weak
[State -1]
type = ChangeState
value = 702
triggerall = var(58) = 10
triggerall = command = "chargedownup_a"
trigger1 = statetype != A
trigger1 = ctrl = 1 || stateno = 40

;Dash Punch Weak
[State -1]
type = ChangeState
value = 700
triggerall = var(58) = 8
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = command = "chargebackfwd_x"
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_x"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_x"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_x"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_x"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_x"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_x"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_x"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_x"
trigger10 = MoveContact
trigger10 = stateno = 241
trigger10 = command = "QCF_x"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_x"

;Dash Punch Medium
[State -1]
type = ChangeState
value = 710
triggerall = var(58) != 8
triggerall = var(58) != 10
triggerall = command != "holddown"
triggerall = command = "chargebackfwd_y"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 815
trigger2 = var(58) = 1

;Dash Punch Medium
[State -1]
type = ChangeState
value = 710
triggerall = var(58) = 8
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = command = "chargebackfwd_y"
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_y"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_y"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_y"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_y"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_y"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_y"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_y"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_y"
trigger10 = MoveContact 
trigger10 = stateno = 241
trigger10 = command = "QCF_y"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_y"

;Dash Punch Strong
[State -1]
type = ChangeState
value = 720
triggerall = var(58) != 8
triggerall = var(58) != 10
triggerall = command = "chargebackfwd_z"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = command != "holddown"
trigger2 = stateno = 815
trigger2 = var(58) = 1
trigger2 = command != "holddown"
trigger3 = stateno = 430

;Dash Punch Strong
[State -1]
type = ChangeState
value = 720
triggerall = var(58) != 8
triggerall = var(58) = 10
triggerall = command != "holddown"
triggerall = command = "chargebackfwd_y"
trigger1 = statetype = S
trigger1 = ctrl = 1

;Dash Punch Strong
[State -1]
type = ChangeState
value = 720
triggerall = var(58) = 8
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = command = "chargebackfwd_z"
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_z"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_z"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_z"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_z"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_z"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_z"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_z"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_z"
trigger10 = MoveContact
trigger10 = stateno = 241
trigger10 = command = "QCF_z"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_z"

;Dash Kick Weak
[State -1]
type = ChangeState
value = 730
triggerall = var(58) != 8
triggerall = command = "chargebackfwd_a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 815
trigger2 = var(58) = 1

;Dash Kick Weak
[State -1]
type = ChangeState
value = 730
triggerall = var(58) = 8
trigger1 = command = "chargebackfwd_a"
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_a"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_a"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_a"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_a"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_a"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_a"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_a"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_a"
trigger10 = MoveContact
trigger10 = stateno = 241
trigger10 = command = "QCF_a"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_a"

;Dash Kick Medium
[State -1]
type = ChangeState
value = 740
triggerall = var(58) != 8
triggerall = var(58) != 10
triggerall = command = "chargebackfwd_b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 815
trigger2 = var(58) = 1

;Dash Kick Medium
[State -1]
type = ChangeState
value = 740
triggerall = var(58) = 8
trigger1 = command = "chargebackfwd_b"
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_b"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_b"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_b"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_b"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_b"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_b"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_b"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_b"
trigger10 = MoveContact
trigger10 = stateno = 241
trigger10 = command = "QCF_b"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_b"

;Dash Kick Strong
[State -1]
type = ChangeState
value = 750
triggerall = var(58) != 8
triggerall = var(58) != 10
triggerall = command = "chargebackfwd_c"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = command != "holddown"
trigger2 = stateno = 815
trigger2 = var(58) = 1
trigger2 = command != "holddown"
trigger3 = stateno = 430

;Dash Kick Strong
[State -1]
type = ChangeState
value = 750
triggerall = var(58) != 8
triggerall = var(58) = 10
triggerall = command = "chargebackfwd_b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

;Dash Kick Strong
[State -1]
type = ChangeState
value = 750
triggerall = var(58) = 8
trigger1 = command = "chargebackfwd_c"
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger2 = command = "QCF_c"
trigger3 = MoveContact
trigger3 = stateno = 210
trigger3 = command = "QCF_c"
trigger4 = MoveContact
trigger4 = stateno = 230
trigger4 = command = "QCF_c"
trigger5 = MoveContact
trigger5 = stateno = 240
trigger5 = command = "QCF_c"
trigger6 = MoveContact
trigger6 = stateno = 400
trigger6 = command = "QCF_c"
trigger7 = MoveContact
trigger7 = stateno = 410
trigger7 = command = "QCF_c"
trigger8 = MoveContact
trigger8 = stateno = 430
trigger8 = command = "QCF_c"
trigger9 = MoveContact
trigger9 = stateno = 440
trigger9 = command = "QCF_c"
trigger10 = MoveContact
trigger10 = stateno = 241
trigger10 = command = "QCF_c"
trigger11 = MoveContact
trigger11 = stateno = 211
trigger11 = command = "QCF_c"

;===========================================================================
; Taunt 2
[State -1]
type = ChangeState
value = 162
triggerall = var(27) = 1
trigger1 = command = "cpu25"
trigger1 = var(46) != 1
trigger1 = power >= 100
trigger1 = ctrl = 1
trigger1 = statetype = S

; Taunt
[State -1]
type = Null
value = 160
trigger1 = command != "cpu24"
trigger1 = command = "s"
trigger1 = ctrl = 1
trigger1 = statetype = S

;---------------------------------------------------------------------------
;Run
[State -1]
type = ChangeState
value = 100
triggerall = Var(58) = 4 || Var(58) = 5 || Var(58) = 6 || Var(58) = 8 || Var(58) = 10
triggerall = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl = 1

;Run
[State -1]
type = ChangeState
value = 107
triggerall = Var(58) = 1 || Var(58) = 2 || Var(58) = 3 
triggerall = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Super Jump
[State -1]
type = ChangeState
value = 2100
triggerall = Var(20) < 5
triggerall = Var(21) = 0
triggerall = Var(26) = 0
triggerall = statetype != A
triggerall = Var(58) != 7
trigger1 = command = "downup"
trigger1 = ctrl = 1
trigger2 = stateno = 420
trigger2 = prevstateno = 410
trigger2 = movehit
trigger2 = command = "holdup"

;Jump back
[State -1]
type = ChangeState
value = 105
triggerall = command = "BB"
trigger1 = Var(58) != 7
trigger1 = var(58) != 9
triggerall = statetype = S
triggerall = ctrl = 1

;---------------------------------------------------------------------------
;Stand_X
[State -1]
type = ChangeState
value = 200
triggerall = command = "x"          ;Place name of command here
triggerall = command != "holddown"
triggerall = Var(58) != 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 230
trigger2 = prevstateno = 0
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = prevstateno = 200
trigger3 = var(11) < 3
trigger3 = movecontact
trigger4 = stateno = 200
trigger4 = var(11) < 3
trigger4 = movecontact


;Stand_X
[State -1]
type = ChangeState
value = 200
triggerall = command = "x"          ;Place name of command here
triggerall = command != "holddown"  ;Standing moves should have this line
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 400

;---------------------------------------------------------------------------
;Stand_Y
[State -1]
type = ChangeState
value = 211
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = var(58) != 10
triggerall = p2bodydist X <= 20
triggerall = Var(58) != 8
trigger1 = statetype = S
trigger1 = ctrl = 1

;Stand_Y
[State -1]
type = ChangeState
value = 211
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = p2bodydist X <= 20
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact 
trigger3 = stateno = 230
trigger4 = MoveContact
trigger4 = stateno = 400
trigger5 = MoveContact
trigger5 = stateno = 430

;Stand_Y
[State -1]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = var(58) != 10
triggerall = Var(58) != 8
trigger1 = statetype = S
trigger1 = ctrl = 1

;Stand_Y
[State -1]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 230
trigger4 = MoveContact
trigger4 = stateno = 400
trigger5 = MoveContact
trigger5 = stateno = 430

;---------------------------------------------------------------------------
;Stand_Z
[State -1]
type = ChangeState
value = 221
triggerall = command = "z"
triggerall = var(58) != 10
triggerall = command != "holddown"
triggerall = p2bodydist X <= 5
triggerall = Var(58) != 8
trigger1 = statetype = S
trigger1 = ctrl = 1

[State -1]
type = ChangeState
value = 221
triggerall = command = "y"
triggerall = var(58) = 10
triggerall = command != "holddown"
triggerall = p2bodydist X <= 5
trigger1 = statetype = S
trigger1 = ctrl = 1

;Stand_Z
[State -1]
type = ChangeState
value = 221
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = p2bodydist X <= 5
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;Stand_Z
[State -1]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = var(58) != 10
triggerall = Var(58) != 8
trigger1 = statetype = S
trigger1 = ctrl = 1

;Stand_Z
[State -1]
type = ChangeState
value = 220
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = var(58) = 10
trigger1 = statetype = S
trigger1 = ctrl = 1

;Stand_Z
[State -1]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;---------------------------------------------------------------------------
;Stand_A
[State -1]
type = ChangeState
value = 230
triggerall = command = "a"          ;Place name of command here
triggerall = command != "holddown"  ;Standing moves should have this line
triggerall = Var(58) != 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = prevstateno = 0
trigger2 = movecontact
trigger2 = prevstateno != 400
trigger3 = stateno = 200
trigger3 = prevstateno = 210
trigger3 = var(11) < 3
trigger3 = prevstateno != 400
trigger4 = movecontact
trigger4 = stateno = 230
trigger4 = prevstateno = 0
trigger4 = movecontact
trigger4 = prevstateno != 400
trigger5 = stateno = 400
trigger5 = movecontact

;Stand_A
[State -1]
type = ChangeState
value = 230
triggerall = command = "a"          ;Place name of command here
triggerall = command != "holddown"  ;Standing moves should have this line
triggerall = Var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 400
trigger4 = MoveContact
trigger4 = stateno = 430

;Guard Crush Forward
[State -1]
type = changestate
triggerall = command = "ax"
triggerall = command = "holdfwd"
triggerall = power >= 1000
triggerall = var(58) = 5
trigger1 = stateno = 150
trigger2 = stateno = 151
value = 128

;Guard Crush Back
[State -1]
type = changestate
triggerall = command = "ax"
triggerall = command = "holdback"
triggerall = power >= 1000
triggerall = var(58) = 5
trigger1 = stateno = 150
trigger2 = stateno = 151
value = 127

;No air guard
[State -1]
type = assertspecial
trigger1 = var(58) != 1 && var(58) != 7 && var(58) != 8
flag = noairguard

;Just Defend
[State -1]
type = Hitoverride
triggerall = statetype = S
triggerall = ctrl
triggerall = Var(58) = 6
trigger1 = command = "back"
attr = SCA, NA, SA, HA, NP, SP, HP
slot = 3
time = 2
stateno = 121

;Just Defend
[State -1]
type = Hitoverride
triggerall = statetype = C
triggerall = ctrl
triggerall = Var(58) = 6
trigger1 = command = "back"
attr = SCA, NA, SA, HA, NP, SP, HP
slot = 4
time = 2
stateno = 4605

;Just Defend
[State -1]
type = Hitoverride
triggerall = statetype = A
triggerall = ctrl
triggerall = Var(58) = 6
trigger1 = command = "back"
attr = SCA, NA, SA, HA, NP, SP, HP
slot = 5
time = 2
stateno = 4606

;Parry Stand
[State -1]
type = Hitoverride
triggerall = statetype = S
triggerall = ctrl
triggerall = Var(58) = 3
trigger1 = command = "forward"
attr = SA, NA, SA, HA, NP, SP, HP
slot = 0
time = 2
stateno = 122

;Parry Crouch
[State -1]
type = Hitoverride
triggerall = statetype = S
triggerall = ctrl
triggerall = Var(58) = 3
trigger1 = command = "down"
attr = C, NA, SA, HA, NP, SP, HP
slot = 1
time = 2
stateno = 123

;Parry Air
[State -1]
type = Hitoverride
triggerall = statetype = A
triggerall = ctrl
triggerall = Var(58) = 3
trigger1 = command = "forward"
attr = SCA, NA, SA, HA, NP, SP, HP
slot = 2
time = 2
stateno = 124

;Stand_A
[State -1]
type = Varset
triggerall = var(7) = 1
trigger1 = stateno != 130
trigger1 = stateno != 150
trigger1 = stateno != 120
v = 7
value = 0
;---------------------------------------------------------------------------
;Stand_B
[State -1]
type = ChangeState
value = 241
triggerall = command = "b"          ;Place name of command here
triggerall = command != "holddown"  ;Standing moves should have this line
triggerall = var(58) != 10
triggerall = p2bodydist X <= 5
triggerall = var(58) != 8
trigger1 = statetype = S
trigger1 = ctrl = 1

;Stand_B
[State -1]
type = ChangeState
value = 241
triggerall = command = "b"          ;Place name of command here
triggerall = command != "holddown"  ;Standing moves should have this line
triggerall = p2bodydist X <= 5
triggerall = var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 400
trigger6 = MoveContact
trigger6 = stateno = 410
trigger7 = MoveContact
trigger7 = stateno = 430

;Stand_B
[State -1]
type = ChangeState
value = 240
triggerall = command = "b"          ;Place name of command here
triggerall = command != "holddown"  ;Standing moves should have this line
triggerall = var(58) != 10
triggerall = var(58) != 8
trigger1 = statetype = S
trigger1 = ctrl = 1

;Stand_B
[State -1]
type = ChangeState
value = 240
triggerall = command = "b"          ;Place name of command here
triggerall = command != "holddown"  ;Standing moves should have this line
triggerall = var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 400
trigger6 = MoveContact
trigger6 = stateno = 410
trigger7 = MoveContact
trigger7 = stateno = 430


;---------------------------------------------------------------------------
;Stand_C
[State -1]
type = ChangeState
value = 251
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = p2bodydist X <= 5
triggerall = var(58) != 10
triggerall = var(58) != 8
trigger1 = statetype = S
trigger1 = ctrl = 1

[State -1]
type = ChangeState
value = 251
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = p2bodydist X <= 5
triggerall = var(58) = 10
trigger1 = statetype = S
trigger1 = ctrl = 1

;Stand_C
[State -1]
type = ChangeState
value = 251
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = p2bodydist X <= 5
triggerall = var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;Stand_C
[State -1]
type = ChangeState
value = 250
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = var(58) != 10
triggerall = var(58) != 8
trigger1 = statetype = S
trigger1 = ctrl = 1

;Stand_C
[State -1]
type = ChangeState
value = 250
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = var(58) = 10
trigger1 = statetype = S
trigger1 = ctrl = 1

;Stand_C
[State -1]
type = ChangeState
value = 250
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = var(58) = 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;---------------------------------------------------------------------------
;Crouch_X
[State -1]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = var(58) != 8
trigger1 = statetype = C
trigger1 = ctrl = 1

;Crouch_X
[State -1]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = var(58) = 8
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 400
trigger2 = time >= 5
trigger3 = MoveContact
trigger3 = stateno = 200

;---------------------------------------------------------------------------
;Crouch_Y
[State -1]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = var(58) != 10
triggerall = var(58) != 8
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 230
trigger2 = var(11) < 3
trigger3 = stateno = 52 || stateno = 47
trigger3 = prevstateno = 650

;Crouch_Y
[State -1]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = var(58) = 8
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 230
trigger4 = MoveContact
trigger4 = stateno = 400
trigger5 = MoveContact
trigger5 = stateno = 430

;---------------------------------------------------------------------------
;Crouch_Z
[State -1]
type = ChangeState
value = 420
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = var(58) != 8
triggerall = var(58) != 10
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 230
trigger2 = var(11) < 3

;Crouch_Z
[State -1]
type = ChangeState
value = 420
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = var(58) = 10
trigger1 = statetype = C
trigger1 = ctrl = 1

;Crouch_Z
[State -1]
type = ChangeState
value = 420
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = var(58) = 8
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;---------------------------------------------------------------------------
;Crouch_A
[State -1]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = var(58) != 8
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 400
trigger2 = movecontact
trigger3 = stateno = 52 || stateno = 47
trigger3 = prevstateno = 650

;Crouch_A
[State -1]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = var(58) = 8
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 430
trigger2 = time >= 7
trigger3 = MoveContact
trigger3 = stateno = 400
trigger4 = MoveContact = 1
trigger4 = stateno = 200
trigger5 = MoveContact = 1
trigger5 = stateno = 230

;---------------------------------------------------------------------------
;Crouch_B
[State -1]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = var(58) != 8
triggerall = var(58) != 10
trigger1 = statetype = C
trigger1 = ctrl = 1

;Crouch_B
[State -1]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = var(58) = 8
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 400
trigger6 = MoveContact
trigger6 = stateno = 410
trigger7 = MoveContact
trigger7 = stateno = 430

;---------------------------------------------------------------------------
;Crouch_C
[State -1]
type = ChangeState
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = var(58) != 8
triggerall = var(58) != 10
trigger1 = statetype = C
trigger1 = ctrl = 1

;Crouch_C
[State -1]
type = ChangeState
value = 450
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = var(58) = 10
trigger1 = statetype = C
trigger1 = ctrl = 1


;Crouch_C
[State -1]
type = ChangeState
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = var(58) = 8
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = MoveContact
trigger2 = stateno = 200
trigger3 = MoveContact
trigger3 = stateno = 210
trigger4 = MoveContact
trigger4 = stateno = 230
trigger5 = MoveContact
trigger5 = stateno = 240
trigger6 = MoveContact
trigger6 = stateno = 400
trigger7 = MoveContact
trigger7 = stateno = 410
trigger8 = MoveContact
trigger8 = stateno = 430
trigger9 = MoveContact
trigger9 = stateno = 440
trigger10 = MoveContact
trigger10 = stateno = 241
trigger11 = MoveContact
trigger11 = stateno = 211

;---------------------------------------------------------------------------
;Jump_X
[State -1]
type = ChangeState
value = 600
trigger1 = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Jump_Y
[State -1]
type = ChangeState
value = 610
triggerall = command = "y"
triggerall = var(58) != 10
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = var(58) = 8
trigger2 = movecontact
trigger2 = stateno = 600

;---------------------------------------------------------------------------
;Jump_Z
[State -1]
type = ChangeState
value = 620
triggerall = command = "z"
triggerall = var(58) != 10
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = var(58) = 8
trigger2 = movecontact
trigger2 = stateno = 610

;Jump_Z
[State -1]
type = ChangeState
value = 620
triggerall = command = "y"
triggerall = var(58) = 10
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Jump_A
[State -1]
type = ChangeState
value = 630
trigger1 = command = "a"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Jump_B
[State -1]
type = ChangeState
value = 640
triggerall = command = "b"
triggerall = var(58) != 10
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = var(58) = 8
trigger2 = movecontact
trigger2 = stateno = 630
trigger3 = var(58) = 8
trigger3 = movecontact
trigger3 = stateno = 610
trigger3 = prevstateno = 600

;---------------------------------------------------------------------------
;Jump_C
[State -1]
type = ChangeState
value = 650
triggerall = command = "c"
triggerall = var(58) != 10
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = var(58) = 8
trigger2 = movecontact
trigger2 = stateno = 640

;Jump_C
[State -1]
type = ChangeState
value = 650
triggerall = command = "b"
triggerall = var(58) = 10
trigger1 = statetype = A
trigger1 = ctrl = 1

;--------------------------------------------------------------------------
;EXTRAS

[State -3, Vel]
type = varset
trigger1 = stateno = 50
v = 6
value = anim

[State -3, No Glitch]
trigger1 = 1
type = NotHitBy
value = SCA
time = 0

[State -3, No Music]
type = assertspecial
trigger1 = NumExplod(8500) >= 1
flag = nomusic

[State -3, Display Guard Points]
type = displaytoclipboard
trigger1 = 1
trigger1 = var(58) = 1
text = "P2BodyDist X = %f P2BodyDist Y = %f                              AI = %d Var11 = %d Groove = C"
params = P2BodyDist X, P2BodyDist Y, var(30), var(11)

[State -3, Display Guard Points]
type = displaytoclipboard
trigger1 = 1
trigger1 = var(58) = 2
text = "P2BodyDist X = %f P2BodyDist Y = %f                              AI = %d Var49 = %d Groove = A"
params = P2BodyDist X, P2BodyDist Y, var(30), var(49)

[State -3, Display Guard Points]
type = displaytoclipboard
trigger1 = 1
trigger1 = var(58) = 3
text = "P2BodyDist X = %f P2BodyDist Y = %f                              AI = %d Var49 = %d Groove = P"
params = P2BodyDist X, P2BodyDist Y, var(30), var(49)

[State -3, Display Guard Points]
type = displaytoclipboard
trigger1 = 1
trigger1 = var(58) = 4
text = "P2BodyDist X = %f P2BodyDist Y = %f                              AI = %d Var49 = %d Groove = S"
params = P2BodyDist X, P2BodyDist Y, var(30), var(49)

[State -3, Display Guard Points]
type = displaytoclipboard
trigger1 = 1
trigger1 = var(58) = 5
text = "P2BodyDist X = %f P2BodyDist Y = %f                              AI = %d Var49 = %d Groove = N"
params = P2BodyDist X, P2BodyDist Y, var(30), var(49)

[State -3, Display Guard Points]
type = displaytoclipboard
trigger1 = 1
trigger1 = var(58) = 6
text = "P2BodyDist X = %f P2BodyDist Y = %f                              AI = %d Var49 = %d Groove = K"
params = P2BodyDist X, P2BodyDist Y, var(30), var(49)

[State -3, Display Guard Points]
type = displaytoclipboard
trigger1 = 1
trigger1 = var(58) = 7
text = "P2BodyDist X = %f P2BodyDist Y = %f                              AI = %d Var49 = %d Groove = SFA3"
params = P2BodyDist X, P2BodyDist Y, var(30), var(49)

[State -3, Display Guard Points]
type = displaytoclipboard
trigger1 = 1
trigger1 = var(58) = 8
text = "P2BodyDist X = %f P2BodyDist Y = %f                              AI = %d Var49 = %d Groove = Cad"
params = P2BodyDist X, P2BodyDist Y, var(30), var(49)

[State -3, Display Guard Points]
type = displaytoclipboard
trigger1 = 1
trigger1 = var(58) = 9
text = "P2BodyDist X = %f P2BodyDist Y = %f                              AI = %d Var49 = %d Groove = SF2"
params = P2BodyDist X, P2BodyDist Y, var(30), var(49)

[State -3, Display Guard Points]
type = displaytoclipboard
trigger1 = 1
trigger1 = var(58) = 10
text = "P2BodyDist X = %f P2BodyDist Y = %f                              AI = %d Var49 = %d Groove = SvC"
params = P2BodyDist X, P2BodyDist Y, var(30), var(49)

; Taunt
[State -1]
type = Varset
trigger1 = var(20) = 5
value = 1
v = 21

; Taunt
[State -1]
type = Varset
trigger1 = var(20) = 0
value = 0
v = 21

; Taunt
[State -1]
type = Varadd
trigger1 = (GameTime%150)=0
trigger1 = var(20) > 0
value = -1
v = 20

; Taunt
[State -1]
type = Varset
trigger1 = stateno = 11
trigger1 = time >= 10
trigger1 = var(26) = 0
value = 1
v = 26

; Taunt
[State -1]
type = Varset
trigger1 = stateno != 11
trigger1 = stateno != 12
trigger1 = var(26) = 1
value = 0
v = 26

[State -3, Special intro]
type = Stopsnd
trigger1 = prevstateno = 162
channel = 0

[State -3, Special intro]
type = ChangeState
value = 5050
triggerall = stateno = 0
trigger1 = alive = 0
trigger2 = life = 0

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(851) > 0
trigger1 = stateno != 850
trigger2 = movetype = H
trigger3 = stateno = 910
id = 851

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(7020) = 1
trigger1 = stateno != 850
trigger2 = movetype = H
trigger3 = stateno = 910
id = 7020

[State 192, Remove Balrog 2]
type = nothitby
trigger1 = stateno = 850
trigger1 = time > 53
value = SCA

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9501) = 1
trigger1 = stateno != 2913
id = 9501

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9502) = 1
trigger1 = stateno != 2913
id = 9502

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9512) = 1
trigger1 = stateno != 2913
id = 9512

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9503) = 1
trigger1 = stateno != 2913
id = 9503

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9513) = 1
trigger1 = stateno != 2913
id = 9513

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9504) = 1
trigger1 = stateno != 2913
id = 9504

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9514) = 1
trigger1 = stateno != 2913
id = 9514

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9505) = 1
trigger1 = stateno != 2913
id = 9505

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9515) = 1
trigger1 = stateno != 2913
id = 9515

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9506) = 1
trigger1 = stateno != 2913
id = 9506

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9516) = 1
trigger1 = stateno != 2913
id = 9516

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9507) = 1
trigger1 = stateno != 2913
id = 9507

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9517) = 1
trigger1 = stateno != 2913
id = 9517

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9508) = 1
trigger1 = stateno != 2913
id = 9508

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9518) = 1
trigger1 = stateno != 2913
id = 9518

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9509) = 1
trigger1 = stateno != 2913
id = 9509

[State 192, Remove Balrog 2]
type = removeExplod
triggerall = NumExplod(9519) = 1
trigger1 = stateno != 2913
id = 9519

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(9519) = 1
trigger1 = stateno != 2913
id = 9500

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4123) = 1
trigger1 = var(55) = 0
id = 4123

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4124) = 1
trigger1 = var(55) = 0
id = 4124

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4125) = 1
trigger1 = var(55) = 0
id = 4125

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4126) = 1
trigger1 = var(55) = 0
id = 4126

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4127) = 1
trigger1 = var(55) = 0
id = 4127

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4128) = 1
trigger1 = var(55) = 0
id = 4128

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4129) = 1
trigger1 = var(55) = 0
id = 4129

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4130) = 1
trigger1 = var(55) = 0
id = 4130

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4131) = 1
trigger1 = var(55) = 0
id = 4131

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4132) = 1
trigger1 = var(55) = 0
id = 4132

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4133) = 1
trigger1 = var(55) = 0
id = 4133

[State -3, Super effect]
type = poweradd
triggerall = var(58) = 6
trigger1 = movetype = H
trigger1 = time = 0
trigger1 = stateno = 5000 || stateno = 5010 || stateno = 5020
trigger1 = var(57) = 0
trigger1 = gethitvar(damage) != 0
trigger1 = gethitvar(damage) <= 50
value = 50

[State -3, Super effect]
type = poweradd
triggerall = var(58) = 6
trigger1 = movetype = H
trigger1 = time = 0
trigger1 = stateno = 5000 || stateno = 5010 || stateno = 5020
trigger1 = var(57) = 0
trigger1 = gethitvar(damage) > 50
trigger1 = gethitvar(damage) <= 100
value = 100

[State -3, Super effect]
type = poweradd
triggerall = var(58) = 6
trigger1 = time = 0
trigger1 = var(57) = 0
trigger1 = stateno = 5000 || stateno = 5010 || stateno = 5020
trigger1 = movetype = H
trigger1 = gethitvar(damage) > 100 || gethitvar(damage) <= 200
value = 200

[State -3, Super effect]
type = poweradd
triggerall = var(58) = 6
trigger1 = stateno = 5000 || stateno = 5010 || stateno = 5020
trigger1 = movetype = H
trigger1 = time = 0
trigger1 = var(57) = 0
trigger1 = gethitvar(damage) > 200
value = 250

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4500) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4500

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4501) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4501

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4502) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4502

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4503) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4503

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4504) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4504

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4505) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4505

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4506) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4506

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4507) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4507

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4508) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4508

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4509) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4509

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4510) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4510

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4511) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4511

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4512) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4512

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4513) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4513

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4514) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4514

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4515) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4515

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4516) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4516

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4517) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4517

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4518) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4518

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4519) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4519

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4520) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4520

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4521) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4521

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4522) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4522

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4523) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4523

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4524) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4524

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4525) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4525

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4526) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4526

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4527) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4527

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4528) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4528

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4529) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4529

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4530) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4530

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4531) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4531

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4532) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4532

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4533) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4533

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4534) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4534

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4535) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4535

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4536) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4536

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4537) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4537

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4538) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4538

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4539) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4539

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4540) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4540

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4541) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4541

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4542) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4542

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4543) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4543

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4544) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4544

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4545) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4545

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4546) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4546

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4547) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4547

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4548) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4548

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4549) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4549

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4550) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4550

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4551) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4551

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4552) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4552

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4553) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4553

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4554) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4554

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4555) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4555

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4556) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4556

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4557) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4557

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4558) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4558

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4559) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4559

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4560) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4560

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4561) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4561

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4562) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4562

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4563) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4563

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4564) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4564

[State -3, Super effect]
type = RemoveExplod
triggerall = NumExplod(4565) = 1
trigger1 = var(58) != 7
trigger2 = stateno != 2193
id = 4565

[State -3, Super effect]
type = RemoveExplod
trigger1 = numexplod(1924) != 0
trigger1 = stateno != 2195
id = 1924

[State -3, Super effect]
type = RemoveExplod
trigger1 = numexplod(1925) != 0
trigger1 = stateno != 2193
id = 1925

[State -1]
type = Varset
triggerall = var(58) = 10
trigger1 = power = 3000
value = 1
v = 40

[State -1]
type = Varset
triggerall = var(58) = 10
trigger1 = var(40) = 1
value = 1
v = 39

[State -1]
type = Varset
triggerall = var(58) = 10
trigger1 = power = 0
trigger1 = var(40) = 1
value = 0
v = 40

[State -1]
type = poweradd
triggerall = var(58) = 10
trigger1 = var(39) = 1
trigger1 = var(40) = 0
trigger1 = power = 0
value = 2000

[State -1]
type = Varset
triggerall = var(58) = 10
trigger1 = var(39) = 1
trigger1 = var(40) = 0
trigger1 = power = 2000
v = 39
value = 0

[State -1]
type = poweradd
triggerall = var(58) = 10
trigger1 = var(40) = 1
value = -6

[State -1]
type = Varset
triggerall = var(58) = 10
trigger1 = life < 501
value = 1
v = 44

[State -1]
type = Varset
trigger1 = var(11) > 0
trigger1 = stateno != 200 && stateno != 230
v = 11
value = 0