
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;====================< DEFAULT VALUES >====================

[Defaults]
command.time = 15
command.buffer.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"
command = /$F
time = 1
[Command]
name = "holdback"
command = /$B
time = 1
[Command]
name = "holdup"
command = /$U
time = 1
[Command]
name = "holddown"
command = /$D
time = 1


;====================< HOLD BUTTON >====================

[Command]
name = "holda"
command = /a
time = 1
[Command]
name = "holdb"
command = /b
time = 1
[Command]
name = "holdc"
command = /c
time = 1
[Command]
name = "holdx"
command = /x
time = 1
[Command]
name = "holdy"
command = /y
time = 1
[Command]
name = "holdz"
command = /z
time = 1
[Command]
name = "holdstart"
command = /s
time = 1


;====================< DIR >====================

[Command]
name = "fwd"
command = F
time = 1
[Command]
name = "back"
command = B
time = 1
[Command]
name = "up"
command = U
time = 1
[Command]
name = "down"
command = D
time = 1


;====================< RELEASE DIR >====================

[Command]
name = "rlsfwd"
command = ~$F
time = 1
[Command]
name = "rlsback"
command = ~$B
time = 1
[Command]
name = "rlsup"
command = ~$U
time = 1
[Command]
name = "rlsdown"
command = ~$D
time = 1


;====================< RELEASE BUTTON >====================

[Command]
name = "rlsx"
command = ~x
time = 1
[Command]
name = "rlsy"
command = ~y
time = 1
[Command]
name = "rlsz"
command = ~z
time = 1
[Command]
name = "rlsa"
command = ~a
time = 1
[Command]
name = "rlsb"
command = ~b
time = 1
[Command]
name = "rlsc"
command = ~c
time = 1

[Command]
name = "236236pp"
command = ~D, DF, F, D, DF, F, x+y
time = 32
[Command]
name = "236236pp"
command = ~D, DF, F, D, DF, F, y+z
time = 32
[Command]
name = "236236pp"
command = ~D, DF, F, D, DF, F, x+z
time = 32
[Command]
name = "236236pp"
command = ~D, DF, F, D, DF, F, ~x+y
time = 32
[Command]
name = "236236pp"
command = ~D, DF, F, D, DF, F, ~y+z
time = 32
[Command]
name = "236236pp"
command = ~D, DF, F, D, DF, F, ~x+z
time = 32

[Command]
name = "236236kk"
command = ~D, DF, F, D, DF, F, a+b
time = 32
[Command]
name = "236236kk"
command = ~D, DF, F, D, DF, F, b+c
time = 32
[Command]
name = "236236kk"
command = ~D, DF, F, D, DF, F, a+c
time = 32
[Command]
name = "236236kk"
command = ~D, DF, F, D, DF, F, ~a+b
time = 32
[Command]
name = "236236kk"
command = ~D, DF, F, D, DF, F, ~b+c
time = 32
[Command]
name = "236236kk"
command = ~D, DF, F, D, DF, F, ~a+c
time = 32

[Command]
name = "236236k"
command = ~D, DF, F, D, DF, F, a
time = 32
[Command]
name = "236236k"
command = ~D, DF, F, D, DF, F, b
time = 32
[Command]
name = "236236k"
command = ~D, DF, F, D, DF, F, c
time = 32
[Command]
name = "236236k"
command = ~D, DF, F, D, DF, F, ~a
time = 32
[Command]
name = "236236k"
command = ~D, DF, F, D, DF, F, ~b
time = 32
[Command]
name = "236236k"
command = ~D, DF, F, D, DF, F, ~c
time = 32

[Command]
name = "2141236pp"
command = ~D, B, D, F, x+y
time = 32
[Command]
name = "2141236pp"
command = ~D, B, D, F, y+z
time = 32
[Command]
name = "2141236pp"
command = ~D, B, D, F, x+z
time = 32
[Command]
name = "2141236pp"
command = ~D, B, D, F, ~x+y
time = 32
[Command]
name = "2141236pp"
command = ~D, B, D, F, ~y+z
time = 32
[Command]
name = "2141236pp"
command = ~D, B, D, F, ~x+z
time = 32

