;-| Super Motions |--------------------------------------------------------
[Command]
name = "supersomer_a"
command = ~30DB, $F, $U, a ;~30DB, DF, DB, $U, a
time = 25

[Command]
name = "supersomer_b"
command = ~30DB, $F, $U, b ;~30DB, DF, DB, $U, b
time = 25

[Command]
name = "supersomer_c"
command = ~30DB, $F, $U, c ;~30DB, DF, DB, $U, c
time = 25

[Command]
name = "supersomer_a"
command = ~30DB, $F, $U, ~a ;~30DB, DF, DB, $U, a
time = 25

[Command]
name = "supersomer_b"
command = ~30DB, $F, $U, ~b ;~30DB, DF, DB, $U, b
time = 25

[Command]
name = "supersomer_c"
command = ~30DB, $F, $U, ~c ;~30DB, DF, DB, $U, c
time = 25

[Command]
name = "sonicmission"
command = ~30$B, F, a+b
time = 15
[Command]
name = "sonicmission"
command = ~30$B, F, b+c
time = 15
[Command]
name = "sonicmission"
command = ~30$B, F, a+c
time = 15

[Command]
name = "sonicbreak"
command = ~30$B, F, B, F, x
time = 25
[Command]
name = "sonicbreak"
command = ~30$B, F, B, F, y
time = 25
[Command]
name = "sonichurricane"
command = ~30$B, F, B, F, z
time = 25
[Command]
name = "sonicbreak"
command = ~30$B, F, B, F, ~x
time = 25
[Command]
name = "sonicbreak"
command = ~30$B, F, B, F, ~y
time = 25
[Command]
name = "sonichurricane"
command = ~30$B, F, B, F, ~z
time = 25

[Command]
name = "sonicdoom"
command = ~30$B, F, B, F, s
time = 25
[Command]
name = "sonicdoom"
command = ~30$B, F, B, F, ~s
time = 25

[Command]
name = "sonickrush"
command = ~B, DB, D, DF, F, x+y
time = 25
[Command]
name = "sonickrush"
command = ~B, DB, D, DF, F, x+z
time = 25
[Command]
name = "sonickrush"
command = ~B, DB, D, DF, F, y+z
time = 25

[Command]
name = "crossfire"
command = ~B, DB, D, DF, F, a+b
time = 25
[Command]
name = "crossfire"
command = ~B, DB, D, DF, F, b+c
time = 25
[Command]
name = "crossfire"
command = ~B, DB, D, DF, F, a+b
time = 25

[Command]
name = "lesson"
command = ~30DB, $F, $U, x ;~30DB, DF, DB, $U, x
time = 10
[Command]
name = "lesson"
command = ~30DB, $F, $U, y ;~30DB, DF, DB, $U, y
time = 10
[Command]
name = "lesson"
command = ~30DB, $F, $U, z ;~30DB, DF, DB, $U, z
time = 10
[Command]
name = "lesson"
command = ~30DB, $F, $U, ~x ;~30DB, DF, DB, $U, x
time = 10
[Command]
name = "lesson"
command = ~30DB, $F, $U, ~y ;~30DB, DF, DB, $U, y
time = 10
[Command]
name = "lesson"
command = ~30DB, $F, $U, ~z ;~30DB, DF, DB, $U, z
time = 10

[Command]
name = "zaworld"
command = F, z, x, F, s
time = 40
[Command]
name = "zaworld"
command = F, z, x, F, ~s
time = 40

[Command]
name = "sonicfist"
command = ~30$B, F, x+y
time = 10
[Command]
name = "sonicfist"
command = ~30$B, F, y+z
time = 10
[Command]
name = "sonicfist"
command = ~30$B, F, x+z
time = 10

;-| Special Motions |------------------------------------------------------
[Command]
name = "somer_a"
command = ~45$D, U, a
time = 10

[Command]
name = "somer_b"
command = ~45$D, U, b
time = 10

[Command]
name = "somer_c"
command = ~45$D, U, c
time = 10

[Command]
name = "somer_a"
command = ~45$D, U, ~a
time = 10

[Command]
name = "somer_b"
command = ~45$D, U, ~b
time = 10

[Command]
name = "somer_c"
command = ~45$D, U, ~c
time = 10

[Command]
name = "downersault_a"
command = ~15$U, D, a
time = 10
[Command]
name = "downersault_b"
command = ~15$U, D, b
time = 10
[Command]
name = "downersault_c"
command = ~15$U, D, c
time = 10
[Command]
name = "downersault_a"
command = ~15$U, D, ~a
time = 10
[Command]
name = "downersault_b"
command = ~15$U, D, ~b
time = 10
[Command]
name = "downersault_c"
command = ~15$U, D, ~c
time = 10

