; _______________________________________
;| Shadow Lady by Jmorphman              |
; ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
;==============================================================================================
;=======================================<COMMAND FILE>=========================================
;==============================================================================================

;====================<BUTTON REMAPPING>====================

[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 DIRECTION>==================

[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



;====================<DIRECTION>====================

[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



;===================<SUPER MOTIONS>===================

[Command]
name = "HyperPenguinBeam"
command = ~D, DF, F, D, DF, F, x
time = 32

[Command]
name = "HyperPenguinBeam"
command = ~D, DF, F, D, DF, F, y
time = 32

[Command]
name = "HyperPenguinBeam"
command = ~D, DF, F, D, DF, F, z
time = 32

[Command]
name = "HyperPenguinBeam"
command = ~D, DF, F, D, DF, F, ~x
time = 32

[Command]
name = "HyperPenguinBeam"
command = ~D, DF, F, D, DF, F, ~y
time = 32

[Command]
name = "HyperPenguinBeam"
command = ~D, DF, F, D, DF, F, ~z
time = 32


[Command]
name = "HyperAssMissiles"
command = ~D, DF, F, D, DF, F, a
time = 32

[Command]
name = "HyperAssMissiles"
command = ~D, DF, F, D, DF, F, b
time = 32

[Command]
name = "HyperAssMissiles"
command = ~D, DF, F, D, DF, F, c
time = 32

[Command]
name = "HyperAssMissiles"
command = ~D, DF, F, D, DF, F, ~a
time = 32

[Command]
name = "HyperAssMissiles"
command = ~D, DF, F, D, DF, F, ~b
time = 32

[Command]
name = "HyperAssMissiles"
command = ~D, DF, F, D, DF, F, ~c
time = 32


[Command]
name = "OrochiServbot"
command = ~D, DB, B, D, DB, B, x
time = 32

[Command]
name = "OrochiServbot"
command = ~D, DB, B, D, DB, B, y
time = 32

[Command]
name = "OrochiServbot"
command = ~D, DB, B, D, DB, B, z
time = 32

[Command]
name = "OrochiServbot"
command = ~D, DB, B, D, DB, B, ~x
time = 32

[Command]
name = "OrochiServbot"
command = ~D, DB, B, D, DB, B, ~y
time = 32

[Command]
name = "OrochiServbot"
command = ~D, DB, B, D, DB, B, ~z
time = 32


[Command]
name = "ShunGokuSatsu"
command = x, x, F, a, z
time = 45



;===================<SPECIAL MOTIONS >===================

[Command]
name = "CouchThrow"
command = ~D, DF, F, x
time = 16

[Command]
name = "CouchThrow"
command = ~D, DF, F, y
time = 16

[Command]
name = "CouchThrow"
command = ~D, DF, F, z
time = 16

[Command]
name = "CouchThrow"
command = ~D, DF, F, ~x
time = 16

[Command]
name = "CouchThrow"
command = ~D, DF, F, ~y
time = 16

[Command]
name = "CouchThrow"
command = ~D, DF, F, ~z
time = 16


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

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

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


[Command]
name = "RAWKETLAWNCHAIR"
command = ~D, DF, F, a
time = 16

[Command]
name = "RAWKETLAWNCHAIR"
command = ~D, DF, F, b
time = 16

[Command]
name = "RAWKETLAWNCHAIR"
command = ~D, DF, F, c
time = 16

[Command]
name = "RAWKETLAWNCHAIR"
command = ~D, DF, F, ~a
time = 16

[Command]
name = "RAWKETLAWNCHAIR"
command = ~D, DF, F, ~b
time = 16

[Command]
name = "RAWKETLAWNCHAIR"
command = ~D, DF, F, ~c
time = 16


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

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

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


[Command]
name = "SpinningSawKick"
command = ~$D, $U, a
time = 16

[Command]
name = "SpinningSawKick"
command = ~$D, $U, b
time = 16

[Command]
name = "SpinningSawKick"
command = ~$D, $U, c
time = 16

[Command]
name = "SpinningSawKick"
command = ~$D, $U, ~a
time = 16

[Command]
name = "SpinningSawKick"
command = ~$D, $U, ~b
time = 16

[Command]
name = "SpinningSawKick"
command = ~$D, $U, ~c
time = 16


[Command]
name = "EXSpinningSawKick"
command = ~$D, $U, a+b
time = 16

[Command]
name = "EXSpinningSawKick"
command = ~$D, $U, b+c
time = 16

[Command]
name = "EXSpinningSawKick"
command = ~$D, $U, a+c
time = 16


[Command]
name = "JustShootThemDumbass"
command = ~D, DB, B, x
time = 16

[Command]
name = "JustShootThemDumbass"
command = ~D, DB, B, y
time = 16

[Command]
name = "JustShootThemDumbass"
command = ~D, DB, B, z
time = 16

[Command]
name = "JustShootThemDumbass"
command = ~D, DB, B, ~x
time = 16

[Command]
name = "JustShootThemDumbass"
command = ~D, DB, B, ~y
time = 16

[Command]
name = "JustShootThemDumbass"
command = ~D, DB, B, ~z
time = 16


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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




;====================<OTHER>====================

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



;====================<DOUBLE TAP>====================

[Command]
name = "FF"
command = F, F
time = 10

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



;====================<2/3 BUTTON COMBINATION>====================

[Command]
name = "recovery"
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




;==============================================================================================
;========================================<-1 STATES>===========================================
;==============================================================================================
[StateDef -1]

[State -1, Tick Fix]
type = CtrlSet
triggerAll = !ctrl
trigger1 = (StateNo = 52 || StateNo = 101 || StateNo = 5120) && !AnimTime
trigger2 = (StateNo = [200,499]) && !AnimTime
trigger3 = ((StateNo = [760,762]) || (StateNo = [700,715]) || (StateNo = [900,905])) && !AnimTime
trigger4 = StateNo = 810 && !AnimTime
trigger5 = (StateNo = 5001 || StateNo = 5011 || StateNo = 151 || StateNo = 153) && HitOver
value = 1

[State -1, Roll Forward]
type = ChangeState
value = 710
triggerAll = command = "a+x"
triggerAll = RoundState = 2 && StateType != A
trigger1 = (ctrl || (StateNo = [100,101])) && command = "holdfwd"
trigger2 = var(20) && var(4)

[State -1, Roll Backward]
type = ChangeState
value = 715
triggerAll = command = "a+x"
triggerAll = RoundState = 2 && StateType != A
trigger1 = (ctrl || (StateNo = [100,101])) && command = "holdback"

[State -1, Dodge]
type = ChangeState
value = 700
triggerAll = command = "a+x"
triggerAll = RoundState = 2 && StateType != A
trigger1 = (ctrl || (StateNo = [100,101]))

[State -1, TELEPORTATION IS FUN]
type = ChangeState
value = 1600
triggerAll = command = "LOOKICANTELEPORTLIKEAKUMA" || command = "IMGOINGBACKWARDSNOWISNTTHATCOOL" || command = "LOOKICANTELEPORTLIKEAKUMAKICK" || command = "IMGOINGBACKWARDSNOWISNTTHATCOOLKICK"
triggerAll = !AILevel && StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [195,2999]) && Time >= 2 && !NumHelper(8330) && !NumHelper(229)
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099])
trigger3 = StateNo = 195 && AnimElemTime(6) >= 0 && AnimElemTime(20) < 0

