;|========================|
;|Onslaught's command file|
;|========================|

;-| Super Motions |--------------------------------------------------------
;The following two have the same name, but different motion.
;Either one will be detected by a "command = TripleKFPalm" trigger.
;Time is set to 20 (instead of default of 15) to make the move
;easier to do.

;Magnetic Tempest
[Command]
name = "mag2"
command = ~F, D, DF, x+y
time = 30

[Command]
name = "mag2"
command = ~F, D, DF, x+z
time = 30

[Command]
name = "mag2"
command = ~F, D, DF, y+z
time = 30

;Mega Optic Blast
[Command]
name = "optic"
command = ~D, DF, F, x+y
time = 30

[Command]
name = "optic"
command = ~D, DF, F, x+z
time = 30

[Command]
name = "optic"
command = ~D, DF, F, y+z
time = 30

;Magnetic Shock Wave
[Command]
name = "wave"
command = ~D, DF, F, a+b
time = 30

[Command]
name = "wave"
command = ~D, DF, F, a+c
time = 30

[Command]
name = "wave"
command = ~D, DF, F, b+c
time = 30

;Partner Change
[Command]
name = "change"
command = ~D, DB, B, a+b
time = 30

[Command]
name = "change"
command = ~D, DB, B, a+c
time = 30

[Command]
name = "change"
command = ~D, DB, B, b+c
time = 30

;Hyper Rensha Beam
[Command]
name = "hyper_rensha_beam"
command = ~B, DB, D, x+y
time = 30

[Command]
name = "hyper_rensha_beam"
command = ~B, DB, D, x+z
time = 30

[Command]
name = "hyper_rensha_beam"
command = ~B, DB, D, y+z
time = 30

;-| Special Motions |------------------------------------------------------
;Hyper grav
[Command]
name = "grav"
command = ~F, D, DF, x

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

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

;Magnetic Tempest
[Command]
name = "mag"
command = ~D, DF, F, x

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

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

;Head Crush
[Command]
name = "crush"
command = ~D, DF, F, a

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

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

;Teleport
[Command]
name = "teleport_a"
command = ~D, DB, B, a

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

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

;Sentinel
[Command]
name = "sentinel"
command = a+x

[Command]
name = "sentinel"
command = a+y

[Command]
name = "sentinel"
command = a+z

[Command]
name = "sentinel"
command = b+x

[Command]
name = "sentinel"
command = b+y

[Command]
name = "sentinel"
command = b+z

[Command]
name = "sentinel"
command = c+x

[Command]
name = "sentinel"
command = c+y

[Command]
name = "sentinel"
command = c+z

;Attack
[Command]
name = "attack"
command = x

[Command]
name = "attack"
command = y

[Command]
name = "attack"
command = z

[Command]
name = "attack"
command = a

[Command]
name = "attack"
command = b

[Command]
name = "attack"
command = c

;Cyclops
[Command]
name = "cyclops"
command = ~D, DF, F, x

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

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

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

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

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

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

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

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

[Command]
name = "rushingpunch"
command = ~45$B, F, x
time = 5

[Command]
name = "rushingpunch"
command = ~45$B, F, y
time = 5

[Command]
name = "rushingpunch"
command = ~45$B, F, z
time = 5

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

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

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

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

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

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

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 10

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

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

[Command]
name = "down_y"
command = /$D,y
time = 1

[Command]
name = "down_z"
command = /$D,z
time = 1