[Command]
name = "2141236p"
command = ~D, B, D, F, x
time = 32
[Command]
name = "2141236p"
command = ~D, B, D, F, y
time = 32
[Command]
name = "2141236p"
command = ~D, B, D, F, z
time = 32
[Command]
name = "2141236p"
command = ~D, B, D, F, ~x
time = 32
[Command]
name = "2141236p"
command = ~D, B, D, F, ~y
time = 32
[Command]
name = "2141236p"
command = ~D, B, D, F, ~z
time = 32

;-| Special Motions |------------------------------------------------------
[Command]
name = "66pp"
command = ~F,F,x+y
time = 12
[Command]
name = "66pp"
command = ~F,F,y+z
time = 12
[Command]
name = "66pp"
command = ~F,F,x+z
time = 12
[Command]
name = "66pp"
command = ~F,F,~x+y
time = 12
[Command]
name = "66pp"
command = ~F,F,~y+z
time = 12
[Command]
name = "66pp"
command = ~F,F,~x+z
time = 12

[Command]
name = "66p"
command = ~F,F,x
time = 12
[Command]
name = "66p"
command = ~F,F,y
time = 12
[Command]
name = "66p"
command = ~F,F,z
time = 12
[Command]
name = "66p"
command = ~F,F,~x
time = 12
[Command]
name = "66p"
command = ~F,F,~y
time = 12
[Command]
name = "66p"
command = ~F,F,~z
time = 12

[Command]
name = "41236kk"
command = ~B, D, F, a+b
time = 24
[Command]
name = "41236kk"
command = ~B, D, F, b+c
time = 24
[Command]
name = "41236kk"
command = ~B, D, F, a+c
time = 24
[Command]
name = "41236kk"
command = ~B, D, F, ~a+b
time = 24
[Command]
name = "41236kk"
command = ~B, D, F, ~b+c
time = 24
[Command]
name = "41236kk"
command = ~B, D, F, ~a+c
time = 24

[Command]
name = "41236pp"
command = ~B, D, F, x+y
time = 24
[Command]
name = "41236pp"
command = ~B, D, F, y+z
time = 24
[Command]
name = "41236pp"
command = ~B, D, F, x+z
time = 24
[Command]
name = "41236pp"
command = ~B, D, F, ~x+y
time = 24
[Command]
name = "41236pp"
command = ~B, D, F, ~y+z
time = 24
[Command]
name = "41236pp"
command = ~B, D, F, ~x+z
time = 24

[Command]
name = "41236p"
command = ~B, D, F, x
time = 24
[Command]
name = "41236p"
command = ~B, D, F, y
time = 24
[Command]
name = "41236p"
command = ~B, D, F, z
time = 24
[Command]
name = "41236p"
command = ~B, D, F, ~x
time = 24
[Command]
name = "41236p"
command = ~B, D, F, ~y
time = 24
[Command]
name = "41236p"
command = ~B, D, F, ~z
time = 24

[Command]
name = "41236k"
command = ~B, D, F, a
time = 24
[Command]
name = "41236k"
command = ~B, D, F, b
time = 24
[Command]
name = "41236k"
command = ~B, D, F, c
time = 24
[Command]
name = "41236k"
command = ~B, D, F, ~a
time = 24
[Command]
name = "41236k"
command = ~B, D, F, ~b
time = 24
[Command]
name = "41236k"
command = ~B, D, F, ~c
time = 24

[Command]
name = "28pp"
command = ~$D, $U, x+y
time = 16
[Command]
name = "28pp"
command = ~$D, $U, y+z
time = 16
[Command]
name = "28pp"
command = ~$D, $U, x+z
time = 16
[Command]
name = "28pp"
command = ~$D, $U, ~x+y
time = 16
[Command]
name = "28pp"
command = ~$D, $U, ~y+z
time = 16
[Command]
name = "28pp"
command = ~$D, $U, ~x+z
time = 16