[State -1, Shun Goku Satsu]
type = ChangeState
value = 4000
triggerAll = command = "ShunGokuSatsu"
triggerAll = !AILevel && (power >= 3000 || var(20))
trigger1 = ctrl
trigger2 = (StateNo = [195,2999]) && Time >= 2 && !NumHelper(8330) && !NumHelper(229)
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099])

[State -1, Hyper Penguin Beam]
type = changestate
value = 3000
triggerAll = command = "HyperPenguinBeam"
triggerAll = !AILevel && (power >= 1000 || var(20))
trigger1 = ctrl
trigger2 = (StateNo = [195,2999]) && Time >= 2 && !NumHelper(8330) && !NumHelper(229)
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099])

[State -1, Hyper Ass Missles]
type = changestate
value = 3100
triggerAll = command = "HyperAssMissiles"
triggerAll = !AILevel && (power >= 1000 || var(20))
trigger1 = ctrl
trigger2 = (StateNo = [195,2999]) && Time >= 2 && !NumHelper(8330) && !NumHelper(229)
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099])

[State -1, Orochi Servbot]
type = changestate
value = 3200
triggerAll = command = "OrochiServbot"
triggerAll = !AILevel && (power >= 1000 || var(20))
trigger1 = ctrl
trigger2 = (StateNo = [195,2999]) && Time >= 2 && !NumHelper(8330) && !NumHelper(229)
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099])