[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 = "start"
command = s
time = 1

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

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1

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

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

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

;-| CPU ONLY |--------------------------------------------------------------

[Command]
name = "CPU1"
command = U, D, B, F, s
time = 1

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

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

[Command]
name = "CPU4"
command = B, B, B, B, B, B
time = 1

[Command]
name = "CPU5"
command = F, F, F, F, F, F
time = 1

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

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

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

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

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

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

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

[Command]
name = "CPU13"
command = U, D, B, F, x
time = 1

[Command]
name = "CPU14"
command = U, D, B, F, y
time = 1

[Command]
name = "CPU15"
command = U, D, B, F, z
time = 1

[Command]
name = "CPU16"
command = U, D, B, F, a
time = 1

[Command]
name = "CPU17"
command = U, D, B, F, b
time = 1

[Command]
name = "CPU18"
command = U, D, B, F, c
time = 1

[Command]
name = "CPU19"
command = U, U, D, D, B, B, F, F, x, x
time = 1

[Command]
name = "CPU20"
command = U, U, D, D, B, B, F, F, y, y
time = 1

[Command]
name = "CPU21"
command = U, U, D, D, B, B, F, F, z, z
time = 1

[Command]
name = "CPU22"
command = U, U, D, D, B, B, F, F, a, a
time = 1

[Command]
name = "CPU23"
command = U, U, D, D, B, B, F, F, b, b
time = 1

[Command]
name = "CPU24"
command = U, U, D, D, B, B, F, F, c, c
time = 1

[Command]
name = "CPU25"
command = U, U, D, D, B, B, F, F, s, s
time = 1

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

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

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

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

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

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

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

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

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

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

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

[Command]
name = "CPU37"
command = B, B, B, F, F, F, x, x, x
time = 1

[Command]
name = "CPU38"
command = B, B, B, F, F, F, y, y, y
time = 1

[Command]
name = "CPU39"
command = B, B, B, F, F, F, z, z, z
time = 1

[Command]
name = "CPU40"
command = B, B, B, F, F, F, a, a, a
time = 1

[Command]
name = "CPU41"
command = B, B, B, F, F, F, b, b, b
time = 1

[Command]
name = "CPU42"
command = B, B, B, F, F, F, c, c, c
time = 1

[Command]
name = "CPU43"
command = B, B, B, F, F, F, s, s, s
time = 1

[Command]
name = "CPU44"
command = B, B, B, F, F, F, B, B, B
time = 1

[Command]
name = "CPU45"
command = B, B, B, F, F, F, F, F, F
time = 1

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

[Command]
name = "CPU47"
command = B, B, B, F, F, F, D, D, D
time = 1

[Command]
name = "CPU48"
command = x, x, x, x, x, a, a, a, a, a
time = 1

[Command]
name = "CPU49"
command = y, y, y, y, y, b, b, b, b, b
time = 1

[Command]
name = "CPU50"
command = z, z, z, z, z, c, c, c, c, c, c
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, Label]           ;Change Label to any name you want to use to
;                               ;identify the state with.
;   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
[State -1]
type = varset
trigger1 = command = "CPU50"
trigger2 = command = "CPU49"
trigger3 = command = "CPU48"
trigger4 = command = "CPU47"
trigger5 = command = "CPU46"
trigger6 = command = "CPU45"
trigger7 = command = "CPU44"
trigger8 = command = "CPU43"
trigger9 = command = "CPU42"
trigger10 = command = "CPU41"
trigger11 = command = "CPU40"
trigger12 = command = "CPU39"
trigger13 = command = "CPU38"
trigger14 = command = "CPU37"
trigger15 = command = "CPU36"
trigger16 = command = "CPU35"
trigger17 = command = "CPU34"
trigger18 = command = "CPU33"
trigger19 = command = "CPU32"
trigger20 = command = "CPU31"
trigger21 = command = "CPU30"
trigger22 = command = "CPU29"
trigger23 = command = "CPU28"
trigger24 = command = "CPU27"
trigger25 = command = "CPU26"
trigger26 = command = "CPU25"
trigger27 = command = "CPU24"
trigger28 = command = "CPU23"
trigger29 = command = "CPU22"
trigger30 = command = "CPU21"
trigger31 = command = "CPU20"
trigger32 = command = "CPU19"
trigger33 = command = "CPU18"
trigger34 = command = "CPU17"
trigger35 = command = "CPU16"
trigger36 = command = "CPU15"
trigger37 = command = "CPU14"
trigger38 = command = "CPU13"
trigger39 = command = "CPU12"
trigger40 = command = "CPU11"
trigger41 = command = "CPU10"
trigger42 = command = "CPU9"
trigger43 = command = "CPU8"
trigger44 = command = "CPU7"
trigger45 = command = "CPU6"
trigger46 = command = "CPU5"
trigger47 = command = "CPU4"
trigger48 = command = "CPU3"
trigger49 = command = "CPU2"
trigger50 = command = "CPU1"
var(0) = 1

;AI Diactivator
[State -1]
type = null;VarSet
trigger1 = command != "CPU50"
trigger1 = command != "CPU49"
trigger1 = command != "CPU48"
trigger1 = command != "CPU47"
trigger1 = command != "CPU46"
trigger1 = command != "CPU45"
trigger1 = command != "CPU44"
trigger1 = command != "CPU43"
trigger1 = command != "CPU42"
trigger1 = command != "CPU41"
trigger1 = command != "CPU40"
trigger1 = command != "CPU39"
trigger1 = command != "CPU38"
trigger1 = command != "CPU37"
trigger1 = command != "CPU36"
trigger1 = command != "CPU35"
trigger1 = command != "CPU34"
trigger1 = command != "CPU33"
trigger1 = command != "CPU32"
trigger1 = command != "CPU31"
trigger1 = command != "CPU30"
trigger1 = command != "CPU29"
trigger1 = command != "CPU28"
trigger1 = command != "CPU27"
trigger1 = command != "CPU26"
trigger1 = command != "CPU25"
trigger1 = command != "CPU24"
trigger1 = command != "CPU23"
trigger1 = command != "CPU22"
trigger1 = command != "CPU21"
trigger1 = command != "CPU20"
trigger1 = command != "CPU19"
trigger1 = command != "CPU18"
trigger1 = command != "CPU17"
trigger1 = command != "CPU16"
trigger1 = command != "CPU15"
trigger1 = command != "CPU14"
trigger1 = command != "CPU13"
trigger1 = command != "CPU12"
trigger1 = command != "CPU11"
trigger1 = command != "CPU10"
trigger1 = command != "CPU9"
trigger1 = command != "CPU8"
trigger1 = command != "CPU7"
trigger1 = command != "CPU6"
trigger1 = command != "CPU5"
trigger1 = command != "CPU4"
trigger1 = command != "CPU3"
trigger1 = command != "CPU2"
trigger1 = command != "CPU1"
var(0) = 0