[Command]
name = "28p"
command = ~$D, $U, x
time = 16
[Command]
name = "28p"
command = ~$D, $U, y
time = 16
[Command]
name = "28p"
command = ~$D, $U, z
time = 16
[Command]
name = "28p"
command = ~$D, $U, ~x
time = 16
[Command]
name = "28p"
command = ~$D, $U, ~y
time = 16
[Command]
name = "28p"
command = ~$D, $U, ~z
time = 16

[Command]
name = "214kk"
command = ~D, DB, B, a+b
time = 16
[Command]
name = "214kk"
command = ~D, DB, B, b+c
time = 16
[Command]
name = "214kk"
command = ~D, DB, B, a+c
time = 16
[Command]
name = "214kk"
command = ~D, DB, B, ~a+b
time = 16
[Command]
name = "214kk"
command = ~D, DB, B, ~b+c
time = 16
[Command]
name = "214kk"
command = ~D, DB, B, ~a+c
time = 16

[Command]
name = "214k"
command = ~D, DB, B, a
time = 16
[Command]
name = "214k"
command = ~D, DB, B, b
time = 16
[Command]
name = "214k"
command = ~D, DB, B, c
time = 16
[Command]
name = "214k"
command = ~D, DB, B, ~a
time = 16
[Command]
name = "214k"
command = ~D, DB, B, ~b
time = 16
[Command]
name = "214k"
command = ~D, DB, B, ~c
time = 16

[Command]
name = "214pp"
command = ~D, DB, B, x+y
time = 16
[Command]
name = "214pp"
command = ~D, DB, B, y+z
time = 16
[Command]
name = "214pp"
command = ~D, DB, B, x+z
time = 16
[Command]
name = "214pp"
command = ~D, DB, B, ~x+y
time = 16
[Command]
name = "214pp"
command = ~D, DB, B, ~y+z
time = 16
[Command]
name = "214pp"
command = ~D, DB, B, ~x+z
time = 16

[Command]
name = "214p"
command = ~D, DB, B, x
time = 16
[Command]
name = "214p"
command = ~D, DB, B, y
time = 16
[Command]
name = "214p"
command = ~D, DB, B, z
time = 16
[Command]
name = "214p"
command = ~D, DB, B, ~x
time = 16
[Command]
name = "214p"
command = ~D, DB, B, ~y
time = 16
[Command]
name = "214p"
command = ~D, DB, B, ~z
time = 16

[Command]
name = "623kk"
command = ~F,D,DF, a+b
time = 16
[Command]
name = "623kk"
command = ~F,D,DF, b+c
time = 16
[Command]
name = "623kk"
command = ~F,D,DF, a+c
time = 16
[Command]
name = "623kk"
command = ~F,D,DF, ~a+b
time = 16
[Command]
name = "623kk"
command = ~F,D,DF, ~b+c
time = 16
[Command]
name = "623kk"
command = ~F,D,DF, ~a+c
time = 16

[Command]
name = "623k"
command = ~F,D,DF, a
time = 16
[Command]
name = "623k"
command = ~F,D,DF, b
time = 16
[Command]
name = "623k"
command = ~F,D,DF, c
time = 16
[Command]
name = "623k"
command = ~F,D,DF, ~a
time = 16
[Command]
name = "623k"
command = ~F,D,DF, ~b
time = 16
[Command]
name = "623k"
command = ~F,D,DF, ~c
time = 16

[Command]
name = "236pp"
command = ~D, DF, F, x+y
time = 16
[Command]
name = "236pp"
command = ~D, DF, F, y+z
time = 16
[Command]
name = "236pp"
command = ~D, DF, F, z+x
time = 16
[Command]
name = "236pp"
command = ~D, DF, F, ~x+y
time = 16
[Command]
name = "236pp"
command = ~D, DF, F, ~y+z
time = 16
[Command]
name = "236pp"
command = ~D, DF, F, ~z+x
time = 16