[State -1, Mother, did you move my chair?]
type = ChangeState
value = 1030
triggerAll = command = "MotherDidYouMoveMyChair"
triggerAll = !AILevel && StateType != A && !NumHelper(1035) && !NumHelper(1034)
triggerAll = power >= 500
trigger1 = ctrl
trigger2 = (StateNo = [195,1899]) && Time >= 2
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099]) && !NumHelper(229)

[State -1, THANK YOU]
type = ChangeState
value = 1130
triggerAll = command = "THANKYOU"
triggerAll = !AILevel && StateType != A
triggerAll = !NumHelper(1135) && power >= 500
trigger1 = ctrl
trigger2 = (StateNo = [195,1899]) && Time >= 2
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099]) && !NumHelper(229)

[State -1, EX Fast Kick Thingy]
type = ChangeState
value = 1230 + 50 * (StateType = A)
triggerAll = command = "kk" && var(45) >= 5 - 1 * (StateType = A)
triggerAll = !AILevel && power >= 500
trigger1 = ctrl
trigger2 = (StateNo = [195,1899]) && Time >= 2 && (StateNo != [1230,1250]) && (StateNo != [1280,1281])
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099]) && !NumHelper(229)

[State -1, EX Spinning Saw Kick]
type = ChangeState
value = 1330
triggerAll = command = "EXSpinningSawKick" && var(50) > 16
triggerAll = !AILevel && StateType != A && power >= 500
trigger1 = ctrl || StateNo = 40 || StateNo = 52 || (StateNo = [100,101])
trigger2 = (StateNo = [195,1899]) && Time >= 2 && StateNo != 1300 && StateNo != 1330
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099]) && !NumHelper(229)

[State -1, This is not the right gun]
type = ChangeState
value = 1430
triggerAll = command = "ThisIsNotTheRightGun"
triggerAll = !AILevel && StateType != A
triggerAll = power >= 500
trigger1 = ctrl
trigger2 = (StateNo = [195,1899]) && Time >= 2
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099]) && !NumHelper(229)

[State -1, Couch Throw]
type = ChangeState
value = 1000
triggerAll = command = "CouchThrow"
triggerAll = !AILevel && StateType != A
triggerAll = NumHelper(1005) < 16
trigger1 = ctrl
trigger2 = (StateNo = [195,1899]) && Time >= 2
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099]) && !NumHelper(229)

[State -1, RAWKET LAWNCHAIR]
type = ChangeState
value = 1100
triggerAll = command = "RAWKETLAWNCHAIR"
triggerAll = !AILevel && StateType != A
triggerAll = !NumHelper(11105) && !NumHelper(1105)
trigger1 = ctrl
trigger2 = (StateNo = [195,1899]) && Time >= 2
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099]) && !NumHelper(229)

[State -1, Fast Kick Thingy]
type = ChangeState
value = 1200 + 50 * (StateType = A)
triggerAll = (command = "a" || command = "b" || command = "c") && var(45) >= 5 - 1 * (StateType = A)
triggerAll = !AILevel
trigger1 = ctrl
trigger2 = (StateNo = [195,1899]) && Time >= 2 && (StateNo != [1200,1230]) && (StateNo != [1250,1251]) && (StateNo != [1280,1281])
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099]) && !NumHelper(229)

[State -1, Spinning Saw Kick]
type = ChangeState
value = 1300
triggerAll = command = "SpinningSawKick" && var(50) > 16
triggerAll = !AILevel && StateType != A
trigger1 = ctrl || StateNo = 40 || StateNo = 52 || (StateNo = [100,101])
trigger2 = (StateNo = [195,1899]) && Time >= 2 && StateNo != 1300 && StateNo != 1330
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099]) && !NumHelper(229)

