;Char: Megaman - MvsC style      -      feito por/by: DG 
; *e-mail:
;  .info@dgmugen.com.br ou dg_mugen@yahoo.com.br
; *site:
;  .http://dgmugen.com.br
;--------------------------------------------------------------------------
[Defaults] ;to work in Linux - thanks ixnay
command.time = 15
command.buffer.time = 1

;-| 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.
;
[Command] 
name = "Rush_Kamikaze"
command = ~F, DF, D, DB, B, a+b 
time = 25

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

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

[Command]
name = "Multi_Attacks_XYZ"
command = ~F, D, DF, x+y

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

[Command]
name = "Multi_Attacks_XYZ"
command = ~F, D, DF, x+z

[Command]
name = "Beat_Plane_ABC"
command = ~D, DB, B, a+b

[Command]
name = "Beat_Plane_ABC"
command = ~D, DB, B, b+c

[Command]
name = "Beat_Plane_ABC"
command = ~D, DB, B, a+c

[Command]
name = "Rush_Drill_ABC"
command = ~D, DF, F, a+b

[Command]
name = "Rush_Drill_ABC"
command = ~D, DF, F, b+c

[Command]
name = "Rush_Drill_ABC"
command = ~D, DF, F, a+c

[Command]
name = "Hyper_Megaman_XYZ"
command = ~D, DF, F, x+y

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

[Command]
name = "Hyper_Megaman_XYZ"
command = ~D, DF, F, x+z

;-| Special Motions |------------------------------------------------------
[Command] 
name = "coil-rush"
command = ~F, DF, D, DB, B, a  
time = 25

[Command] 
name = "normal_mode"
command = ~F, DF, D, DB, B, x  
time = 25

[Command] 
name = "jet-rush_mode"
command = ~F, DF, D, DB, B, y 
time = 25

[Command] 
name = "super-adaptor_mode"
command = ~F, DF, D, DB, B, z 
time = 25

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

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

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

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

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

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

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

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

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

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

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

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

[Command]
name = "Mega-Upper_X"
command = ~F, D, DF, x

[Command]
name = "Mega-Upper_Y"
command = ~F, D, DF, y

[Command]
name = "Mega-Upper_Z"
command = ~F, D, DF, z

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

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

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

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

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

[Command]
name = "rroll_zc"
command = ~B, DB, D, 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

[Command]
name = "throw_xyz"
command = x+y
time = 5

[Command]
name = "throw_xyz"
command = x+z
time = 5

[Command]
name = "throw_xyz"
command = y+z
time = 5

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

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

[Command]
name = "fwd_y"
command = /$F,y
time = 1

[Command]
name = "fwd_z"
command = /$F,z
time = 1

;-| Hold Button |--------------------------------------------------------------
[Command]
name = "hold_z"
command = /z

;-| 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 = "super_jump_up"
command = $D, $U
time = 8

[Command]      
name = "parry"
command = ~F
time = 2

[Command]      
name = "parry-crouch"
command = ~D
time = 2

[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

;---------------------------------------------------------------------------
; 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]

;===========================================================================
;---------------------------------------------------------------------------
;Multi Attacks - XYZ
[State -1, Multi Attacks - XYZ]
type = ChangeState
value = 4100
triggerall = var(35) != 3
triggerall = !Win;KO
triggerall = command = "Multi_Attacks_XYZ"
triggerall = power >= 1000
triggerall = var(33) = 1
trigger1 = statetype = S ;|| statetype = A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = NumHelper(223)
trigger4 = stateno = 220 && (Helper(223), movecontact)
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 250 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9 = stateno = 410 && movecontact
trigger10 = NumHelper(223)
trigger10 = stateno = 420 && (Helper(223), movecontact)
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440 && movecontact
trigger13 = stateno = 450 && movecontact
;trigger23 = stateno = 1000 && movecontact
;trigger24 = stateno = 1001 && movecontact
;trigger25 = stateno = 1002 && movecontact
trigger14 = stateno = 1500 && movecontact
trigger15 = stateno = 1501 && movecontact
trigger16 = stateno = 1502 && movecontact
trigger17 = stateno = 1600 && movecontact
trigger18 = stateno = 1601 && movecontact
trigger19 = stateno = 1602 && movecontact
;trigger20 = NumHelper(1700)
;trigger20 = stateno = 220 && (Helper(1700), movecontact) ;without hand - no super
;trigger21 = NumHelper(1702)
;trigger21 = stateno = 220 && (Helper(1702), movecontact)
;trigger22 = NumHelper(1700)
;trigger22 = stateno = 420 && (Helper(1700), movecontact)
;trigger23 = NumHelper(1702)
;trigger23 = stateno = 420 && (Helper(1702), movecontact)