[Command]
name = "236p"
command = ~D, DF, F, x
time = 16
[Command]
name = "236p"
command = ~D, DF, F, y
time = 16
[Command]
name = "236p"
command = ~D, DF, F, z
time = 16
[Command]
name = "236p"
command = ~D, DF, F, ~x
time = 16
[Command]
name = "236p"
command = ~D, DF, F, ~y
time = 16
[Command]
name = "236p"
command = ~D, DF, F, ~z
time = 16

[Command]
name = "412p"
command = ~B, DB, D, x
time = 16
[Command]
name = "412p"
command = ~B, DB, D, y
time = 16
[Command]
name = "412p"
command = ~B, DB, D, z
time = 16

[Command]
name = "412k"
command = ~B, DB, D, a
time = 16
[Command]
name = "412k"
command = ~B, DB, D, b
time = 16
[Command]
name = "412k"
command = ~B, DB, D, c
time = 16

[Command]
name = "highjump"
command = $D, $U
time = 15

;-| 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"
command = x+y
time = 1
[Command]
name = "recovery"
command = x+z
time = 1
[Command]
name = "recovery"
command = y+z
time = 1
[Command]
name = "recovery"
command = a+x
time = 1

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

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

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

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

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

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

[Command]
name = "down_b"
command = /$D,b
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]

[State -1, Zero Counter]
type = changestate
value = 750
triggerall= helper(9999),var(55)
trigger1 = stateno = 150 || stateno = 152
trigger1 = command = "412p" || command = "412k"
trigger1 = roundstate = 2 && statetype != A
trigger1 = power >= 1000 && !var(20)

[State -1, Roll Backward]
type = changestate
value = 715
triggerall= helper(9999),var(52)
triggerall = command = "a+x"
triggerall = roundstate = 2 && statetype != A
trigger1 = (ctrl || (stateno = [100, 101])) && command = "holdback"

[State -1, Roll Forward]
type = changestate
value = 710
triggerall= helper(9999),var(52)
triggerall = command = "a+x"
triggerall = roundstate = 2 && statetype != A
trigger1 = (ctrl || (stateno = [100, 101])) && command = "holdfwd"
trigger2 = var(20) && var(4)
trigger3 = (ctrl || (stateno = [100, 101])) && helper(9999),var(51)=0

[State -1, Dodge]
type = changestate
value = 700
triggerall= helper(9999),var(51)
triggerall = command = "a+x"
triggerall = roundstate = 2 && statetype != A
trigger1 = (ctrl || (stateno = [100, 101]))





;===========================================================================

;---------------------------------------------------------------------------
;Power Stream
[State -1, Power Stream]
type = ChangeState
value = 3200
triggerall = command = "236236pp"
triggerall = roundstate = 2 && statetype != A && power >= 3000
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(7)

;---------------------------------------------------------------------------
;High Angle Geyser
[State -1, High Angle Geyser]
type = ChangeState
value = 3300
triggerall = command = "236236kk"
triggerall = roundstate = 2 && statetype != A
triggerall = power >= 2000 && var(20) <= 60
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(7) || var(8)

;---------------------------------------------------------------------------
;Buster Wolf
[State -1, Buster Wolf]
type = ChangeState
value = 3100
triggerall = command = "236236k"
triggerall = roundstate = 2 && statetype != A
triggerall = power >= 1000 && var(20) <= 60
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(7)

;---------------------------------------------------------------------------
;MAX Power Geyser
[State -1, Power Geyser]
type = ChangeState
value = 3050
triggerall = command = "2141236pp"
triggerall = roundstate = 2 && statetype != A
triggerall = power >= 2000 && var(20) <= 60
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(7) || var(8)

;---------------------------------------------------------------------------
;Power Geyser
[State -1, Power Geyser]
type = ChangeState
value = 3000
triggerall = command = "2141236p"
triggerall = roundstate = 2 && statetype != A
triggerall = power >= 1000 && var(20) <= 60
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(7)