;|==========|
;|Cyclops AI|
;|==========|

;Light punch
;Medium punch
;Strong punch
;Light kick
;Medium kick
;Strong kick

;CLight punch
;CMedium punch
;CStrong punch
;CLight kick
;CMedium kick
;CStrong kick

;ALight punch
;AMedium punch
;AStrong punch
;AStrong punch 2
;ALight kick
;AMedium kick
;AStrong kick
;AStrong kick 2

;|======|
;|Supers|
;|======|

;Mega Optic Blast
[State -1]
type = changestate
value = 3000
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = power >= 1000
triggerall = command = "optic"
triggerall = statetype = S
trigger1 = ctrl = 1

;Magnetic Shock Wave
[State -1]
type = changestate
value = 3010
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = power >= 1000
triggerall = command = "wave"
triggerall = statetype = S
trigger1 = ctrl = 1

;Partner Change
[State -1]
type = changestate
value = 3020
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = power >= 2000
triggerall = command = "change"
triggerall = statetype = S
trigger1 = ctrl = 1

;|========|
;|Specials|
;|========|

;Partner Change Teleport A
[State -1]
type = changestate
value = 3024
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = command = "teleport_a"
triggerall = statetype = S
triggerall = stateno = 3023
trigger1 = ctrl = 0

;Partner Change Teleport B
[State -1]
type = changestate
value = 3025
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = command = "teleport_b"
triggerall = statetype = S
triggerall = stateno = 3023
trigger1 = ctrl = 0

;Partner Change Teleport C
[State -1]
type = changestate
value = 3026
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = command = "teleport_c"
triggerall = statetype = S
triggerall = stateno = 3023
trigger1 = ctrl = 0

;Sentinel
[State -1]
type = changestate
value = 1030
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = numhelper(9) = 0
triggerall = command = "sentinel"
triggerall = statetype = S
trigger1 = ctrl = 1

;Hyper Grav
[State -1]
type = changestate
value = 1010
triggerall = var(50) = 0
triggerall = var(0) = 0
trigger1 = command = "grav"
trigger1 = numhelper(3) = 0
trigger1 = numhelper(4) = 0
trigger1 = numhelper(5) = 0
trigger1 = numhelper(6) = 0
trigger1 = ctrl = 1

;Magnetic Tempest
[State -1]
type = changestate
value = 1000
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = command = "mag"
triggerall = statetype = S
trigger1 = ctrl = 1

;Head Crush
[State -1]
type = changestate
value = 1005
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = command = "crush"
triggerall = statetype = S
trigger1 = ctrl = 1

;Teleport A
[State -1]
type = changestate
value = 1020
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = command = "teleport_a"
triggerall = statetype = S
trigger1 = ctrl = 1

;Teleport B
[State -1]
type = changestate
value = 1021
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = command = "teleport_b"
triggerall = statetype = S
trigger1 = ctrl = 1

;Teleport C
[State -1]
type = changestate
value = 1022
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = command = "teleport_c"
triggerall = statetype = S
trigger1 = ctrl = 1

;Cyclops
[State -1]
type = changestate
value = 3030
triggerall = var(50) = 0
triggerall = var(0) = 0
trigger1 = stateno = 3023
trigger1 = numhelper = 0
trigger1 = command = "cyclops"

;Sentinel
[State -1]
type = changestate
value = 3031
triggerall = var(50) = 0
triggerall = var(0) = 0
trigger1 = stateno = 3023
trigger1 = numhelper = 0
trigger1 = command = "x"

;Juggernaut
[State -1]
type = changestate
value = 3032
triggerall = var(50) = 0
triggerall = var(0) = 0
trigger1 = stateno = 3023
trigger1 = numhelper = 0
trigger1 = command = "y"

;Rogue
[State -1]
type = changestate
value = 3033
triggerall = var(50) = 0
triggerall = var(0) = 0
trigger1 = stateno = 3023
trigger1 = numhelper = 0
trigger1 = command = "z"

;|=====================|
;|Onslaught Basic Moves|
;|=====================|

;Mini Sentinel
[State -1]
type = changestate
value = 200
triggerall = var(50) = 0
triggerall = var(0) = 0
triggerall = numhelper(1) = 0
triggerall = command = "attack"
triggerall = statetype = S
trigger1 = ctrl = 1