;---------------------------------------------------------------------------
;Beat Plane - ABC
[State -1, Beat Plane - ABC]
type = ChangeState
value = 3200
triggerall = NumHelper(7000) > 0 ;Disable because Jet Rush mode
triggerall = Helper(7000), StateNo != [7240, 7241] ;Disable because Jet Rush mode
triggerall = !Win;KO
triggerall = command = "Beat_Plane_ABC"
triggerall = power >= 1000
triggerall = var(33) = 0
trigger1 = statetype = S || statetype = A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = NumHelper(223)
trigger4 = stateno = 220 && (Helper(223), movecontact)
trigger5 = NumHelper(227)
trigger5 = stateno = 220 && (Helper(227), movecontact)
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = NumHelper(223)
trigger11 = stateno = 420 && (Helper(223), movecontact)
trigger12 = NumHelper(227)
trigger12 = stateno = 420 && (Helper(227), movecontact)
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
trigger16 = stateno = 600 && movecontact
trigger17 = stateno = 610 && movecontact
trigger18 = NumHelper(223)
trigger18 = stateno = 620 && (Helper(223), movecontact)
trigger19 = NumHelper(227)
trigger19 = stateno = 620 && (Helper(227), movecontact)
trigger20 = stateno = 630 && movecontact
trigger21 = stateno = 640 && movecontact
trigger22 = stateno = 650 && movecontact
trigger23 = stateno = 1000 && movecontact
trigger24 = stateno = 1001 && movecontact
trigger25 = stateno = 1002 && movecontact
trigger26 = stateno = 1120 && movecontact
trigger27 = stateno = 1121 && movecontact
trigger28 = stateno = 1122 && movecontact
trigger29 = stateno = 1130 && movecontact
trigger30 = stateno = 1131 && movecontact
trigger31 = stateno = 1132 && movecontact
trigger32 = stateno = 1140 && movecontact
trigger33 = stateno = 1141 && movecontact
trigger34 = stateno = 1142 && movecontact
trigger35 = stateno = 1200 && movecontact
trigger36 = stateno = 1210 && movecontact
trigger37 = stateno = 1220 && movecontact


;---------------------------------------------------------------------------
;Rush Drill - ABC
[State -1, Rush Drill - ABC]
type = ChangeState
value = 3100
triggerall = NumHelper(7000) > 0 ;Disable because Rush Coil mode and Jet Rush
triggerall = Helper(7000), StateNo != [7260, 7261] ;Disable because Rush Coil mode
triggerall = Helper(7000), StateNo != [7240, 7241] ;Disable because Jet Rush mode
triggerall = var(35) != 3
triggerall = !Win;KO
triggerall = command = "Rush_Drill_ABC"
triggerall = power >= 1000
triggerall = var(33) = 0
trigger1 = statetype = S && statetype !=A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = NumHelper(223)
trigger4 = stateno = 220 && (Helper(223), movecontact)
trigger5 = NumHelper(227)
trigger5 = stateno = 220 && (Helper(227), movecontact)
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = NumHelper(223)
trigger11 = stateno = 420 && (Helper(223), movecontact)
trigger12 = NumHelper(227)
trigger12 = stateno = 420 && (Helper(227), movecontact)
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
;trigger23 = stateno = 1000 && movecontact
;trigger24 = stateno = 1001 && movecontact
;trigger25 = stateno = 1002 && movecontact
trigger16 = stateno = 1120 && movecontact
trigger17 = stateno = 1121 && movecontact
trigger18 = stateno = 1122 && movecontact
trigger19 = stateno = 1130 && movecontact
trigger20 = stateno = 1131 && movecontact
trigger21 = stateno = 1132 && movecontact
trigger22 = stateno = 1140 && movecontact
trigger23 = stateno = 1141 && movecontact
trigger24 = stateno = 1142 && movecontact
trigger25 = stateno = 1200 && movecontact
trigger26 = stateno = 1210 && movecontact
trigger27 = stateno = 1220 && movecontact