;[Command]
;name = "tatsumaki_a"
;command = ~D, DB, B, a
[Command]
name = "tatsumaki_b"
command = ~D, DB, B, b
[Command]
name = "tatsumaki_c"
command = ~D, DB, B, c
[Command]
name = "tatsumaki_x"
command = ~D, DB, B, x
[Command]
name = "tatsumaki_y"
command = ~D, DB, B, y
[Command]
name = "tatsumaki_z"
command = ~D, DB, B, z
[Command]
name = "tatsumaki_b"
command = ~D, DB, B, ~b
[Command]
name = "tatsumaki_c"
command = ~D, DB, B, ~c
[Command]
name = "tatsumaki_x"
command = ~D, DB, B, ~x
[Command]
name = "tatsumaki_y"
command = ~D, DB, B, ~y
[Command]
name = "tatsumaki_z"
command = ~D, DB, B, ~z

[Command]
name = "sonicboom_x"
command = ~30$B, F, x
time = 10
[Command]
name = "sonicboom_y"
command = ~30$B, F, y
time = 10
[Command]
name = "sonicboom_z"
command = ~30$B, F, z
time = 10
[Command]
name = "sonicboom_s"
command = ~30$B, F, s
time = 10
[Command]
name = "sonicboom_x"
command = ~30$B, F, ~x
time = 10
[Command]
name = "sonicboom_y"
command = ~30$B, F, ~y
time = 10
[Command]
name = "sonicboom_z"
command = ~30$B, F, ~z
time = 10
[Command]
name = "sonicboom_s"
command = ~30$B, F, ~s
time = 10

[Command]
name = "sonicboom_a"
command = ~30$B, F, a
time = 10
[Command]
name = "sonicboom_b"
command = ~30$B, F, b
time = 10
[Command]
name = "sonicboom_c"
command = ~30$B, F, c
time = 10
[Command]
name = "sonicboom_a"
command = ~30$B, F, ~a
time = 10
[Command]
name = "sonicboom_b"
command = ~30$B, F, ~b
time = 10
[Command]
name = "sonicboom_c"
command = ~30$B, F, ~c
time = 10

[Command]
name = "dunk"
command = ~D,B,y ;~F, D, B, F, y
time = 15

[Command]
name = "heavendrop"
command = ~D,B,z ;~F, D, B, F, z
time = 15
[Command]
name = "dunk"
command = ~D,B,~y ;~F, D, B, F, y
time = 15

[Command]
name = "heavendrop"
command = ~D,B,~z ;~F, D, B, F, z
time = 15

[Command]
name = "BFB"
command = B, F, B
time = 10

[Command]
name = "FBF"
command = F, B, F
time = 10

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

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

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery" ;Required (do not remove)
command = x+y
time = 1
[Command]
name = "recovery" ;Extra recovery commands (optional)
command = y+z
time = 1
[Command]
name = "recovery" ;Extra recovery commands (optional)
command = x+z
time = 1

[Command]
name = "ab"
command = a+b
time = 1

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

;[Command]
;name = "abc"
;command = a+b+c
;time = 1

;-| Dir + Button |---------------------------------------------------------
;[Command]
;name = "fwd_a"
;command = /F,a
;time = 1
;[Command]
;name = "fwd_b"
;command = /F,b
;time = 1
;[Command]
;name = "fwd_c"
;command = /F,c
;time = 1
;[Command]
;name = "fwd_x"
;command = /F,x
;time = 1
;[Command]
;name = "fwd_y"
;command = /F,y
;time = 1
;[Command]
;name = "fwd_z"
;command = /F,z
;time = 1

;[Command]
;name = "back_a"
;command = /B,a
;time = 1
;[Command]
;name = "back_b"
;command = /B,b
;time = 1
;[Command]
;name = "back_c"
;command = /B,c
;time = 1
;[Command]
;name = "back_x"
;command = /B,x
;time = 1
;[Command]
;name = "back_y"
;command = /B,y
;time = 1
;[Command]
;name = "back_z"
;command = /B,z
;time = 1

[Command]
name = "fwd_ab"
command = /F, a+b
time = 1
[Command]
name = "fwd_bc"
command = /F, b+c
time = 1

[Command]
name = "fwd_xy"
command = /F, x+y
time = 1
[Command]
name = "fwd_yz"
command = /F, y+z
time = 1

[Command]
name = "back_xy"
command = /B, x+y
time = 1
[Command]
name = "back_yz"
command = /B, y+z
time = 1

[Command]
name = "back_ab"
command = /B, a+b
time = 1
[Command]
name = "back_bc"
command = /B, b+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

;-| Hold Button |-----------------------------------------------------------
[Command]
name = "hold_x"
command = /x
time = 1

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

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

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

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

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

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

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