;---------------------------------------------------------------------------
;EX Power Charge
[State -1, Power Charge]
type = ChangeState
value = 1650
triggerall= helper(9999),var(57)
triggerall = command = "66pp"
triggerall = roundstate = 2 && statetype != A
triggerall = power >= 500 && var(20) <= 60
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101]) || (stateno = 102 && time <= 5)
trigger2 = var(6)

;---------------------------------------------------------------------------
;Power Charge
[State -1, Power Charge]
type = ChangeState
value = 1600
triggerall = command = "66p"
triggerall = roundstate = 2 && statetype != A
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101]) || (stateno = 102 && time <= 5)
trigger2 = var(6) && command != "z" && command != "rlsz"

;---------------------------------------------------------------------------
;EX Fire Kick
[State -1, EX Fire Kick]
type = ChangeState
value = 1550
triggerall= helper(9999),var(57)
triggerall = command = "41236kk"
triggerall = roundstate = 2 && statetype != A
triggerall = power >= 500 && var(20) <= 60
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;---------------------------------------------------------------------------
;Fire Kick
[State -1, Fire Kick]
type = ChangeState
value = 1500
triggerall = command = "41236k"
triggerall = roundstate = 2 && statetype != A
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;---------------------------------------------------------------------------
;EX Power Dunk
[State -1, EX Power Dunk]
type = ChangeState
value = 1450
triggerall= helper(9999),var(57)
triggerall = command = "623kk"
triggerall = roundstate = 2 && statetype != A
triggerall = power >= 500 && var(20) <= 60
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;---------------------------------------------------------------------------
;Power Dunk
[State -1, Power Dunk]
type = ChangeState
value = 1400
triggerall = command = "623k"
triggerall = roundstate = 2 && statetype != A
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;---------------------------------------------------------------------------
;EX Crack Shoot
[State -1, EX Crack Shoot]
type = ChangeState
value = 1350
triggerall= helper(9999),var(57)
triggerall = command = "214kk"
triggerall = roundstate = 2 && statetype != A
triggerall = power >= 500 && var(20) <= 60
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;---------------------------------------------------------------------------
;Crack Shoot
[State -1, Crack Shoot]
type = ChangeState
value = 1300
triggerall = command = "214k"
triggerall = roundstate = 2 && statetype != A
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;---------------------------------------------------------------------------
;EX Rising Tackle
[State -1, EX Rising Tackle]
type = ChangeState
value = 1250
triggerall= helper(9999),var(57)
triggerall = command = "28pp" && ifelse(var(20) > 0 || (stateno = [1000, 4999]), 1, var(50) > 16)
triggerall = roundstate = 2 && statetype != A
triggerall = power >= 500 && var(20) <= 60
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;---------------------------------------------------------------------------
;Rising Tackle
[State -1, Rising Tackle]
type = ChangeState
value = 1200
triggerall = command = "28p" && ifelse(var(20) > 0 || (stateno = [1000, 4999]), 1, var(50) > 16)
triggerall = roundstate = 2 && statetype != A
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;---------------------------------------------------------------------------
;EX Burn Knuckle
[State -1, EX Burn Knuckle]
type = ChangeState
value = 1150
triggerall= helper(9999),var(57)
triggerall = command = "214pp"
triggerall = roundstate = 2 && statetype != A
triggerall = power >= 500 && var(20) <= 60
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;---------------------------------------------------------------------------
;Burn Knuckle
[State -1, Burn Knuckle]
type = ChangeState
value = 1100
triggerall = command = "214p"
triggerall = roundstate = 2 && statetype != A
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;---------------------------------------------------------------------------
;EX Power Wave
[State -1, EX Power Wave]
type = ChangeState
value = 1050
triggerall= helper(9999),var(57)
triggerall = command = "236pp"
triggerall = roundstate = 2 && statetype != A
triggerall = power >= 500 && var(20) <= 60
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;---------------------------------------------------------------------------
;Power Wave
[State -1, Power Wave]
type = ChangeState
value = 1000
triggerall = command = "236p"
triggerall = roundstate = 2 && statetype != A
trigger1 = ctrl || stateno = 40 || stateno = 52 || (stateno = [100, 101])
trigger2 = var(6)