[State -1, Just Shoot Them, Dumbass]
type = ChangeState
value = 1400
triggerAll = command = "JustShootThemDumbass"
triggerAll = !AILevel && StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [195,1899]) && Time >= 2
trigger2 = (StateNo != [800,899]) && (StateNo != [4000,4099]) && !NumHelper(229)

[State -1, Zero Counter]
type = ChangeState
value = 750
trigger1 = StateNo = 150 || StateNo = 152
trigger1 = command = "412p" || command = "412k"
trigger1 = RoundState = 2 && StateType != A
trigger1 = power >= 1000 && !var(20)

[State -1, Custom Combo]
type = ChangeState
value = ifElse(StateType = A, 905, 900)
trigger1 = command = "c+z"
trigger1 = RoundState = 2
trigger1 = power >= 1000 && !var(20)
trigger1 = ctrl || StateNo = 52 || (StateNo = [100,101])
trigger1 = !var(43)

[State -1, Power Charge]
type = ChangeState
value = 730
trigger1 = command = "holdb" && command = "holdy"
trigger1 = RoundState = 2 && StateType != A
trigger1 = !AILevel
trigger1 = ctrl || (StateNo = [100,101])

[State -1, Dash Forward/Run]
type = ChangeState
value = 110
trigger1 = command = "FF"
trigger1 = roundstate = 2 && StateType = S
trigger1 = ctrl

[State -1, Dash Backward]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = RoundState = 2 && StateType = S
trigger1 = ctrl

[State -1, Sankaku Tobi Forward]
type = ChangeState
value = 60
triggerAll = StateNo != 60 && PrevStateNo != 60
trigger1 = command = "holdup" && command = "holdfwd"
trigger1 = RoundState = 2 && StateType = A
trigger1 = ctrl && pos y <= -32 && BackEdgeBodyDist <= 0

[State -1, Sankaku Tobi Backwards]
type = ChangeState
value = 61
triggerAll = StateNo != 61 && PrevStateNo != 61
trigger1 = command = "holdup" && command = "holdback"
trigger1 = RoundState = 2 && StateType = A
trigger1 = ctrl && pos y <= -32 && FrontEdgeBodyDist <= 0

[State -1, Throw]
type = ChangeState
value = 800
triggerAll = (command = "holdfwd" || command = "holdback") && (command = "pp" || command = "kk")
triggerAll = !AILevel && StateType = S
trigger1 = ctrl
trigger2 = (StateNo = [200,699]) && !NumHelper(229)

[State -1, Air Throw]
type = ChangeState
value = 850
triggerAll = (command = "holdfwd" || command = "holdback") && command = "pp"
triggerAll = !AILevel && StateType = A
trigger1 = ctrl
trigger2 = (StateNo = [200,699])

[State -1, Air Dash]
type = ChangeState
value = 70
triggerAll = command = "pp" || command = "FF"
triggerAll = !AILevel && StateType = A
trigger1 = ctrl
trigger2 = (StateNo = [200,699])

[State -1, Standing NEUTRALIZE]
type = ChangeState
value = 220
triggerAll = command = "z"
triggerAll = !AILevel && command != "holddown" && StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, CROSSUPS ARE EASY]
type = ChangeState
value = 258
triggerAll = command = "holddown" && command = "holdfwd" && command = "c"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Standing Heavy Kick]
type = ChangeState
value = 255
triggerAll = command != "holddown" && command = "c"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Standing Far/Close Medium Punch]
type = ChangeState
value = 210 + (Abs(P2BodyDist X) <= 25) * 5
triggerAll = command != "holddown" && command = "y"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Forward Kick Thingy]
type = ChangeState
value = 249
triggerAll = command != "holddown" && command = "holdfwd" && command = "b"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Standing Far/Close Medium Kick]
type = ChangeState
value = 240 + (Abs(P2bodydist X) <= 25) * 5
triggerAll = command != "holddown" && command = "b"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Standing Far/Close Light Punch]
type = ChangeState
value = 200
triggerAll = command != "holddown" && command = "x"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Standing Far/Close Light Kick]
type = ChangeState
value = 230 + (Abs(P2bodydist X) <= 10) * 5
triggerAll = command != "holddown" && command = "a"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Crouching Heavy Punch]
type = ChangeState
value = 420
triggerAll = command = "holddown" && command = "z"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Crouching Heavy Kick]
type = ChangeState
value = 450
triggerAll = command = "holddown" && command = "c"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Crouching Medium Punch]
type = ChangeState
value = 410
triggerAll = command  ="holddown" && command = "y"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Crouching Medium Kick]
type = ChangeState
value = 440
triggerAll = command = "holddown" && command = "b"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerAll = command = "holddown" && command = "x"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerAll = command = "holddown" && command = "a"
triggerAll = StateType != A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0