;|==========================|
;|Onslaught(2nd form) supers|
;|==========================|

;Magnetic tempest
[State -1]
type = VarSet
triggerall = numhelper(15) = 1
triggerall = power >= 1000
triggerall = var(50) = 2
triggerall = var(0) = 0
triggerall = var(16) = 0
triggerall = NumHelper(14) = 0
triggerall = command = "mag2"
trigger1 = ctrl = 1
var(30) = 3

;Magnetic tempest power add
[State -1]
type = poweradd
value = -1000
triggerall = var(0) = 0
triggerall = numhelper(15) = 1
triggerall = power >= 1000
triggerall = var(50) = 2
triggerall = var(30) = 0
triggerall = numhelper(14) = 0
triggerall = command = "mag2"
trigger1 = ctrl = 1

;Magnetic tempest power add AI
[State -1]
type = poweradd
value = -1000
triggerall = var(0) = 1
triggerall = numhelper(15) = 1
triggerall = power >= 1000
triggerall = var(50) = 2
triggerall = var(30) = 0
triggerall = numhelper(14) = 0
triggerall = command = "mag2"
trigger1 = ctrl = 1

;Hyper rensha beam
[State -1]
type = changestate
value = 4056
triggerall = numhelper(15) = 1
triggerall = power >= 1000
triggerall = var(50) = 2
triggerall = var(0) = 0
triggerall = var(30) = 0
triggerall = numhelper(14) = 0
triggerall = command = "optic"
trigger1 = ctrl = 1

;Hyper rensha beam 2
[State -1]
type = changestate
value = 4057
triggerall = numhelper(15) = 1
triggerall = power >= 1000
triggerall = var(50) = 2
triggerall = var(0) = 0
triggerall = var(30) = 0
triggerall = numhelper(14) = 0
triggerall = command = "hyper_rensha_beam"
trigger1 = ctrl = 1

;|============================|
;|Onslaught(2nd form) specials|
;|============================|

;Rensha beam
[State -1]
type = changestate
value = 4010
triggerall = numhelper(15) = 1
triggerall = var(50) = 2
triggerall = var(0) = 0
triggerall = var(30) = 0
triggerall = numhelper(14) = 0
triggerall = command = "mag"
trigger1 = ctrl = 1

;Hyper grav
[State -1]
type = varset
triggerall = numhelper(15) = 1
triggerall = var(50) = 2
triggerall = var(0) = 0
triggerall = var(30) = 0
triggerall = numHelper(14) = 0
triggerall = numHelper(3) = 0
triggerall = numHelper(4) = 0
triggerall = numHelper(5) = 0
triggerall = numHelper(6) = 0
triggerall = command = "grav"
trigger1 = ctrl = 1
var(30) = 2

;Dash punch
[State -1]
type = changestate
value = 4065
triggerall = numhelper(15) = 1
triggerall = var(50) = 2
triggerall = var(0) = 0
triggerall = var(30) = 0
triggerall = numhelper(14) = 0
triggerall = command = "crush"
trigger1 = ctrl = 1

;Sentinel
[State -1]
type = changestate
value = 4055
triggerall = numhelper(15) = 1
triggerall = var(50) = 2
triggerall = var(0) = 0
triggerall = var(30) = 0
triggerall = command = "sentinel"
triggerall = numhelper(14) = 0
triggerall = numhelper(9) = 0
trigger1 = ctrl = 1

;|==========================|
;|Onslaught(2nd form) basics|
;|==========================|

;Punch
[State -1]
type = varset
triggerall = numhelper(15) = 1
triggerall = var(50) = 2
triggerall = var(0) = 0
triggerall = var(30) = 0
triggerall = numhelper(14) = 0
triggerall = command = "x" || command = "y" || command = "z"
trigger1 = ctrl = 1
var(30) = 1

;Mini Sentinel
[State -1]
type = changestate
value = 4007
triggerall = numhelper(15) = 1
triggerall = var(50) = 2
triggerall = var(0) = 0
triggerall = var(30) = 0
triggerall = numhelper(14) = 0
triggerall = numhelper(1) = 0
triggerall = command = "a" || command = "b" || command = "c"
trigger1 = ctrl = 1

;|==============|
;|Cyclops supers|
;|==============|

;Mega optic blast
[State -1]
type = ChangeState
value = 6500
triggerall = IsHelper(6)
triggerall = statetype != A
triggerall = var(21) >= 1000
triggerall = command = "optic"
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger3 = stateno = 6301
trigger4 = stateno = 6302
trigger5 = stateno = 6303
trigger6 = stateno = 6304
trigger7 = stateno = 6305
trigger8 = stateno = 6306
trigger9 = stateno = 6307
trigger10 = stateno = 6308
trigger11 = stateno = 6309
trigger12 = stateno = 6310
trigger13 = stateno = 6311
trigger14 = stateno = 6312
trigger15 = stateno = 6400
trigger16 = stateno = 6401
trigger17 = stateno = 6415
trigger18 = stateno = 6416
trigger19 = stateno = 6417
trigger20 = stateno = 6418
trigger21 = stateno = 6419
trigger22 = stateno = 6420
trigger23 = stateno = 6421
trigger24 = stateno = 6422