[Command]
name = "holdback"
command = /$B
time = 1

[Command]
name = "holdup"
command = /$U
time = 1

[Command]
name = "holddown"
command = /$D
time = 1


;---------------------------------------------------------------------------
; Commands
[Statedef -1]
;===========================================================================

;---------------------------------------------------------------------------
;AirDemon
[State -1, Airdemon]
type = ChangeState
value = 1600
triggerall = command = "sonicfist"
triggerall = power >= 3000 ;Level 3
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crossfire Assault
[State -1, Crossfire Assault]
type = ChangeState
value = 2000
triggerall = command = "crossfire"
triggerall = power >= 1000 ;Level 1
trigger1 = stateno != 105 ;Can't do from hop back
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = statetype = A
trigger2 = hitdefattr = A, NA, SA
trigger2 = movecontact

;---------------------------------------------------------------------------
;Lesson of Friendship
[State -1, Lesson]
type = ChangeState
value = 2100
triggerall = command = "lesson"
triggerall = power >= 3000 ;Level 3
trigger1 = (statetype = S && ctrl) || (stateno = 40)
trigger2 = stateno = 40      ;Jumpstart
trigger3 = statetype != A
trigger3 = hitdefattr = SC, NA, SA
trigger3 = movecontact

;---------------------------------------------------------------------------
;SonicKrush
[State -1, Sonic Krush]
type = ChangeState
value = 1800
triggerall = command = "sonickrush"
triggerall = power >= 2000 ;Level 2
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = S
trigger2 = hitdefattr = S, NA, SA
trigger2 = movecontact

;---------------------------------------------------------------------------
;Za World!!!
[State -1, Za World]
type = ChangeState
value = 1900
triggerall = command = "zaworld"
triggerall = power >= 1000 ;Level 1
triggerall = !var(12)
trigger1 = statetype = S
trigger1 = ctrl || stateno = 250 || stateno = 230 || stateno = 355

;---------------------------------------------------------------------------
;Somersault Strike
[State -1, Somersault Strike]
type = ChangeState
value = 1510
triggerall = power >= 1000 ;Level 1
triggerall = (statetype = S && ctrl) || (stateno = 40) || (statetype = S && (hitdefattr = S, NA, SA) && movecontact)
trigger1 = command = "supersomer_a"
trigger2 = command = "supersomer_b"
trigger3 = command = "supersomer_c"

;---------------------------------------------------------------------------
;SonicMission
[State -1, Sonic Mission]
type = ChangeState
value = 1530
triggerall = command = "sonicmission"
triggerall = power >= 3000 ;Level 3
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;SonicBreak
[State -1, Sonic Break]
type = ChangeState
value = 1700
triggerall = command = "sonicbreak"
triggerall = power >= 1000 ;Level 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = S
trigger2 = hitdefattr = S, NA, SA
trigger2 = movecontact

;SonicBreak (combo from sonic boom)
[State -1, Sonic Break2]
type = ChangeState
value = 1700
triggerall = command = "sonicbreak"
triggerall = power >= 1000 ;Level 1
triggerall = projcontact1000 = 1, < 12
trigger1 = stateno = 1000
trigger2 = stateno = 1010
trigger3 = stateno = 1020

;---------------------------------------------------------------------------
;SonicHurricane
[State -1, Sonic Hurricane]
type = ChangeState
value = 1730
triggerall = command = "sonichurricane"
triggerall = power >= 1000 ;Level 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = S
trigger2 = hitdefattr = S, NA, SA
trigger2 = movecontact
trigger3 = projcontact1000 = 1, < 12 ;Combo from Sonic Boom
trigger3 = stateno = [1000, 1022]

;---------------------------------------------------------------------------
;SonicDoom
[State -1, Sonic Doom]
type = ChangeState
value = 1780
triggerall = command = "sonicdoom"
triggerall = power >= 1000 ;Level 1
triggerall = numhelper(1790) = 0
triggerall = statetype = S
trigger1 = ctrl
trigger2 = hitdefattr = S, NA, SA
trigger2 = movecontact
trigger3 = projcontact1000 = 1, < 12 ;Combo from Sonic Boom
trigger3 = stateno = [1000, 1022]

;---------------------------------------------------------------------------
;SonicFist
[State -1, Sonic Fist]
type = ChangeState
value = 1520
triggerall = command = "sonicfist"
triggerall = power >= 1000 ;Level 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = S
trigger2 = hitdefattr = S, NA, SA
trigger2 = movecontact

;===========================================================================
;---------------------------------------------------------------------------
;Downersault_A
[State -1, Downersault A]
type = ChangeState
value = 1070
triggerall = command = "downersault_a"
triggerall = pos Y < -30
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1031  ;-=-= Somersault_A
trigger2 = movehit
trigger3 = stateno = 1041  ;-=-= Somersault_B
trigger3 = movehit
trigger4 = stateno = 1051  ;-=-= Somersault_C
trigger4 = movehit