;===========================================================================
;---------------------------------------------------------------------------

[State -1, Custom Combo]
type = changestate
value = ifelse(statetype = A, 905, 900)
triggerall = helper(9999),var(54)
trigger1 = command = "c+z"
trigger1 = roundstate = 2
trigger1 = power >= 1000 && !var(20)
trigger1 = ctrl || stateno = 52 || (stateno = [100, 101])

[State -1, Power Charge]
type = changestate
value = 730
triggerall = helper(9999),var(53)
trigger1 = command = "holdb" && command = "holdy"
trigger1 = roundstate = 2 && statetype != A
trigger1 = power < const(data.power) && power < powermax && !var(20)
trigger1 = ctrl || (stateno = [100, 101])

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

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

[State -1, Throw]
type = changestate
value = 800
trigger1 = !AIlevel
trigger1 = (command = "holdfwd" || command = "holdback") && (command = "pp" || command = "kk")
trigger1 = roundstate = 2 && statetype = S
trigger1 = ctrl



;===========================================================================

;---------------------------------------------------------------------------
;c.LP
[State -1, c.LP]
type = ChangeState
value = 201
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = p2bodydist x <= (const(size.xscale) * 25)
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = (stateno = 200 || stateno = 201 || stateno = 400 || stateno = 430) && time >= 5
trigger3 = var(4)


;---------------------------------------------------------------------------
;LP
[State -1, LP]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = (stateno = 200 || stateno = 201 || stateno = 400 || stateno = 430) && time >= 5
trigger3 = var(4)

;---------------------------------------------------------------------------
;c.MP
[State -1, c.MP]
type = ChangeState
value = 211
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = p2bodydist x <= (const(size.xscale) * 25)
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;MP
[State -1, MP]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;c.HP
[State -1, Stand Strong Punch]
type = ChangeState
value = 221
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = p2bodydist x <= (const(size.xscale) * 25)
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;HP
[State -1, HP]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;c.LK
[State -1, c.LK]
type = ChangeState
value = 231
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = p2bodydist x <= (const(size.xscale) * 25)
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;LK
[State -1, LK]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;c.MK
[State -1, c.MK]
type = ChangeState
value = 241
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = p2bodydist x <= (const(size.xscale) * 25)
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;MK
[State -1, MK]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;c.HK
[State -1, c.HK]
type = ChangeState
value = 251
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = p2bodydist x <= (const(size.xscale) * 25)
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;HK
[State -1, HK]
type = ChangeState
value = 250
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

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

;---------------------------------------------------------------------------
;2LP
[State -1, 2LP]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = (stateno = 200 || stateno = 201 || stateno = 400 || stateno = 430) && time >= 5
trigger3 = var(4)

;---------------------------------------------------------------------------
;2MP
[State -1, 2MP]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;2HP
[State -1, 2HP]
type = ChangeState
value = 425
triggerall = command = "z"
triggerall = command = "holddown" && command = "holdfwd"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(5)

;---------------------------------------------------------------------------
;2HP
[State -1, 2HP]
type = ChangeState
value = 420
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;2LK
[State -1, 2LK]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = (stateno = 200 || stateno = 201 || stateno = 400 || stateno = 430) && time >= 5
trigger3 = var(4)

;---------------------------------------------------------------------------
;2MK
[State -1, 2MK]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;2HK
[State -1, 2HK]
type = ChangeState
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl || (stateno = [100, 101])
trigger2 = var(4)

;---------------------------------------------------------------------------
;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(4)

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "y"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(4)

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
triggerall = command = "z"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(4)
;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(4)

;---------------------------------------------------------------------------
;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = command = "b"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(4)

;---------------------------------------------------------------------------
;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 650
triggerall = command = "c"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(4)