;Mega optic blast air
[State -1]
type = ChangeState
value = 6502
triggerall = IsHelper(6)
triggerall = statetype = A
triggerall = var(21) >= 1000
triggerall = command = "optic"
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger3 = stateno = 610
trigger4 = stateno = 620
trigger5 = stateno = 621
trigger6 = stateno = 630
trigger7 = stateno = 640
trigger8 = stateno = 650
trigger9 = stateno = 651
trigger10 = stateno = 1100
trigger11 = stateno = 1410
trigger12 = stateno = 1420
trigger13 = stateno = 1430
trigger14 = stateno = 1440
trigger15 = stateno = 1450

;|================|
;|Cyclops specials|
;|================|

;Sentinel
[State -1]
type = ChangeState
value = 6350
triggerall = IsHelper(6)
triggerall = NumHelper(9) = 0
triggerall = statetype != A
triggerall = command = "csentinel"
trigger1 = ctrl = 1

;Juggernaut
[State -1]
type = ChangeState
value = 6351
triggerall = IsHelper(6)
triggerall = NumHelper(24) = 0
triggerall = statetype != A
triggerall = command = "cjuggernaut"
trigger1 = ctrl = 1

;Rogue
[State -1]
type = ChangeState
value = 6352
triggerall = IsHelper(6)
triggerall = NumHelper(25) = 0
triggerall = statetype != A
triggerall = command = "crogue"
trigger1 = ctrl = 1

;Gene splice x
[State -1]
type = ChangeState
value = 6420
triggerall = IsHelper(6)
triggerall = statetype != A
triggerall = command = "genesplice_x"
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger3 = stateno = 6301
trigger4 = stateno = 6302
trigger5 = stateno = 6303
trigger6 = stateno = 6304
trigger7 = stateno = 6305
trigger8 = stateno = 6306
trigger9 = stateno = 6307
trigger10 = stateno = 6308
trigger11 = stateno = 6309
trigger12 = stateno = 6310
trigger13 = stateno = 6311
trigger14 = stateno = 6312

;Gene splice y
[State -1]
type = ChangeState
value = 6421
triggerall = IsHelper(6)
triggerall = statetype != A
triggerall = command = "genesplice_y"
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger3 = stateno = 6301
trigger4 = stateno = 6302
trigger5 = stateno = 6303
trigger6 = stateno = 6304
trigger7 = stateno = 6305
trigger8 = stateno = 6306
trigger9 = stateno = 6307
trigger10 = stateno = 6308
trigger11 = stateno = 6309
trigger12 = stateno = 6310
trigger13 = stateno = 6311
trigger14 = stateno = 6312

;Gene splice z
[State -1]
type = ChangeState
value = 6422
triggerall = IsHelper(6)
triggerall = statetype != A
triggerall = command = "genesplice_z"
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger3 = stateno = 6301
trigger4 = stateno = 6302
trigger5 = stateno = 6303
trigger6 = stateno = 6304
trigger7 = stateno = 6305
trigger8 = stateno = 6306
trigger9 = stateno = 6307
trigger10 = stateno = 6308
trigger11 = stateno = 6309
trigger12 = stateno = 6310
trigger13 = stateno = 6311
trigger14 = stateno = 6312

;Cyclops rushing punch
[State -1]
type = ChangeState
value = 6416
triggerall = IsHelper(6)
triggerall = statetype != A
triggerall = command = "rushingpunch"
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger3 = stateno = 6301
trigger4 = stateno = 6302
trigger5 = stateno = 6303
trigger6 = stateno = 6304
trigger7 = stateno = 6305
trigger8 = stateno = 6306
trigger9 = stateno = 6307
trigger10 = stateno = 6308
trigger11 = stateno = 6309
trigger12 = stateno = 6310
trigger13 = stateno = 6311
trigger14 = stateno = 6312

;Cyclops optic x
[State -1]
type = ChangeState
value = 6400
triggerall = IsHelper(6)
triggerall = command = "optic_x"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger3 = stateno = 6301
trigger4 = stateno = 6302
trigger5 = stateno = 6303
trigger6 = stateno = 6304
trigger7 = stateno = 6305
trigger8 = stateno = 6306
trigger9 = stateno = 6307
trigger10 = stateno = 6308
trigger11 = stateno = 6309
trigger12 = stateno = 6310
trigger13 = stateno = 6311
trigger14 = stateno = 6312