;---------------------------------------------------------------------------
;Downersault_B
[State -1, Downersault B]
type = ChangeState
value = 1080
triggerall = command = "downersault_b"
triggerall = pos Y < -30
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1031  ;-=-= Somersault_A
trigger2 = movehit
trigger3 = stateno = 1041  ;-=-= Somersault_B
trigger3 = movehit
trigger4 = stateno = 1051  ;-=-= Somersault_C
trigger4 = movehit

;---------------------------------------------------------------------------
;Downersault_C
[State -1, Downersault C]
type = ChangeState
value = 1090
triggerall = command = "downersault_c"
triggerall = pos Y < -30
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1031  ;-=-= Somersault_A
trigger2 = movehit
trigger3 = stateno = 1041  ;-=-= Somersault_B
trigger3 = movehit
trigger4 = stateno = 1051  ;-=-= Somersault_C
trigger4 = movehit

;---------------------------------------------------------------------------
;Somersault_A
[State -1, Somersault A]
type = ChangeState
value = 1030
triggerall = command = "somer_a"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 40      ;Jumpstart
trigger3 = stateno = 400     ;crouch_a
trigger4 = stateno = 430     ;crouch_x
trigger4 = movecontact
trigger5 = stateno = 440     ;crouch_y
trigger5 = movecontact
trigger6 = stateno = 450     ;crouch_z
trigger6 = movecontact
trigger7 = stateno = 200     ;stand_a
trigger7 = movecontact
trigger8 = stateno = 230     ;stand_x
trigger8 = movecontact
trigger9 = stateno = 245     ;close_stand_y
trigger9 = movecontact

;---------------------------------------------------------------------------
;Somersault_B
[State -1, Somersault B]
type = ChangeState
value = 1040
triggerall = command = "somer_b"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 40      ;Jumpstart
trigger3 = stateno = 400     ;crouch_a
trigger4 = stateno = 430     ;crouch_x
trigger4 = movecontact
trigger5 = stateno = 440     ;crouch_y
trigger5 = movecontact
trigger6 = stateno = 450     ;crouch_z
trigger6 = movecontact
trigger7 = stateno = 200     ;stand_a
trigger7 = movecontact
trigger8 = stateno = 230     ;stand_x
trigger8 = movecontact
trigger9 = stateno = 245     ;close_stand_y
trigger9 = movecontact

;---------------------------------------------------------------------------
;Somersault_C
[State -1, Somersault C]
type = ChangeState
value = 1050
triggerall = command = "somer_c"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 40      ;Jumpstart
trigger3 = stateno = 400     ;crouch_a
trigger4 = stateno = 430     ;crouch_x
trigger4 = movecontact
trigger5 = stateno = 440     ;crouch_y
trigger5 = movecontact
trigger6 = stateno = 450     ;crouch_z
trigger6 = movecontact
trigger7 = stateno = 200     ;stand_a
trigger7 = movecontact
trigger8 = stateno = 230     ;stand_x
trigger8 = movecontact
trigger9 = stateno = 245     ;close_stand_y
trigger9 = movecontact

;---------------------------------------------------------------------------
;AirSonicboom_X
[State -1, Air Lkboom X]
type = ChangeState
value = 1005
triggerall = numprojID(1000) = 0 || var(12)
triggerall = command = "sonicboom_x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,615]  ;jump_a, jump_b
trigger2 = movecontact
trigger3 = stateno = [630,635]  ;jump_x
trigger4 = stateno = [640,645]  ;jump_y
trigger4 = movecontact
trigger5 = stateno = [650,655]  ;jump_z
trigger5 = movecontact
trigger6 = stateno = 227        ;knee
trigger6 = movecontact

;---------------------------------------------------------------------------
;AirSonicboom_Y
[State -1, Air Lkboom Y]
type = ChangeState
value = 1015
triggerall = numprojID(1000) = 0 || var(12)
triggerall = command = "sonicboom_y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,615]  ;jump_a, jump_b
trigger2 = movecontact
trigger3 = stateno = [630,635]  ;jump_x
trigger4 = stateno = [640,645]  ;jump_y
trigger4 = movecontact
trigger5 = stateno = [650,655]  ;jump_z
trigger5 = movecontact
trigger6 = stateno = 227        ;knee
trigger6 = movecontact