;---------------------------------------------------------------------------
;Super Slash - XYZ
[State -1, Super Slash - XYZ]
type = ChangeState
value = 4000
triggerall = var(35) != 3
triggerall = !Win;KO
triggerall = command = "Hyper_Megaman_XYZ"
triggerall = power >= 1000
triggerall = var(33) = 1
trigger1 = statetype = S ;|| statetype = A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = NumHelper(223)
trigger4 = stateno = 220 && (Helper(223), movecontact)
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 250 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9 = stateno = 410 && movecontact
trigger10 = NumHelper(223)
trigger10 = stateno = 420 && (Helper(223), movecontact)
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440 && movecontact
trigger13 = stateno = 450 && movecontact
;trigger23 = stateno = 1000 && movecontact
;trigger24 = stateno = 1001 && movecontact
;trigger25 = stateno = 1002 && movecontact
trigger14 = stateno = 1500 && movecontact
trigger15 = stateno = 1501 && movecontact
trigger16 = stateno = 1502 && movecontact
trigger17 = stateno = 1600 && movecontact
trigger18 = stateno = 1601 && movecontact
trigger19 = stateno = 1602 && movecontact
;trigger20 = NumHelper(1700)
;trigger20 = stateno = 220 && (Helper(1700), movecontact)
;trigger21 = NumHelper(1702)
;trigger21 = stateno = 220 && (Helper(1702), movecontact)
;trigger22 = NumHelper(1700)
;trigger22 = stateno = 420 && (Helper(1700), movecontact)
;trigger23 = NumHelper(1702)
;trigger23 = stateno = 420 && (Helper(1702), movecontact)


;---------------------------------------------------------------------------
;Air Super Slash - XYZ
[State -1, Super Slash - XYZ]
type = ChangeState
value = 4050
triggerall = var(35) != 3
triggerall = !Win;KO
triggerall = command = "Hyper_Megaman_XYZ"
triggerall = power >= 1000
triggerall = var(33) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = NumHelper(223)
trigger4 = stateno = 620 && (Helper(223), movecontact)
trigger5 = stateno = 630 && movecontact
trigger6 = stateno = 640 && movecontact
trigger7 = stateno = 650 && movecontact
trigger8 = stateno = 1000 && movecontact
trigger9 = stateno = 1001 && movecontact
trigger10 = stateno = 1002 && movecontact
trigger11 = stateno = 1050 && movecontact
trigger12 = stateno = 1051 && movecontact
trigger13 = stateno = 1052 && movecontact
trigger14 = stateno = 1550 && movecontact
trigger15 = stateno = 1551 && movecontact
trigger16 = stateno = 1552 && movecontact
trigger17 = stateno = 1750 && movecontact
trigger18 = stateno = 1751 && movecontact
trigger19 = stateno = 1752 && movecontact
trigger20 = stateno = 1800 && movecontact
trigger21 = stateno = 1801 && movecontact 
trigger22 = stateno = 1802 && movecontact 
;trigger23 = NumHelper(1700)
;trigger23 = stateno = 620 && (Helper(1700), movecontact)
;trigger24 = NumHelper(1702)
;trigger24 = stateno = 620 && (Helper(1702), movecontact)


;---------------------------------------------------------------------------
;Hyper Megaman - XYZ
[State -1, Hyper Megaman - XYZ]
type = ChangeState
value = 3000
triggerall = NumHelper(7000) > 0 ;Disable because Rush Coil mode and Jet Rush
triggerall = Helper(7000), StateNo != [7260, 7261] ;Disable because Rush Coil mode
triggerall = Helper(7000), StateNo != [7240, 7241] ;Disable because Jet Rush mode
triggerall = var(35) != 3
triggerall = !Win;KO
triggerall = command = "Hyper_Megaman_XYZ"
triggerall = power >= 1000
triggerall = var(33) = 0
trigger1 = statetype = S || statetype = A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = NumHelper(223)
trigger4 = stateno = 220 && (Helper(223), movecontact)
trigger5 = NumHelper(227)
trigger5 = stateno = 220 && (Helper(227), movecontact)
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = NumHelper(223)
trigger11 = stateno = 420 && (Helper(223), movecontact)
trigger12 = NumHelper(227)
trigger12 = stateno = 420 && (Helper(227), movecontact)
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
trigger16 = stateno = 600 && movecontact
trigger17 = stateno = 610 && movecontact
trigger18 = NumHelper(223)
trigger18 = stateno = 620 && (Helper(223), movecontact)
trigger19 = NumHelper(227)
trigger19 = stateno = 620 && (Helper(227), movecontact)
trigger20 = stateno = 630 && movecontact
trigger21 = stateno = 640 && movecontact
trigger22 = stateno = 650 && movecontact
trigger23 = stateno = 1000 && movecontact
trigger24 = stateno = 1001 && movecontact
trigger25 = stateno = 1002 && movecontact
trigger26 = stateno = 1120 && movecontact
trigger27 = stateno = 1121 && movecontact
trigger28 = stateno = 1122 && movecontact
trigger29 = stateno = 1130 && movecontact
trigger30 = stateno = 1131 && movecontact
trigger31 = stateno = 1132 && movecontact
trigger32 = stateno = 1140 && movecontact
trigger33 = stateno = 1141 && movecontact
trigger34 = stateno = 1142 && movecontact
trigger35 = stateno = 1200 && movecontact
trigger36 = stateno = 1210 && movecontact
trigger37 = stateno = 1220 && movecontact