;Cyclops optic y
[State -1]
type = ChangeState
value = 6401
triggerall = IsHelper(6)
triggerall = command = "optic_y"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger3 = stateno = 6301
trigger4 = stateno = 6302
trigger5 = stateno = 6303
trigger6 = stateno = 6304
trigger7 = stateno = 6305
trigger8 = stateno = 6306
trigger9 = stateno = 6307
trigger10 = stateno = 6308
trigger11 = stateno = 6309
trigger12 = stateno = 6310
trigger13 = stateno = 6311
trigger14 = stateno = 6312

;Cyclops optic z
[State -1]
type = ChangeState
value = 6402
triggerall = IsHelper(6)
triggerall = command = "optic_z"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger3 = stateno = 6301
trigger4 = stateno = 6302
trigger5 = stateno = 6303
trigger6 = stateno = 6304
trigger7 = stateno = 6305
trigger8 = stateno = 6306
trigger9 = stateno = 6307
trigger10 = stateno = 6308
trigger11 = stateno = 6309
trigger12 = stateno = 6310
trigger13 = stateno = 6311
trigger14 = stateno = 6312

;Cyclops optic air
[State -1]
type = ChangeState
value = 6403
triggerall = IsHelper(6)
triggerall = statetype = A
triggerall = command = "optic_x" || command = "optic_y" || command = "optic_z"
trigger1 = ctrl = 1
trigger2 = stateno = 6313
trigger3 = stateno = 6314
trigger4 = stateno = 6315
trigger5 = stateno = 6316
trigger6 = stateno = 6317
trigger7 = stateno = 6318
trigger8 = stateno = 6319
trigger9 = stateno = 6320

;Cyclops cyclone kick a
[State -1]
type = ChangeState
value = 6410
triggerall = IsHelper(6)
triggerall = command = "cyclone_a"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger3 = stateno = 6301
trigger4 = stateno = 6302
trigger5 = stateno = 6303
trigger6 = stateno = 6304
trigger7 = stateno = 6305
trigger8 = stateno = 6306
trigger9 = stateno = 6307
trigger10 = stateno = 6308
trigger11 = stateno = 6309
trigger12 = stateno = 6310
trigger13 = stateno = 6311
trigger14 = stateno = 6312

;Cyclops cyclone kick b
[State -1]
type = ChangeState
value = 6411
triggerall = IsHelper(6)
triggerall = command = "cyclone_b"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger3 = stateno = 6301
trigger4 = stateno = 6302
trigger5 = stateno = 6303
trigger6 = stateno = 6304
trigger7 = stateno = 6305
trigger8 = stateno = 6306
trigger9 = stateno = 6307
trigger10 = stateno = 6308
trigger11 = stateno = 6309
trigger12 = stateno = 6310
trigger13 = stateno = 6311
trigger14 = stateno = 6312

;Cyclops cyclone kick c
[State -1]
type = ChangeState
value = 6412
triggerall = IsHelper(6)
triggerall = command = "cyclone_c"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger3 = stateno = 6301
trigger4 = stateno = 6302
trigger5 = stateno = 6303
trigger6 = stateno = 6304
trigger7 = stateno = 6305
trigger8 = stateno = 6306
trigger9 = stateno = 6307
trigger10 = stateno = 6308
trigger11 = stateno = 6309
trigger12 = stateno = 6310
trigger13 = stateno = 6311
trigger14 = stateno = 6312

;|==============|
;|Cyclops basics|
;|==============|

;Cyclops slight punch
[State -1]
type = ChangeState
value = 6300
triggerall = IsHelper(6)
triggerall = command = "x"
triggerall = statetype = S
trigger1 = ctrl = 1

;Cyclops smedium punch
[State -1]
type = ChangeState
value = 6301
triggerall = IsHelper(6)
triggerall = command = "y"
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger2 = MoveContact
trigger3 = stateno = 6302
trigger3 = MoveContact
trigger4 = stateno = 6307
trigger4 = MoveContact
trigger5 = stateno = 6309
trigger5 = MoveContact

;Cyclops sstrong punch
[State -1]
type = ChangeState
value = 6302
triggerall = IsHelper(6)
triggerall = NumProjId(7) = 0
triggerall = command = "z"
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger2 = MoveContact
trigger3 = stateno = 6301
trigger3 = MoveContact
trigger4 = stateno = 6303
trigger4 = MoveContact
trigger5 = stateno = 6304
trigger5 = MoveContact
trigger6 = stateno = 6307
trigger6 = MoveContact
trigger7 = stateno = 6308
trigger7 = MoveContact
trigger8 = stateno = 6310
trigger8 = MoveContact
trigger9 = stateno = 6311
trigger9 = MoveContact

;Cyclops slight kick
[State -1]
type = ChangeState
value = 6303
triggerall = IsHelper(6)
triggerall = command = "a"
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger2 = MoveContact
trigger3 = stateno = 6307
trigger3 = MoveContact