;---------------------------------------------------------------------------
;AirSonicboom_Z
[State -1, Air Lkboom Z]
type = ChangeState
value = 1025
triggerall = numprojID(1000) = 0 || var(12)
triggerall = command = "sonicboom_z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,615]  ;jump_a, jump_b
trigger2 = movecontact
trigger3 = stateno = [630,635]  ;jump_x
trigger4 = stateno = [640,645]  ;jump_y
trigger4 = movecontact
trigger5 = stateno = [650,655]  ;jump_z
trigger5 = movecontact
trigger6 = stateno = 227        ;knee
trigger6 = movecontact

;---------------------------------------------------------------------------
;AirSonicboom_S
[State -1, Air Lkboom S]
type = ChangeState
value = 1027
triggerall = numprojID(1000) = 0 || var(12)
triggerall = command = "sonicboom_s"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,615]  ;jump_a, jump_b
trigger2 = movecontact
trigger3 = stateno = [630,635]  ;jump_x
trigger4 = stateno = [640,645]  ;jump_y
trigger4 = movecontact
trigger5 = stateno = [650,655]  ;jump_z
trigger5 = movecontact
trigger6 = stateno = 227        ;knee
trigger6 = movecontact

;---------------------------------------------------------------------------
;SonicBoom_X
[State -1, Lkboom X]
type = ChangeState
value = 1000
triggerall = command = "sonicboom_x"
triggerall = numprojID(1000) = 0 || var(12)
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200        ;Stand_a
trigger3 = stateno = [230,250]  ;Stand_x, stand_y, stand_z
trigger3 = movecontact
trigger4 = stateno = 400        ;crouch_a
trigger4 = movecontact
trigger4 = time > 7
trigger5 = stateno = 430        ;crouch_x
trigger5 = movecontact
trigger5 = time > 6
trigger6 = stateno = 440        ;crouch_y
trigger6 = movecontact
trigger7 = stateno = 355        ;stand_back_z
trigger7 = movecontact

;---------------------------------------------------------------------------
;SonicBoom_Y
[State -1, Lkboom Y]
type = ChangeState
value = 1010
triggerall = command = "sonicboom_y"
triggerall = numprojID(1000) = 0 || var(12)
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200        ;Stand_a
trigger3 = stateno = [230,250]  ;Stand_x, stand_y, stand_z
trigger3 = movecontact
trigger4 = stateno = 400        ;crouch_a
trigger4 = movecontact
trigger4 = time > 7
trigger5 = stateno = 430        ;crouch_x
trigger5 = movecontact
trigger5 = time > 6
trigger6 = stateno = 440        ;crouch_y
trigger6 = movecontact
trigger7 = stateno = 355        ;stand_back_z
trigger7 = movecontact

;---------------------------------------------------------------------------
;SonicBoom_Z
[State -1, Lkboom Z]
type = ChangeState
value = 1020
triggerall = numprojID(1000) = 0 || var(12)
triggerall = command = "sonicboom_z"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200        ;Stand_a
trigger3 = stateno = [230,250]  ;Stand_x, stand_y, stand_z
trigger3 = movecontact
trigger4 = stateno = 400        ;crouch_a
trigger4 = movecontact
trigger4 = time > 7
trigger5 = stateno = 430        ;crouch_x
trigger5 = movecontact
trigger5 = time > 6
trigger6 = stateno = 440        ;crouch_y
trigger6 = movecontact
trigger7 = stateno = 355        ;stand_back_z
trigger7 = movecontact

;---------------------------------------------------------------------------
;SonicBoom_S
[State -1, Lkboom S]
type = ChangeState
value = 1022
triggerall = command = "sonicboom_s"
triggerall = numprojID(1000) = 0 || var(12)
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200        ;Stand_a
trigger3 = stateno = [230,250]  ;Stand_x, stand_y, stand_z
trigger3 = movecontact
trigger4 = stateno = 400        ;crouch_a
trigger4 = movecontact
trigger4 = time > 7
trigger5 = stateno = 430        ;crouch_x
trigger5 = movecontact
trigger5 = time > 6
trigger6 = stateno = 440        ;crouch_y
trigger6 = movecontact
trigger7 = stateno = 355        ;stand_back_z
trigger7 = movecontact

;---------------------------------------------------------------------------
;MajikThrow_a
[State -1, Majikthrow A]
type = ChangeState
value = 1150
triggerall = command = "sonicboom_a"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;MajikThrow_b
[State -1, Majikthrow B]
type = ChangeState
value = 1160
triggerall = command = "sonicboom_b"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;MajikThrow_c
[State -1, Majikthrow C]
type = ChangeState
value = 1170
triggerall = command = "sonicboom_c"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;HeavenDrop
[State -1, Heavendrop]
type = ChangeState
value = 1120
triggerall = command = "heavendrop"
triggerall = !var(12)
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Dunk1
[State -1, Dunk]
type = ChangeState
value = 1100
triggerall = command = "dunk"
triggerall = !var(12)
trigger1 = statetype = S
trigger1 = ctrl
;trigger2 = stateno != 1100
;trigger2 = stateno != 1105
;trigger2 = stateno != 1600