[State -1, Jumping Heavy Punch]
type = ChangeState
value = 620 + (StateNo = 620)
triggerAll = command = "z"
triggerAll = StateType = A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0
trigger7 = StateNo = 70

[State -1, Angled Jumping Heavy Kick]
type = ChangeState
value = 651
triggerAll = command = "c"
triggerAll = StateType = A
triggerAll = sysvar(1)
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0
trigger7 = StateNo = 70

[State -1, Neutral Jumping Heavy Kick]
type = ChangeState
value = 650
triggerAll = command = "c"
triggerAll = StateType = A
triggerAll = !sysvar(1)
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0
trigger7 = StateNo = 70

[State -1, Jumping Medium Punch]
type = ChangeState
value = 610
triggerAll = command = "y"
triggerAll = StateType = A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0
trigger7 = StateNo = 70

[State -1, Yosokyaku]
type = ChangeState
value = 648
triggerAll = command = "b" && command = "holddown"
triggerAll = StateType = A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0
trigger7 = StateNo = 70

[State -1, Angled Jumping Medium Kick]
type = ChangeState
value = 641
triggerAll = command = "b"
triggerAll = StateType = A
triggerAll = sysvar(1)
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0
trigger7 = StateNo = 70

[State -1, Neutral Jumping Medium Kick]
type = ChangeState
value = 640
triggerAll = command = "b"
triggerAll = StateType = A
triggerAll = !sysvar(1)
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0
trigger7 = StateNo = 70

[State -1, Jumping Light Punch]
type = ChangeState
value = 600
triggerAll = command = "x"
triggerAll = StateType = A
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0
trigger7 = StateNo = 70

[State -1, Angled Jumping Light Kick]
type = ChangeState
value = 631
triggerAll = command = "a"
triggerAll = StateType = A
triggerAll = sysvar(1)
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0
trigger7 = StateNo = 70

[State -1, Neutral Jumping Light Kick]
type = ChangeState
value = 630
triggerAll = command = "a"
triggerAll = StateType = A
triggerAll = !sysvar(1)
trigger1 = ctrl
trigger2 = (StateNo = [200,219]) && Time >= 2
trigger3 = (StateNo = [230,419]) && Time >= 2
trigger4 = (StateNo = [430,699]) && Time >= 2
trigger5 = StateNo = 220 && AnimElemTime(23) >= 0
trigger6 = StateNo = 420 && AnimElemTime(19) >= 0
trigger7 = StateNo = 70

[State -1, Taunt]
type = ChangeState
value = 195
triggerAll = command = "start"
triggerAll = StateType != A
triggerAll = StateNo != [200,699]
trigger1 = ctrl || (StateNo = [100,101])
trigger2 = var(6)

[State -1, Aerial Rave]
type = ChangeState
value = 40
trigger1 = command = "holdup"
trigger1 = StateNo = 255 && (MoveContact = [1,4])


;==============================================================================================
;===========================================< A.I >==============================================
;==============================================================================================

[State -1, Standing NEUTRALIZE]
type = ChangeState
value = ifElse(StateNo = 220, 420, 220)
triggerAll = AILevel && NumEnemy
triggerAll = RoundState = 2 && Statetype != A
trigger1 = ctrl
trigger2 = StateNo = 220 && AnimElemTime(23) >= 0
trigger3 = StateNo = 420 && AnimElemTime(19) >= 0