;---------------------------------------------------------------------------
;Coil Rush Mode to Normal Mode
[State -1, Coil Rush Mode to Normal Mode]
type = ChangeState
value = 2105
triggerall = NumHelper(7000) > 0
triggerall = Helper(7000), Anim = 7270
triggerall = var(33) = 0
triggerall = command = "normal_mode"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Coil Rush
[State -1, Coil Rush]
type = ChangeState
value = 2100
triggerall = var(33) = 0
triggerall = command = "coil-rush"
triggerall = !(Helper, Anim = 7241)
triggerall = !(Helper, Anim = 7270) && !(Helper, Anim = 7271) ;coil
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Jet Rush start Mode to Normal Mode
[State -1, Jet Rush start Mode to Normal Mode]
type = ChangeState
value = 2006
triggerall = StateNo != [2000, 2005]
triggerall = NumHelper(7000) > 0
triggerall = Helper(7000), Anim = 7241
triggerall = var(33) = 0
triggerall = command = "normal_mode"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Normal Mode
[State -1, Normal Mode]
type = ChangeState
value = 6029
triggerall = var(33) = 1
triggerall = command = "normal_mode"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Jet Rush Mode
[State -1, Jet Rush Mode]
type = ChangeState
value = ifelse(var(33) = 1, 2003, 2000) ;1310
triggerall = var(35) != 3
triggerall = NumHelper(7000) > 0
triggerall = !(Helper, Anim = 7241)
;triggerall = !(Helper, Anim = 7270) && !(Helper, Anim = 7271) ;coil
;triggerall = var(33) = 0
triggerall = command = "jet-rush_mode"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;S.Adaptor Mode
[State -1, S.Adaptor Mode]
type = ChangeState
value = 6028
triggerall = var(35) != 3
triggerall = var(33) = 0
triggerall = command = "super-adaptor_mode"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Air Mega Upper - X (S.Adapt Mode)
[State -1, Air Mega Upper - X (S.Adapt Mode)]
type = ChangeState
value = 1050
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "Mega-Upper_X"
triggerall = var(33) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
trigger16 = stateno = 600 && movecontact
trigger17 = stateno = 610 && movecontact
trigger18 = stateno = 620 && movecontact
trigger19 = stateno = 625 && movecontact
trigger20 = stateno = 630 && movecontact
trigger21 = stateno = 640 && movecontact
trigger22 = stateno = 650 && movecontact

;---------------------------------------------------------------------------
;Air Mega Upper - Y (S.Adapt Mode)
[State -1, Air Mega Upper - Y (S.Adapt Mode)]
type = ChangeState
value = 1051
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "Mega-Upper_Y"
triggerall = var(33) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
trigger16 = stateno = 600 && movecontact
trigger17 = stateno = 610 && movecontact
trigger18 = stateno = 620 && movecontact
trigger19 = stateno = 625 && movecontact
trigger20 = stateno = 630 && movecontact
trigger21 = stateno = 640 && movecontact
trigger22 = stateno = 650 && movecontact

;---------------------------------------------------------------------------
;Air Mega Upper - Z (S.Adapt Mode)
[State -1, Air Mega Upper - Z (S.Adapt Mode)]
type = ChangeState
value = 1052
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "Mega-Upper_Z"
triggerall = var(33) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
trigger16 = stateno = 600 && movecontact
trigger17 = stateno = 610 && movecontact
trigger18 = stateno = 620 && movecontact
trigger19 = stateno = 625 && movecontact
trigger20 = stateno = 630 && movecontact
trigger21 = stateno = 640 && movecontact
trigger22 = stateno = 650 && movecontact


;---------------------------------------------------------------------------
;Mega Upper - X
[State -1, Mega Upper - X]
type = ChangeState
value = 1000
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "Mega-Upper_X"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Mega Upper - Y
[State -1, Mega Upper - Y]
type = ChangeState
value = 1001
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "Mega-Upper_Y"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Mega Upper - Z
[State -1, Mega Upper - Z]
type = ChangeState
value = 1002
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "Mega-Upper_Z"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Air Dash Kick A
[State -1, Air Dash Kick A]
type = ChangeState
value = 1800
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "air_dash_kick_A"
triggerall = var(33) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 625 && movecontact
trigger6 = stateno = 630 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

;---------------------------------------------------------------------------
;Air Dash Kick B
[State -1, Air Dash Kick B]
type = ChangeState
value = 1801
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "air_dash_kick_B"
triggerall = var(33) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 625 && movecontact
trigger6 = stateno = 630 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