;Cyclops smedium kick
[State -1]
type = ChangeState
value = 6304
triggerall = IsHelper(6)
triggerall = command = "b"
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger2 = MoveContact
trigger3 = stateno = 6301
trigger3 = MoveContact
trigger4 = stateno = 6303
trigger4 = MoveContact
trigger5 = stateno = 6307
trigger5 = MoveContact
trigger6 = stateno = 6308
trigger6 = MoveContact
trigger7 = stateno = 6310
trigger7 = MoveContact

;Cyclops sstrong kick
[State -1]
type = ChangeState
value = 6305
triggerall = IsHelper(6)
triggerall = command = "c"
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger2 = MoveContact
trigger3 = stateno = 6301
trigger3 = MoveContact
trigger4 = stateno = 6302
trigger4 = MoveContact
trigger5 = stateno = 6303
trigger5 = MoveContact
trigger6 = stateno = 6304
trigger6 = MoveContact
trigger7 = stateno = 6307
trigger7 = MoveContact
trigger8 = stateno = 6308
trigger8 = MoveContact
trigger9 = stateno = 6309
trigger9 = MoveContact
trigger10 = stateno = 6310
trigger10 = MoveContact
trigger11 = stateno = 6311
trigger11 = MoveContact

;Cyclops sstrong kick continued
[State -1]
type = ChangeState
value = 6306
triggerall = IsHelper(6)
triggerall = command = "c"
trigger1 = stateno = 6305
trigger1 = MoveContact
ctrl = 1

;Cyclops clight punch
[State -1]
type = ChangeState
value = 6307
triggerall = IsHelper(6)
triggerall = command = "x"
triggerall = statetype = C
trigger1 = ctrl = 1

;Cyclops cmedium punch
[State -1]
type = ChangeState
value = 6308
triggerall = IsHelper(6)
triggerall = command = "y"
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger2 = MoveContact
trigger3 = stateno = 6303
trigger3 = MoveContact
trigger4 = stateno = 6307
trigger4 = MoveContact
trigger5 = stateno = 6310
trigger5 = MoveContact

;Cyclops cstrong punch
[State -1]
type = ChangeState
value = 6309
triggerall = IsHelper(6)
triggerall = NumHelper(7) = 0
triggerall = command = "z"
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger2 = MoveContact
trigger3 = stateno = 6301
trigger3 = MoveContact
trigger4 = stateno = 6303
trigger4 = MoveContact
trigger5 = stateno = 6304
trigger5 = MoveContact
trigger6 = stateno = 6307
trigger6 = MoveContact
trigger7 = stateno = 6308
trigger7 = MoveContact
trigger8 = stateno = 6310
trigger8 = MoveContact
trigger9 = stateno = 6311
trigger9 = MoveContact

;Cyclops clight kick
[State -1]
type = ChangeState
value = 6310
triggerall = IsHelper(6)
triggerall = command = "a"
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger2 = MoveContact
trigger3 = stateno = 6307
trigger3 = MoveContact

;Cyclops cmedium kick
[State -1]
type = ChangeState
value = 6311
triggerall = IsHelper(6)
triggerall = command = "b"
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger2 = MoveContact
trigger3 = stateno = 6301
trigger3 = MoveContact
trigger4 = stateno = 6303
trigger4 = MoveContact
trigger5 = stateno = 6307
trigger5 = MoveContact
trigger6 = stateno = 6308
trigger6 = MoveContact
trigger7 = stateno = 6310
trigger7 = MoveContact

;Cyclops cstrong kick
[State -1]
type = ChangeState
value = 6312
triggerall = IsHelper(6)
triggerall = command = "c"
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 6300
trigger2 = MoveContact
trigger3 = stateno = 6301
trigger3 = MoveContact
trigger4 = stateno = 6302
trigger4 = MoveContact
trigger5 = stateno = 6303
trigger5 = MoveContact
trigger6 = stateno = 6304
trigger6 = MoveContact
trigger7 = stateno = 6307
trigger7 = MoveContact
trigger8 = stateno = 6308
trigger8 = MoveContact
trigger9 = stateno = 6309
trigger9 = MoveContact
trigger10 = stateno = 6310
trigger10 = MoveContact
trigger11 = stateno = 6311
trigger11 = MoveContact

;Cyclops alight punch
[State -1]
type = ChangeState
value = 6313
triggerall = IsHelper(6)
triggerall = command = "x"
triggerall = statetype = A
trigger1 = ctrl = 1

;Cyclops amedium punch
[State -1]
type = ChangeState
value = 6314
triggerall = IsHelper(6)
triggerall = command = "y"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 6313
trigger2 = MoveContact
trigger3 = stateno = 6315
trigger3 = MoveContact

;Cyclops astrong punch 2
[State -1]
type = ChangeState
value = 6316
triggerall = IsHelper(6)
triggerall = command = "down_z"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 6313
trigger2 = MoveContact
trigger3 = stateno = 6314
trigger3 = MoveContact
trigger4 = stateno = 6417
trigger4 = MoveContact
trigger5 = stateno = 6318
trigger5 = MoveContact