;---------------------------------------------------------------------------
;Reversal1 (High)
[State -1, Reversal]
type = ChangeState
value = 1200
triggerall = command = "tatsumaki_c"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = stateno >= 200
trigger2 = stateno <= 590
trigger2 = movecontact
trigger2 = animtime >= -8

;---------------------------------------------------------------------------
;Reversal2
[State -1, Reversal2]
type = ChangeState
value = 1200;1220
triggerall = command = "tatsumaki_b"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = stateno >= 200
trigger2 = stateno <= 590
trigger2 = movecontact
trigger2 = animtime >= -8

;===========================================================================
;---------------------------------------------------------------------------
;RunFwd
[State -1, Run fwd]
type = ChangeState
value = 100
triggerall = command = "FF"
triggerall = command != "FBF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;RunB
[State -1, Hop back]
type = ChangeState
value = 105
triggerall = command = "BB"
triggerall = command != "BFB"
trigger1 = statetype = S
trigger1 = ctrl


;---------------------------------------------------------------------------
;Stand_Throw1
[State -1, St Throw]
type = ChangeState
value = 900
triggerall = statetype = S
triggerall = ctrl
triggerall = !var(12)
trigger1 = command = "fwd_xy"  ;Command
trigger2 = command = "back_xy" ;Command
trigger3 = command = "holdfwd" ;Near
trigger3 = command = "y"
trigger3 = command != "fwd_yz"
trigger3 = p2bodydist X < 5
trigger3 = p2statetype = S
trigger3 = p2movetype != H
trigger4 = command = "holdfwd" ;Near
trigger4 = command = "y"
trigger4 = command != "fwd_yz"
trigger4 = p2bodydist X < 5
trigger4 = p2statetype = C
trigger4 = p2movetype != H
trigger5 = command = "holdback";Near
trigger5 = command = "y"
trigger5 = command != "back_yz"
trigger5 = p2bodydist X < 5
trigger5 = p2statetype = S
trigger5 = p2movetype != H
trigger6 = command = "holdback";Near
trigger6 = command = "y"       ;Near
trigger6 = command != "back_yz"
trigger6 = p2bodydist X < 5
trigger6 = p2statetype = C
trigger6 = p2movetype != H

;---------------------------------------------------------------------------
;Stand_Throw2
[State -1, St Throw2]
type = ChangeState
value = 920
triggerall = statetype = S
triggerall = ctrl
triggerall = !var(12)
trigger1 = command = "fwd_yz"  ;Command
trigger2 = command = "back_yz" ;Command
trigger3 = command = "holdfwd" ;Near
trigger3 = command = "z"
trigger3 = p2bodydist X < 5
trigger3 = p2statetype = S
trigger3 = p2movetype != H
trigger4 = command = "holdfwd" ;Near
trigger4 = command = "z"    
trigger4 = p2bodydist X < 5
trigger4 = p2statetype = C
trigger4 = p2movetype != H
trigger5 = command = "holdback";Near
trigger5 = command = "z"
trigger5 = p2bodydist X < 5
trigger5 = p2statetype = S
trigger5 = p2movetype != H
trigger6 = command = "holdback";Near
trigger6 = command = "z"       ;Near
trigger6 = p2bodydist X < 5
trigger6 = p2statetype = C
trigger6 = p2movetype != H

;---------------------------------------------------------------------------
;Air_Throw1
[State -1, Air Throw]
type = ChangeState
value = 950
triggerall = statetype = A
triggerall = ctrl
triggerall = !var(12)
trigger1 = command = "fwd_ab"
trigger2 = command = "back_ab"
trigger3 = command = "fwd_bc"
trigger4 = command = "back_bc"
;---------------------------
;Air_Throw1 (second set of commands)
[State -1, Air Throw]
type = ChangeState
value = 950
triggerall = statetype = A
triggerall = ctrl
triggerall = !var(12)
triggerall = p2bodydist X < 10
triggerall = p2bodydist Y > -25
triggerall = p2bodydist Y < 25
triggerall = p2statetype = A
triggerall = p2movetype != H
trigger1 = command = "holdfwd"
trigger1 = command = "b"
trigger2 = command = "holdback"
trigger2 = command = "b"
trigger3 = command = "holdfwd"
trigger3 = command = "c"
trigger4 = command = "holdback"
trigger4 = command = "c"