;---------------------------------------------------------------------------
;Air Dash Kick C
[State -1, Air Dash Kick C]
type = ChangeState
value = 1802
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "air_dash_kick_C"
triggerall = var(33) = 1
trigger1 = statetype = A 
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 625 && movecontact
trigger6 = stateno = 630 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact


;---------------------------------------------------------------------------
;Dash Attack X
[State -1, Dash Attack X]
type = ChangeState
value = 1750
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "choose_weapon_A"
triggerall = var(33) = 1
trigger1 = statetype = S || statetype = A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
trigger16 = stateno = 600 && movecontact
trigger17 = stateno = 610 && movecontact
trigger18 = stateno = 620 && movecontact
trigger19 = stateno = 625 && movecontact
trigger20 = stateno = 630 && movecontact
trigger21 = stateno = 640 && movecontact
trigger22 = stateno = 650 && movecontact

;---------------------------------------------------------------------------
;Dash Attack Y
[State -1, Dash Attack Y]
type = ChangeState
value = 1751
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "choose_weapon_B"
triggerall = var(33) = 1
trigger1 = statetype = S || statetype = A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
trigger16 = stateno = 600 && movecontact
trigger17 = stateno = 610 && movecontact
trigger18 = stateno = 620 && movecontact
trigger19 = stateno = 625 && movecontact
trigger20 = stateno = 630 && movecontact
trigger21 = stateno = 640 && movecontact
trigger22 = stateno = 650 && movecontact

;---------------------------------------------------------------------------
;Dash Attack Z
[State -1, Dash Attack Z]
type = ChangeState
value = 1752
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "choose_weapon_C"
triggerall = var(33) = 1
trigger1 = statetype = S || statetype = A 
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
trigger16 = stateno = 600 && movecontact
trigger17 = stateno = 610 && movecontact
trigger18 = stateno = 620 && movecontact
trigger19 = stateno = 625 && movecontact
trigger20 = stateno = 630 && movecontact
trigger21 = stateno = 640 && movecontact
trigger22 = stateno = 650 && movecontact


;---------------------------------------------------------------------------
;Striker Tango X
[State -1, Striker Tango X]
type = ChangeState
value = 1600
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "striker_beat"
triggerall = var(33) = 1
trigger1 = statetype = S 
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Striker Tango Y
[State -1, Striker Tango Y]
type = ChangeState
value = 1601
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "striker_fliptop"
triggerall = var(33) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Striker Tango Z
[State -1, Striker Tango Z]
type = ChangeState
value = 1602
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "striker_auto"
triggerall = var(33) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact


;---------------------------------------------------------------------------
;Striker Beat
[State -1, Striker Beat]
type = ChangeState
value = 1200
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "striker_beat"
triggerall = var(33) = 0
trigger1 = statetype = S  
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Striker FlipTop
[State -1, Striker FlipTop]
type = ChangeState
value = 1210
triggerall = NumHelper(1101) < 1 ;FlipTop - weapon choice
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "striker_fliptop"
triggerall = var(33) = 0
trigger1 = statetype = S 
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Striker Auto
[State -1, Striker Auto]
type = ChangeState
value = 1220
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1201) < 1
triggerall = NumHelper(1211) < 1
triggerall = NumHelper(1221) < 1
triggerall = NumHelper(1610) < 1
triggerall = NumHelper(1611) < 1
triggerall = NumHelper(1612) < 1
triggerall = command = "striker_auto"
triggerall = var(33) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact


;---------------------------------------------------------------------------
;Choose Weapon - A
[State -1, Choose Weapon - A]
type = ChangeState
value = 1100
triggerall = NumHelper(1211) < 1 ;FlipTop - striker
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1101) < 1 ;|| (NumHelper(1101) > 0 && Time = 105)
triggerall = command = "choose_weapon_A"
triggerall = var(33) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Choose Weapon - B
[State -1, Choose Weapon - B]
type = ChangeState
value = 1100
triggerall = NumHelper(1211) < 1 ;FlipTop - striker
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1101) < 1 ;|| (NumHelper(1101) > 0 && Time = 105)
triggerall = command = "choose_weapon_B"
triggerall = var(33) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Choose Weapon - C
[State -1, Choose Weapon - C]
type = ChangeState
value = 1100
triggerall = NumHelper(1211) < 1 ;FlipTop - striker
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(1101) < 1 ;|| (NumHelper(1101) > 0 && Time = 105)
triggerall = command = "choose_weapon_C"
triggerall = var(33) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact


;---------------------------------------------------------------------------
;Use Weapon - X (A)
[State -1, Use Weapon - X]
type = ChangeState
value = 1130 + var(11) + ifelse(NumHelper(1145) > 0, 3, 0)
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = (var(11) = -10) && (NumHelper(1125) < 1) || (var(11) = 0) && (NumHelper(1130) < 1) || (var(11) = 10) && ((NumHelper(1145) > 0 && var(16) = 1) || (NumHelper(1145) < 1))
triggerall = command = "use_weapon_X"
triggerall = var(33) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
;---------------------------------------------------------------------------
;Use Weapon - X (Rock Ball fix)
[State -1, Use Weapon - X]
type = ChangeState
value = 1130 + var(11) 
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = (var(11) = -10) 
triggerall = NumHelper(1125) > 0
triggerall = Helper(1125), StateNo = 1125 
triggerall = command = "use_weapon_X"
triggerall = var(33) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Use Weapon - Y
[State -1, Use Weapon - Y]
type = ChangeState
value = 1131 + var(11) + ifelse(NumHelper(1145) > 0, 2, 0)
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = (var(11) = -10) && (NumHelper(1125) < 1) || (var(11) = 0) && (NumHelper(1130) < 1) || (var(11) = 10) && ((NumHelper(1145) > 0 && var(16) = 1) || (NumHelper(1145) < 1))
triggerall = command = "use_weapon_Y"
triggerall = var(33) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
;---------------------------------------------------------------------------
;Use Weapon - Y (Rock Ball fix)
[State -1, Use Weapon - Y]
type = ChangeState
value = 1131 + var(11) 
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = (var(11) = -10) 
triggerall = NumHelper(1125) > 0
triggerall = Helper(1125), StateNo = 1125 
triggerall = command = "use_weapon_Y"
triggerall = var(33) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;Use Weapon - Z
[State -1, Use Weapon - Z]
type = ChangeState
value = 1132 + var(11) + ifelse(NumHelper(1145) > 0, 1, 0)
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = (var(11) = -10) && (NumHelper(1125) < 1) || (var(11) = 0) && (NumHelper(1130) < 1) || (var(11) = 10) && ((NumHelper(1145) > 0 && var(16) = 1) || (NumHelper(1145) < 1))
triggerall = command = "use_weapon_Z"
triggerall = var(33) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact
;---------------------------------------------------------------------------
;Use Weapon - Z (Rock Ball fix)
[State -1, Use Weapon - Z]
type = ChangeState
value = 1132 + var(11) 
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = (var(11) = -10) 
triggerall = NumHelper(1125) > 0
triggerall = Helper(1125), StateNo = 1125 
triggerall = command = "use_weapon_Z"
triggerall = var(33) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact


;---------------------------------------------------------------------------
;S.Adaptor Mode - Air Slash X
[State -1, Air Slash X]
type = ChangeState
value = 1550
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "use_weapon_X"
triggerall = var(33) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 625 && movecontact
trigger6 = stateno = 630 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

;---------------------------------------------------------------------------
;S.Adaptor Mode - Air Slash Y
[State -1, Air Slash Y]
type = ChangeState
value = 1551
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "use_weapon_Y"
triggerall = var(33) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 625 && movecontact
trigger6 = stateno = 630 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

;---------------------------------------------------------------------------
;S.Adaptor Mode - Air Slash Z
[State -1, Air Slash Z]
type = ChangeState
value = 1552
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "use_weapon_Z"
triggerall = var(33) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 625 && movecontact
trigger6 = stateno = 630 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

;---------------------------------------------------------------------------
;S.Adaptor Mode - Slash X
[State -1, Slash X]
type = ChangeState
value = 1500
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "use_weapon_X"
triggerall = var(33) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;S.Adaptor Mode - Slash Y
[State -1, Slash Y]
type = ChangeState
value = 1501
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "use_weapon_Y"
triggerall = var(33) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact

;---------------------------------------------------------------------------
;S.Adaptor Mode - Slash Z
[State -1, Slash Z]
type = ChangeState
value = 1502
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "use_weapon_Z"
triggerall = var(33) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 420 && movecontact
trigger12 = stateno = 425 && movecontact
trigger13 = stateno = 430 && movecontact
trigger14 = stateno = 440 && movecontact
trigger15 = stateno = 450 && movecontact


;---------------------------------------------------------------------------
;Recovery Roll - X/A (by Soldats)
[State -1, Falling]
type = VarSet
triggerall = command = "rroll_xa"
triggerall = alive = 1
trigger1 = (stateno = 5050) || (stateno = 5071) 
v = 24
value = 1

[State -1, Rolling]
type = ChangeState
value = 1480
triggerall = Var(24) = 1
trigger1 = (Pos Y >= 0) && (Vel Y > 0)