;Cyclops astrong punch
[State -1]
type = ChangeState
value = 6315
triggerall = IsHelper(6)
triggerall = command = "z"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 6313
trigger2 = MoveContact
trigger3 = stateno = 6314
trigger3 = MoveContact
trigger4 = stateno = 6317
trigger4 = MoveContact
trigger5 = stateno = 6318
trigger5 = MoveContact

;Cyclops alight kick
[State -1]
type = ChangeState
value = 6317
triggerall = IsHelper(6)
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 6313
trigger2 = MoveContact

;Cyclops amedium kick
[State -1]
type = ChangeState
value = 6318
triggerall = IsHelper(6)
triggerall = command = "b"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 6313
trigger2 = MoveContact
trigger3 = stateno = 6314
trigger3 = MoveContact
trigger4 = stateno = 6317
trigger4 = MoveContact

;Cyclops astrong kick 2
[State -1]
type = ChangeState
value = 6320
triggerall = IsHelper(6)
triggerall = command = "down_c"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 6313
trigger2 = MoveContact
trigger3 = stateno = 6314
trigger3 = MoveContact
trigger4 = stateno = 6315
trigger4 = MoveContact
trigger5 = stateno = 6319
trigger5 = MoveContact
trigger6 = stateno = 6317
trigger6 = MoveContact
trigger7 = stateno = 6318
trigger7 = MoveContact

;Cyclops astrong kick
[State -1]
type = ChangeState
value = 6319
triggerall = IsHelper(6)
triggerall = command = "c"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 6313
trigger2 = MoveContact
trigger3 = stateno = 6314
trigger3 = MoveContact
trigger4 = stateno = 6315
trigger4 = MoveContact
trigger5 = stateno = 6317
trigger5 = MoveContact
trigger6 = stateno = 6318
trigger6 = MoveContact

;Cyclops taunt
[State -1]
type = ChangeState
value = 6321
triggerall = IsHelper(6)
triggerall = statetype = S
triggerall = command = "start"
trigger1 = ctrl = 1

;Cyclops run forwards
[State -1]
type = ChangeState
value = 100
triggerall = IsHelper(6)
triggerall = command = "FF"
triggerall = statetype = S
trigger1 = ctrl = 1

;Cyclops run backwards
[State -1]
type = ChangeState
value = 105
triggerall = IsHelper(6)
triggerall = command = "BB"
triggerall = statetype = S
trigger1 = ctrl = 1

;|======|
;|Others|
;|======|

;State Timer
[State -1]
type = varadd
trigger1 = var(11) > 0
var(11) = -1

;Grav Remover
[State -1]
type = varset
triggerall = p2stateno = 1015
trigger1 = numhelper(3) = 1
trigger2 = numhelper(4) = 1
trigger3 = numhelper(5) = 1
trigger4 = numhelper(6) = 1
var(12) = 1

;Grav Remover 2
[State -1]
type = varset
triggerall = var(12) = 1
trigger1 = numhelper(3) = 0
trigger2 = numhelper(4) = 0
trigger3 = numhelper(5) = 0
trigger4 = numhelper(6) = 0
var(12) = 0

;Grav Timer
[State -1]
type = varadd
trigger1 = var(15) > 0
var(15) = -1

;Partner Change Timer
[State -1]
type = varadd
trigger1 = var(13) > 0
var(13) = -1

;Body activator
[State -1]
type = Helper
trigger1 = var(50) = 2
trigger1 = numhelper(15) = 0
trigger1 = Anim != 0
trigger1 = roundstate != [3, 4]
helpertype = Normal
name = "body"
ID = 15
pos = 0, 0
postype = P1
facing = 0
stateno = 4000
keyctrl = 0
ownpal = 1
supermovetime = 0
pausemovetime = 0

;Armor activator
[State -1]
type = null;Helper
trigger1 = var(50) = 2
trigger1 = NumHelper(17) = 0
trigger1 = RoundState != [3, 4]
helpertype = Normal
name = "armor"
ID = 17
pos = 0, 0
postype = P1
facing = 0
stateno = 4002
keyctrl = 0
ownpal = 0
supermovetime = 0
pausemovetime = 0

;Partner Remover
[State -1]
type = varadd
trigger1 = var(50) = 1
trigger1 = var(18) > 0
var(18) = -1

;Cyclops Remover
[State -1]
type = changestate
value = 6002
triggerall = var(50) = 1
triggerall = stateno != 6002
triggerall = stateno != 6003
trigger1 = var(18) = 0
trigger2 = var(19) = 0
trigger3 = RoundState = [3, 4]

;Cyclops taunt voice randomizer
[State -1]
type = VarRandom
trigger1 = IsHelper(6)
v = 15
range = 1000