;---------------------------------------------------------------------------
;Air_Throw2
[State -1, Air Throw 2]
type = ChangeState
value = 970
triggerall = statetype = A
triggerall = ctrl
triggerall = pos Y < -25
triggerall = !var(12)
trigger1 = command = "fwd_xy"
trigger2 = command = "back_xy"
trigger3 = command = "fwd_yz"
trigger4 = command = "back_yz"
;---------------------------
;Air_Throw2 (second set of commands)
[State -1, Air Throw 2]
type = ChangeState
value = 970
triggerall = statetype = A
triggerall = ctrl
triggerall = !var(12)
triggerall = p2bodydist X < 10
triggerall = p2bodydist Y > -25
triggerall = p2bodydist Y < 25
triggerall = p2statetype = A
triggerall = pos Y < -25
triggerall = p2movetype != H
trigger1 = command = "holdfwd"
trigger1 = command = "y"
trigger2 = command = "holdback"
trigger2 = command = "y"
trigger3 = command = "holdfwd"
trigger3 = command = "z"
trigger4 = command = "holdback"
trigger4 = command = "z"

;===========================================================================
;---------------------------------------------------------------------------
;RunF_A
[State -1, Run fwd A]
type = ChangeState
value = 217
trigger1 = command = "a"
trigger1 = stateno = 100 ;RunF
trigger1 = animelem = 2, < 0

;---------------------------------------------------------------------------
;RunF_B
[State -1, Run fwd B]
type = ChangeState
value = 227
trigger1 = command = "b"
trigger1 = stateno = 100 ;RunF
trigger1 = animelem = 2, < 0

;---------------------------------------------------------------------------
;RunF_C
[State -1, Run fwd C]
type = ChangeState
value = 325
trigger1 = command = "c"
trigger1 = stateno = 100 ;RunF
trigger1 = animelem = 2, < 0

;---------------------------------------------------------------------------
;RunF_Z
[State -1, Justice Boom]
type = ChangeState
value = 350
trigger1 = command = "z"
trigger1 = stateno = 100 ;RunF
trigger1 = animelem = 2, < 0

;---------------------------------------------------------------------------
;Stand_YZ
[State -1, YZ Uppercut]
type = ChangeState
value = 260
trigger1 = command = "yz"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Stand_A
[State -1]
type = ChangeState
value = 200
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 ;Stand_A
trigger2 = time >= 8
trigger3 = stateno = 230 ;Stand_X
trigger3 = movecontact

;---------------------------------------------------------------------------
;Stand_B
[State -1]
type = ChangeState
value = 210
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = ctrl
trigger1 = P2bodydist X > 15
trigger2 = command = "holdfwd"
trigger3 = command = "holdback"
;-------------
;Stand_B (combo into)
[State -1]
type = ChangeState
value = 210
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = movecontact
trigger1 = stateno = 200 ;Stand_A
trigger2 = stateno = 230 ;Stand_X
trigger3 = stateno = 240 ;Stand_Y
trigger3 = animelem = 3, >= 0
trigger4 = stateno = 245 ;Stand_y (close)

;---------------------------------------------------------------------------
;Stand_B (close)
[State -1]
type = ChangeState
value = 215
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = P2bodydist X <= 15
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Stand_fwd_C
[State -1]
type = ChangeState
value = 325
triggerall = command = "holdfwd"
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = P2bodydist X > 89
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Stand_back_C
[State -1]
type = ChangeState
value = 327
triggerall = command = "holdback"
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Stand_fwd_C (close)
[State -1]
type = ChangeState
value = 226
triggerall = command = "holdfwd"
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = P2bodydist X <= 89
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Stand_C
[State -1]
type = ChangeState
value = 220
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = P2bodydist X > 30
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 210 ;Stand_B
trigger2 = animelem = 9, >= 0
trigger2 = movecontact
trigger3 = stateno = 240 ;Stand_Y
trigger3 = animelem = 3, >= 0
trigger3 = movecontact
trigger4 = stateno = 245 ;Stand_y (close)
trigger4 = movecontact

;---------------------------------------------------------------------------
;Stand_C (close)
[State -1]
type = ChangeState
value = 225
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = P2bodydist X <= 30
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 210 ;Stand_B
trigger2 = animelem = 9, >= 0
trigger2 = movecontact
trigger3 = stateno = 240 ;Stand_Y
trigger3 = animelem = 3, >= 0
trigger3 = movecontact
trigger4 = stateno = 245 ;Stand_y (close)
trigger4 = movecontact

;---------------------------------------------------------------------------
;Stand_X
[State -1]
type = ChangeState
value = 230
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 230 ;Stand_X
trigger2 = time >= 7
trigger3 = stateno = 430 ;Crouch_X
trigger3 = time >= 7

;---------------------------------------------------------------------------
;Stand_Y
[State -1]
type = ChangeState
value = 240
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = P2bodydist X > 20
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 230 ;Stand_X
trigger2 = movecontact
trigger3 = stateno = 200 ;Stand_A
;trigger3 = animelem = 4, >= 1
trigger3 = movecontact