;---------------------------------------------------------------------------
;Recovery Roll - Y/B (by Soldats)
[State -1, Falling]
type = VarSet
triggerall = command = "rroll_yb"
triggerall = alive = 1
trigger1 = (stateno = 5050) || (stateno = 5071) 
v = 25
value = 1

[State -1, Rolling]
type = ChangeState
value = 1485
triggerall = Var(25) = 1
trigger1 = (Pos Y >= 0) && (Vel Y > 0)

;---------------------------------------------------------------------------
;Recovery Roll - Z/C (by Soldats)
[State -1, Falling]
type = VarSet
triggerall = command = "rroll_zc"
triggerall = alive = 1
trigger1 = (stateno = 5050) || (stateno = 5071) 
v = 26
value = 1

[State -1, Rolling]
type = ChangeState
value = 1490
triggerall = Var(26) = 1
trigger1 = (Pos Y >= 0) && (Vel Y > 0)


;---------------------------------------------------------------------------
;Super Jump Up
[State -1, Super Jump Up]
type = ChangeState
value = 60
triggerall = command = "super_jump_up" && ctrl
trigger1 = statetype = S && statetype != A 
trigger2 = stateno = 10  
;-----------------------------
;Launcher
[State -1, Launcher] ;by GGN
type = ChangeState
value = 60
triggerall = Command = "holdup"
trigger1 = stateno = 250 && movehit

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

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


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


;---------------------------------------------------------------------------
;Guard Push (Standing) ;by Soldats 
[State -1, Guard Push]
type = ChangeState
value = 1400
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "throw_xyz"
triggerall = statetype = S
triggerall = PalNo <= 6
trigger1 = stateno = [150,153]

;---------------------------------------------------------------------------
;Guard Push (Crouching) ;by Soldats 
[State -1, Guard Push]
type = ChangeState
value = 1410
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "throw_xyz"
triggerall = statetype = C
triggerall = PalNo <= 6
trigger1 = stateno = [150,153]

;---------------------------------------------------------------------------
;Guard Push (Air) ;by Soldats 
[State -1, Guard Push]
type = ChangeState
value = 1420
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "throw_xyz"
triggerall = statetype = A
triggerall = PalNo <= 6
trigger1 = stateno = [154,155]

;---------------------------------------------------------------------------
;Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 35 ;> 6

;---------------------------------------------------------------------------
;Stand Medium Punch
[State -1, Stand Medium Punch]
type = ChangeState
value = 210
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact 
trigger3 = stateno = 230 && movecontact 
trigger4 = stateno = 400 && movecontact 
trigger5 = stateno = 430 && movecontact

;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 220
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 230 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 400 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = stateno = 430 && movecontact
trigger9 = stateno = 440 && movecontact
;---------------------------------------------------------------------------
;Stand Strong Punch (Hold Burst)
[State -1, Stand Strong Punch]
type = ChangeState
value = 220
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(229) > 0 ;the same as holding buttom
triggerall = command != "hold_z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 230 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 400 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = stateno = 430 && movecontact
trigger9 = stateno = 440 && movecontact

;---------------------------------------------------------------------------
;Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 230
trigger2 = time > 35 ;> 6
trigger3 = stateno = 200 && movecontact
trigger4 = stateno = 400 && movecontact