;---------------------------------------------------------------------------
;Stand_Y (close)
[State -1]
type = ChangeState
value = 245
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = P2bodydist X <= 20
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 230 ;Stand_X
trigger2 = movecontact
trigger3 = stateno = 200 ;Stand_A
trigger3 = movecontact

;---------------------------------------------------------------------------
;Stand_fwd_Z
[State -1]
type = ChangeState
value = 255
triggerall = command = "holdfwd"
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 210 ;Stand_B
trigger2 = animelem = 9, >= 0
trigger2 = movecontact
trigger3 = stateno = 240 ;Stand_Y
trigger3 = animelem = 3, >= 0
trigger3 = movecontact

;---------------------------------------------------------------------------
;Stand_Z
[State -1]
type = ChangeState
value = 250
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = P2bodydist X > 20
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 210 ;Stand_B
trigger2 = animelem = 9, >= 0
trigger2 = movecontact
trigger3 = stateno = 240 ;Stand_Y
trigger3 = animelem = 3, >= 0
trigger3 = movecontact
;trigger4 = stateno = 245 ;Stand_y (close)
;trigger4 = movecontact
;trigger4 = animelem = 3, >= 0
;-------------------
;Stand_Z (chain)
[State -1]
type = ChangeState
value = 250
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = stateno = 245 ;Stand_y (close)
trigger1 = movecontact
;trigger1 = animelem = 3, >= 0

;---------------------------------------------------------------------------
;Stand_Z (close)
[State -1]
type = ChangeState
value = 355
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = P2bodydist X <= 20
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 210 ;Stand_B
trigger2 = animelem = 9, >= 0
trigger2 = movecontact
trigger3 = stateno = 240 ;Stand_Y
trigger3 = animelem = 3, >= 0
trigger3 = movecontact
;trigger4 = stateno = 245 ;Stand_y (close)
;trigger4 = movecontact

;---------------------------------------------------------------------------
;Taunt
[State -1]
type = ChangeState
value = 195
triggerall = command = "s"
triggerall = command != "holddown"
triggerall = var(20) < 5
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crouch_A
[State -1]
type = ChangeState
value = 400
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crouch_B
[State -1]
type = ChangeState
value = 410
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
;trigger2 = stateno = 400
;trigger2 = time > 7
;trigger2 = movecontact

;---------------------------------------------------------------------------
;Crouch_C
[State -1]
type = ChangeState
value = 420
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
;trigger2 = stateno = 410
;trigger2 = animelem = 4, >= 0
;trigger2 = movecontact

;---------------------------------------------------------------------------
;Crouch_X
[State -1]
type = ChangeState
value = 430
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 230 ;Stand_X
trigger2 = time >= 7
trigger3 = stateno = 430 ;Crouch_X
trigger3 = time >= 7

;---------------------------------------------------------------------------
;Crouch_Y
[State -1]
type = ChangeState
value = 440
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 430 ;Crouch_X
trigger2 = time >= 7

;---------------------------------------------------------------------------
;Crouch_Z
[State -1]
type = ChangeState
value = 450
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400 ;crouch_a
trigger2 = movecontact

;---------------------------------------------------------------------------
;Jump_C
[State -1]
type = ChangeState
value = 620
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
;trigger6 = command = abc ;-=-=-=
;trigger6 = stateno != 1100 ;-=-=-=
;trigger6 = stateno != 1105 ;-=-=-=

;---------------------------------------------------------------------------
;Jump_A
[State -1]
type = ChangeState
value = 600
triggerall = command = "a"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump_A (moving)
[State -1]
type = ChangeState
value = 605
triggerall = command = "a"
triggerall = Vel X != 0
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump_B
[State -1]
type = ChangeState
value = 610
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = Vel X = 0

;---------------------------------------------------------------------------
;Jump_B (moving)
[State -1]
type = ChangeState
value = 615
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = Vel X != 0

;---------------------------------------------------------------------------
;Jump_X
[State -1]
type = ChangeState
value = 630
triggerall = command = "x"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump_X (moving)
[State -1]
type = ChangeState
value = 635
triggerall = command = "x"
triggerall = Vel X != 0
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump_Y
[State -1]
type = ChangeState
value = 640
triggerall = command = "y"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump_Y (moving)
[State -1]
type = ChangeState
value = 645
triggerall = command = "y"
triggerall = Vel X != 0
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump_Z
[State -1]
type = ChangeState
value = 650
triggerall = command = "z"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump_Z (moving)
[State -1]
type = ChangeState
value = 655
triggerall = command = "z"
triggerall = Vel X != 0
trigger1 = statetype = A
trigger1 = ctrl