;---------------------------------------------------------------------------
;Stand Medium Kick
[State -1, Stand Medium Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact 
trigger3 = stateno = 210 && movecontact 
trigger4 = stateno = 230 && movecontact 
trigger5 = stateno = 400 && movecontact 
trigger6 = stateno = 410 && movecontact 
trigger7 = stateno = 430 && movecontact

;---------------------------------------------------------------------------
;Stand Strong Kick
[State -1, Stand Strong Kick]
type = ChangeState
value = 250
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9 = stateno = 410 && movecontact
trigger10 = stateno = 420 && movecontact
trigger11 = stateno = 425 && movecontact
trigger12 = stateno = 430 && movecontact
trigger13 = stateno = 440 && movecontact

;---------------------------------------------------------------------------
;Crouch Light Punch
[State -1, Crouch Light Punch]
type = ChangeState
value = 400
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400
trigger2 = time > 25 ;> 6

;---------------------------------------------------------------------------
;Crouch Medium Punch
[State -1, Crouch Medium Punch]
type = ChangeState
value = 410
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact 
trigger3 = stateno = 230 && movecontact 
trigger4 = stateno = 400 && movecontact 
trigger5 = stateno = 430 && movecontact

;---------------------------------------------------------------------------
;Crouch Strong Punch
[State -1, Crouch Strong Punch]
type = ChangeState
value = 420
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 230 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 400 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = stateno = 430 && movecontact
trigger9 = stateno = 440 && movecontact
;---------------------------------------------------------------------------
;Crouch Strong Punch (Hold Burst)
[State -1, Crouch Strong Punch]
type = ChangeState
value = 420
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(229) > 0 ;the same as holding buttom
triggerall = command != "hold_z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 230 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 400 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = stateno = 430 && movecontact
trigger9 = stateno = 440 && movecontact

;---------------------------------------------------------------------------
;Crouch Light Kick
[State -1, Crouch Light Kick]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 430
trigger2 = time > 25 ;> 6
trigger3 = stateno = 200 && movecontact
trigger4 = stateno = 400 && movecontact

;---------------------------------------------------------------------------
;Crouch Medium Kick
[State -1, Crouch Medium Kick]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact 
trigger3 = stateno = 210 && movecontact 
trigger4 = stateno = 230 && movecontact 
trigger5 = stateno = 400 && movecontact 
trigger6 = stateno = 410 && movecontact 
trigger7 = stateno = 430 && movecontact

;---------------------------------------------------------------------------
;Crouch Strong Kick
[State -1, Crouch Medium Kick]
type = ChangeState
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = stateno = 225 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 240 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9 = stateno = 410 && movecontact
trigger10 = stateno = 420 && movecontact
trigger11 = stateno = 425 && movecontact
trigger12 = stateno = 430 && movecontact
trigger13 = stateno = 440 && movecontact

;---------------------------------------------------------------------------
;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Medium Punch (neutral)
[State -1, Jump Medium Punch]
type = ChangeState
value = 610
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact 
trigger3 = stateno = 630 && movecontact

;---------------------------------------------------------------------------
;Jump Strong Punch 
[State -1, Jump Medium Punch]
type = ChangeState
value = 620
;triggerall = Pos Y < - 75 
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 640 && movecontact
;---------------------------------------------------------------------------
;Jump Strong Punch (Hold Burst)
[State -1, Jump Medium Punch]
type = ChangeState
value = 620
;triggerall = Pos Y < - 75 
triggerall = NumHelper(1700) < 1 ;Hand Burst helper = 0
triggerall = NumHelper(229) > 0 ;the same as holding buttom
triggerall = command != "hold_z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 640 && movecontact

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

;---------------------------------------------------------------------------
;Jump Medium Kick (neutral)
[State -1, Jump Medium Kick]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact 
trigger3 = stateno = 610 && movecontact 
trigger4 = stateno = 630 && movecontact

;---------------------------------------------------------------------------
;Jump Strong Kick (neutral)
[State -1, Jump Strong Kick]
type = ChangeState
value = 650
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 625 && movecontact
trigger6 = stateno = 630 && movecontact
trigger7 = stateno = 640 && movecontact

;---------------------------------------------------------------------------
;Jump Wall .. Wall Jump (code by VIB)
[State -1, Jump Wall]
type = ChangeState
value = 70;45
triggerall = StateNo != [3000,4999]
triggerall = StateNo != [2000,2009]
triggerall = !IsHelper
triggerall = statetype = A
triggerall = ctrl
triggerall = pos y < -const(movement.airjump.height)
triggerall = prevstateno != 45
trigger1 = command = "holdfwd"
trigger1 = command != "holdback"
trigger1 = BackEdgeBodyDist < 6 ;20
trigger1 = vel x <= 0
trigger2 = command = "holdback"
trigger2 = command != "holdfwd"
trigger2 = FrontEdgeBodyDist < 6 ;20
trigger2 = vel x >= 0


;;---------------------------------------------------------------------------
;;Choose Weapon 
;[State -1, Rock Ball] 
;type = VarSet
;trigger1 = command = "choose_weapon_A"
;v = 9
;value = 0

;[State -1, Tornado Hold] 
;type = VarSet
;trigger1 = command = "choose_weapon_B"
;v = 9
;value = 10

;[State -1, Leaf Shield] 
;type = VarSet
;trigger1 = command = "choose_weapon_C"
;v = 9
;value = 20


;---------------------------------------------------------------------------
;Rush (code by VIB)
;---------------------------------------------------------------------------
[State -1, Var(32) normal]
type     = VarSet
trigger1 = IsHelper(7000)
trigger1 = !(Parent, Anim = 804 && Parent, Stateno = 800)
var(32)   = Parent, Facing

[State -1, Var(32) 800]
type     = VarSet
trigger1 = IsHelper(7000)
trigger1 = (Parent, Anim = 804 && Parent, Stateno = 800)
var(32)   = Parent, Facing * -1

[State -1, Var(31) normal]
type     = VarSet
trigger1 = IsHelper(7000)
var(31)   = Floor(ParentDist X)
;---------------------------------------------------------------------------
