; Comandos.

;---------------------------------------------------------------------------
;Artificial Intelligence
;---------------------------------------------------------------------------

;-|-AI-|--------------------------------------------------------------------
[Command]
name = "AI_1"
command = a, x, F, D, a, a, D
time = 1

[Command]
name = "AI_2"
command = a, a, a, a, a, a, b
time = 1

[Command]
name = "AI_3"
command = a, a, b, D, F, b, x
time = 1

[Command]
name = "AI_4"
command = y, a, F, b, B, y, a
time = 1

[Command]
name = "AI_5"
command = a, b, x, y, y, b, b
time = 1

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

[Command]
name = "AI_7"
command = a, y, F, a, x, a, F, b
time = 1

[Command]
name = "AI_8"
command = a, a, b, y, x, B, x
time = 1

[Command]
name = "AI_9"
command = x, x, a, F, F, b, D
time = 1

[Command]
name = "AI_10"
command = x, x, a, F, y, a, a, F
time = 1

[Command]
name = "AI_11"
command = a, b, a, x, a, y, a
time = 1

[Command]
name = "AI_12"
command = b, y, a, F, y, a, x
time = 1

[Command]
name = "AI_13"
command = x, a, y, y, x, B, B
time = 1

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

[Command]
name = "AI_15"
command = y, x, b, b, a, x, y
time = 1
;-| Super Motions |--------------------------------------------------------

[Command]
name = "bazooka"
command = D, DF, F, a+b
time = 20

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

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


[Command]
name = "spinning card slash"
command = B, DB, D, x+y
time = 25

[Command]
name = "spinning card slash"
command = B, DB, D, x+z
time = 25

[Command]
name = "spinning card slash"
command = B, DB, D, y+z
time = 25


[Command]
name = "emperorj"
command = ~$D, DF, F, c+z
time = 20

[Command]
name = "explosivecard1"
command = ~D, DB, B, x+y
time = 15
[Command]
name = "explosivecard1"
command = ~D, DB, B, x+z
time = 15
[Command]
name = "explosivecard2"
command = ~D, DB, B, y+z
time = 15


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

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

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

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

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

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



[command]
name = "Shotgun"
command = ~D,DF,F,x+a
time = 15

[Command]
name = "FightHyper1"
command = F, DF, D, x+y
time = 25

[Command]
name = "FightHyper1"
command = F, DF, D, x+z
time = 25

[Command]
name = "FightHyper1"
command = F, DF, D, y+z
time = 25





;-| Special Motions |------------------------------------------------------


[Command]
name = "Acid"
command = ~D, DB, B, x
time = 20

[Command]
name = "Gas"
command = ~D, DB, B, y
time = 15

[Command]
name = "Gas&gun"
command = ~D, DB, B, z
time = 15

[Command]
name = "BOXING GLOVE"
command = ~D, DF, F, a
time = 15

[Command]
name = "BOXING GLOVE"
command = ~D, DF, F, b
time = 15

[Command]
name = "BOXING GLOVE"
command = ~D, DF, F, c
time = 15

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

[Command]
name = "BOXING GLOVE2"
command = ~D, DF, F, y
time = 20

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

[Command]
name = "Handgunlow"
command = ~20$B, F, x
time = 30

[Command]
name = "Handgunlow"
command = ~20$B, F, y
time = 30

[Command]
name = "Handgunlow"
command = ~20$B, F, z
time = 30



[Command]
name = "penguin"
command = y+x

[Command]
name = "flag"
command = ~$F, D, DF, x
time = 15

[Command]
name = "flag"
command = ~$F, D, DF, y
time = 15

[Command]
name = "flag"
command = ~$F, D, DF, z
time = 15

[Command]
name = "jbomb"
command = D, DB, B, a
time = 15

[Command]
name = "jbomb"
command = D, DB, B, b
time = 15

[Command]
name = "jbomb"
command = D, DB, B, c
time = 15


[Command]
name = "cardproj1"
command = ~D, DF, F, x
time = 15

[Command]
name = "cardproj2"
command = ~D, DF, F, y
time = 15

[Command]
name = "jokerfishproj"
command = ~D, DF, F, z
time = 15

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

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

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


[Command]
name = "Weak Electricity"
command = a, a, a
time = 40

[Command]
name = "Medium Electricity"
command = b, b, b
time = 30

[Command]
name = "Strong Electricity"
command = c, c, c
time = 25



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

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

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

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

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

;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

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

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

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

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

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

[Command]
name = "start"
command = s
time = 1

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

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

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

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

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

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

[Command]
name = "back_y"
command = /B,y
time = 1

[Command]
name = "back_z"
command = /B,z
time = 1


;-| Super Jump Commands |---------------------------------------------------
[command]
name = "superjump"
command = $D, $U
time = 20

[command]
name = "superjump"
command = a+b+c
time = 20


;---------------------------------------------------------------------------
;Artificial Intelligence
;---------------------------------------------------------------------------

[Statedef -1]
;-|-AI-|--------------------------------------------------------------------
[State -1, AI]
type = VarSet
trigger1 = command = "AI_1"
trigger2 = command = "AI_2"
trigger3 = command = "AI_3"
trigger4 = command = "AI_4"
trigger5 = command = "AI_5"
trigger6 = command = "AI_6"
trigger7 = command = "AI_7"
trigger8 = command = "AI_8"
trigger9 = command = "AI_9"
trigger10 = command = "AI_10"
trigger11 = command = "AI_11"
trigger12 = command = "AI_12"
trigger13 = command = "AI_13"
trigger14 = command = "AI_14"
trigger15 = command = "AI_15"
v = 59
value = 1

;--|-AI Defense-|-----------------------------------------------------------
[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2movetype = A) && (statetype = S)
trigger1 = (p2bodydist x <= 250) && (random <= 899)
value = 130

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2movetype = A) && (statetype = C)
trigger1 = (p2bodydist x <= 250) && (random <= 899)
value = 131

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2movetype = A) && (statetype = A)
trigger1 = (p2bodydist x <= 250) && (random <= 899)
value = 132

;-|-AI Combo Attempt-|----------------------------------------------



;-| AI normal attacks-|----------------------------------------------
[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x > 100) && (random <= 10)
triggerall = numproj <1
triggerall = (ctrl)
trigger1 = statetype = S
value = 100

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x < 30) && (random <= 10)
triggerall = numproj <1
triggerall = (ctrl)
trigger1 = statetype = S
value = 105

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x > 120) && (random <= 100)
triggerall = p2movetype = A
triggerall = (ctrl)
trigger1 = statetype = S
value = 7000

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 30) && (random <= 850)
triggerall = statetype = S
triggerall = Movecontact
trigger1 = Stateno = 200
trigger2 = Stateno = 230
value = 210

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 30) && (random <= 850)
triggerall = statetype = S
triggerall = Movecontact
trigger1 = Stateno = 210
trigger2 = Stateno = 240
value = 220


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 30) && (random <= 850)
triggerall = statetype = S
triggerall = Movecontact
trigger1 = Stateno = 200
trigger2 = Stateno = 230
value = 240

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 30) && (random <= 850)
triggerall = statetype = S
triggerall = Movecontact
trigger1 = Stateno = 210
trigger2 = Stateno = 240
value = 250


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 30) && (random <= 850)
triggerall = statetype != A
triggerall = Movecontact
trigger1 = Stateno = 400
trigger2 = Stateno = 430
value = 410

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 30) && (random <= 850)
triggerall = statetype != A
triggerall = Movecontact
trigger1 = Stateno = 410
trigger2 = Stateno = 440
value = 420


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 30) && (random <= 850)
triggerall = statetype != A
triggerall = Movecontact
trigger1 = Stateno = 400
trigger2 = Stateno = 430
value = 440

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 30) && (random <= 850)
triggerall = statetype != A
triggerall = Movecontact
trigger1 = Stateno = 410
trigger2 = Stateno = 440
value = 450



[State -1]
type = ChangeState
value = 610
triggerall = Var(59)
triggerall = movecontact
triggerall = p2bodydist y  > -50 && p2bodydist y  < 50
triggerall = (random <= 900)
trigger1 = (stateno = 600)

[State -1]
type = ChangeState
value = 620
triggerall = Var(59)
triggerall = movecontact
triggerall = p2bodydist y  > -50 && p2bodydist y  < 50
triggerall = (random <= 900)
trigger1 = (stateno = 610)

[State -1]
type = ChangeState
value = 640
triggerall = Var(59)
triggerall = movecontact
triggerall = p2bodydist y  > -50 && p2bodydist y  < 50
triggerall = (random <= 900)
trigger1 = (stateno = 630)

[State -1]
type = ChangeState
value = 650
triggerall = Var(59)
triggerall = movecontact
triggerall = p2bodydist y  > -50 && p2bodydist y  < 50
triggerall = (random <= 900)
trigger1 = (stateno = 620)



[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 20) && (random <= 750)
triggerall = (Ctrl) && statetype = S
trigger1 =  p2bodydist Y > -50 && p2bodydist Y > 50
value = 200

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 20) && (random <= 750)
triggerall = (Ctrl) && statetype = S
trigger1 =  p2bodydist Y > -50 && p2bodydist Y > 50
value = 210

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 30) && (random <= 250)
triggerall = (Ctrl) && statetype = S
trigger1 =  p2bodydist Y > -50 && p2bodydist Y > 50
value = 220


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x <= 10) && (random <= 750)
triggerall = (Ctrl) && statetype = S
trigger1 =  p2bodydist Y > -50 && p2bodydist Y > 50
value = 230


;[State -1]
;type = ChangeState
;triggerall = (roundstate = 2) && (var(59) != 0)
;triggerall = (p2bodydist x <= 50) && (random <= 250)
;triggerall = (Ctrl) && statetype = S
;trigger1 =  p2statetype = S
;trigger2 =  p2statetype = C
;value = 221

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (p2bodydist x > 50) && (random <= 250)
triggerall = (Ctrl) && statetype = S
trigger1 =  p2bodydist Y > -50 && p2bodydist Y > 50
value = 250

;[State -1]
;type = ChangeState
;triggerall = (roundstate = 2) && (var(59) != 0)
;triggerall = (p2bodydist x <= 40) && (random <= 250)
;triggerall = (Ctrl) && statetype = S
;trigger1 =  p2statetype = S
;trigger2 =  p2statetype = C
;value = 251

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl)
triggerall = (p2bodydist x <= 30) && (random <= 750)
trigger1 =  p2bodydist Y > -150 && p2bodydist Y > 50
trigger1 = statetype = S
value = 240

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2StateType != A) && (statetype = C)
trigger1 = (p2bodydist x <= 35) && (random <= 750)
value = 400

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2StateType != A) && (statetype = C)
trigger1 = (p2bodydist x <= 45) && (random <= 750)
value = 410

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (statetype = C)
trigger1 = (p2bodydist x <= 50) && (random <= 750)
value = 420

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2StateType != A) && (statetype = C)
trigger1 = (p2bodydist X <= 35) && (random <= 750)
value = 430

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2StateType != A) && (statetype = C)
trigger1 = (p2bodydist x <= 40) && (random <= 750)
value = 440

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2StateType != A) && (statetype = C)
trigger1 = (p2bodydist X <= 50) && (random <= 750)
value = 450

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2StateType = A) && (statetype = A)
trigger1 = (p2bodydist x <= 25) && (random <= 750)
value = 600

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2StateType = A) && (statetype = A)
trigger1 = (p2bodydist x <= 25) && (random <= 750)
value = 610

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2movetype = A) && (statetype = A)
trigger1 = (p2bodydist x <= 35) && (random <= 750)
value = 620

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2movetype = A) && (statetype = A)
trigger1 = (p2bodydist x <= 35) && (random <= 750)
value = 630

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2movetype = A) && (statetype = A)
trigger1 = (p2bodydist x <= 35) && (random <= 750)
value = 640

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (p2movetype = A) && (statetype = A)
trigger1 = (p2bodydist x <= 35) && (random <= 750)
value = 650

;-|-AI Super Attempt-|----------------------------------------------
[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x > 50) && (prevstateno != 5120) && (p2movetype != H) && (statetype != A)
value = 5356

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x > 100) && (prevstateno != 5120) && (p2movetype != H) && (statetype != A)
value = 8999


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x > 70) && (prevstateno != 5120) && (p2movetype != H) && (statetype = S)
value = 1984

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x > 10) && (prevstateno != 5120) && (P2StateType != A) && (statetype = S)
trigger1 = (numproj = 0) && (random = [0,300])
value = 1040

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x > 10) && (prevstateno != 5120) && (P2StateType != A) && (statetype = S)
trigger1 = (numproj = 0)
value = 10040

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x > 50) && (prevstateno != 5120) && (statetype = S)
trigger1 = p2bodydist y >-70 && p2bodydist y <70
value = 2765


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x > 50) && (prevstateno != 5120)  && (statetype = S)
value = 773

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x > 50) && (prevstateno != 5120) && (statetype = S)
value = 1030

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x > 70) && (prevstateno != 5120) && (statetype = S)
trigger1 =  (numproj = 0)
value = 1050

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x < 70) && (prevstateno != 5120) && (statetype = S)
trigger1 = (numproj = 0)
value = 1051

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x < 70) && (prevstateno != 5120) &&  (statetype = S)
trigger1 = (numproj = 0)
value = 10551

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x < 50) && (prevstateno != 5120) && (statetype = S)
value = 10511

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = S) && (random = [0,50])
trigger1 = (p2bodydist x < 80) && (prevstateno != 5120)  && (statetype = S)
value = 1080

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (statetype = C)
trigger1 = (p2bodydist x < 80) && (prevstateno != 5120) && (statetype = S)
value = 728


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = A) && (random = [0,50])
triggerall =  (prevstateno != 5120) && (p2movetype != H) && (statetype = A)
trigger1 = P2bodydist Y > 30
value = 13011

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (Statetype = A) && (random = [0,50])
trigger1 = (p2bodydist x < 50) && (prevstateno != 5120) && (p2movetype != H) && (statetype = A)
trigger1 = p2bodydist y > 30
value = 1010

;-|-AI Attempt Hyper-|---------------------------------------------
[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (statetype != A)
triggerall = (prevstateno != 5120)
trigger1 = (power >= 1000) && (random = [0,200])
value = 3999

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (statetype != A)
triggerall = (prevstateno != 5120)
trigger1 = (power >= 1000) && (random = [0,300])
value = 10224


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (statetype != A)
triggerall = (prevstateno != 5120)
trigger1 = (power >= 1000) && (random = [0,300])
value = 3111


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (statetype != A)
triggerall = (prevstateno != 5120)
trigger1 = (power >= 1000) && (random = [0,300])
value = 2100

[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (statetype != A)
triggerall = (prevstateno != 5120)
trigger1 = (power >= 1000) && (random = [0,300])
value = 2101


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (statetype != A)
triggerall = (prevstateno != 5120)
trigger1 = (power >= 1000) && (random = [0,300])
value = 702


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (statetype != A)
triggerall = (prevstateno != 5120)
trigger1 = (power >= 1000) && (random = [0,200])
value = 3702


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (statetype != A)
triggerall = (prevstateno != 5120)
trigger1 = (power >= 1000) && (random = [0,300])
value = 3000


[State -1]
type = ChangeState
triggerall = (roundstate = 2) && (var(59) != 0)
triggerall = (Ctrl) && (statetype != A)
triggerall = (prevstateno != 5120)
trigger1 = (power >= 1000) && (random = [0,300])
value = 3400

;Roll Forward
[State -1, Roll Forward]
type = ChangeState
value = 8300
triggerall = command = "holdfwd"
triggerall = time = 1
trigger1 = (stateno = 5120) && (alive = 1)

;Roll Back
[State -1, Roll Back]
type = ChangeState
value = 8305
triggerall = command = "holdback"
triggerall = time = 1
trigger1 = (stateno = 5120) && (alive = 1)
;===========================================================================
;=============================HYPERS========================================

[State -1, Call zarros]
type = ChangeState
value = 3999
triggerall = power >= 1000
triggerall = numhelper(3998) = 0
triggerall = numhelper(32001) = 0
triggerall = command = "emperorj"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16

;joker bomb super
[State -1, Beam Z]
type = ChangeState
value = 10224
triggerall = command = "jbombsuper"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13

;------------------------(Fight Hyper1)--------
[State -1,Hyper 1]
type = ChangeState
value = 3111
triggerall = command = "FightHyper1"
trigger1 = statetype != A
trigger1 = power >= 1500
trigger1 = ctrl


[State -1, explosivecard1]
type = ChangeState
value = 2100
triggerall = command = "explosivecard1"
triggerall = power >= 1000
triggerall = numhelper(8005) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13


[State -1, explosivecard2]
type = ChangeState
value = 2101
triggerall = command = "explosivecard2"
triggerall = power >= 1000
triggerall = numhelper(8005) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13


;-------------------------------------------------------------------------------
;Shotgun
[State -1, Shotgun]
type = ChangeState
value = 702
triggerall = power >= 1000
triggerall = command = "Shotgun"
trigger1 = (statetype != A) && ctrl
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13

;Bazooka
[State -1, Bazooka]
type = ChangeState
value = 3702
triggerall = command = "bazooka"
triggerall = numhelper(99204) = 0
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13





;---------------------------------------------------------------------------
; Gas Baloon
[State -1]
type = ChangeState
value = 3000
triggerall = command = "gasbaloon1" || command = "gasbaloon2"
triggerall = numhelper(1003) = 0
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact && stateno = 200
trigger3 = movecontact && stateno = 201
trigger4 = movecontact && stateno = 202
trigger5 = movecontact && stateno = 203
trigger6 = movecontact && stateno = 210
trigger7 = movecontact && stateno = 211
trigger8 = movecontact && stateno = 214
trigger9 = movecontact && stateno = 230
trigger10 = movecontact && stateno = 231
trigger11 = movecontact && stateno = 233
trigger12 = movecontact && stateno = 240
trigger13 = movecontact && stateno = 241
trigger14 = movecontact && stateno = 400
trigger15 = movecontact && stateno = 401
trigger16 = movecontact && stateno = 410
trigger17 = movecontact && stateno = 411
trigger18 = movecontact && stateno = 415
trigger19 = movecontact && stateno = 430

;---------------------------------------------------------------------------
;Spinning card slash
[State -1]
type = ChangeState
value = 3400
triggerall = command = "spinning card slash"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact && stateno = 200
trigger3 = movecontact && stateno = 201
trigger4 = movecontact && stateno = 202
trigger5 = movecontact && stateno = 203
trigger6 = movecontact && stateno = 210
trigger7 = movecontact && stateno = 211
trigger8 = movecontact && stateno = 214
trigger9 = movecontact && stateno = 230
trigger10 = movecontact && stateno = 231
trigger11 = movecontact && stateno = 233
trigger12 = movecontact && stateno = 240
trigger13 = movecontact && stateno = 241
trigger14 = movecontact && stateno = 400
trigger15 = movecontact && stateno = 401
trigger16 = movecontact && stateno = 410
trigger17 = movecontact && stateno = 411
trigger18 = movecontact && stateno = 415
trigger19 = movecontact && stateno = 430

;---------------------------------------------------------------------------
 ;Specials
;===========================================================================
;joker bomb
[State -1, Beam Z]
type = ChangeState
value = 5356
triggerall = command = "jbomb"
triggerall = numhelper(5355) = 0
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13

;PENGUIN
[State -1, Beam Z]
type = ChangeState
value = 8999
triggerall = command = "penguin"
triggerall = statetype = S
trigger1 = NumHelper(8998) = 0
;trigger1 = NumHelper(8998) = 0
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13

;acid attack
[State -1]
type = ChangeState
value = 1984
triggerall = command = "Acid"
triggerall = statetype = S
triggerall = numhelper(1551) = 0
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13

;---------------------------------------------------------------------------
;Gas
[State -1]
type = ChangeState
value = 1040
triggerall = command = "Gas"
triggerall = numhelper(1045) = 0
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = movecontact && stateno = 200
trigger3 = movecontact && stateno = 201
trigger4 = movecontact && stateno = 202
trigger5 = movecontact && stateno = 203
trigger6 = movecontact && stateno = 210
trigger7 = movecontact && stateno = 211
trigger8 = movecontact && stateno = 214
trigger9 = movecontact && stateno = 230
trigger10 = movecontact && stateno = 231
trigger11 = movecontact && stateno = 233
trigger12 = movecontact && stateno = 240
trigger13 = movecontact && stateno = 241
trigger14 = movecontact && stateno = 400
trigger15 = movecontact && stateno = 401
trigger16 = movecontact && stateno = 410
trigger17 = movecontact && stateno = 411
trigger18 = movecontact && stateno = 415
trigger19 = movecontact && stateno = 430


;---------------------------------------------------------------------------
[State -1, Air Card]
type = ChangeState
value = 13011
triggerall = command = "jokerairx" || command = "jokerairy" || command = "jokerairz"
triggerall = numprojid(1000) = 0
triggerall = numhelper(1005) = 0
trigger1 = statetype = A
trigger1 = stateno != [100, 105]
trigger1 = ctrl
trigger2 = stateno = 600 && MoveContact
trigger3 = stateno = 610 && MoveContact
trigger4 = stateno = 630 && MoveContact
trigger5 = stateno = 640 && MoveContact
trigger6 = stateno = 660 && MoveContact
;---------------------------------------------------------------------------
;Gas attack
[State -1]
type = ChangeState
value = 10040
triggerall = command = "Gas&gun" || command = "Gas&gun"
triggerall = numhelper(10045) = 0
triggerall = numhelper(1773) = 0
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = movecontact && stateno = 200
trigger3 = movecontact && stateno = 201
trigger4 = movecontact && stateno = 202
trigger5 = movecontact && stateno = 203
trigger6 = movecontact && stateno = 210
trigger7 = movecontact && stateno = 211
trigger8 = movecontact && stateno = 214
trigger9 = movecontact && stateno = 230
trigger10 = movecontact && stateno = 231
trigger11 = movecontact && stateno = 233
trigger12 = movecontact && stateno = 240
trigger13 = movecontact && stateno = 241
trigger14 = movecontact && stateno = 400
trigger15 = movecontact && stateno = 401
trigger16 = movecontact && stateno = 410
trigger17 = movecontact && stateno = 411
trigger18 = movecontact && stateno = 415
trigger19 = movecontact && stateno = 430

;flag shot
[State -1, Beam Z]
type = ChangeState
value = 2765
triggerall = command = "flag"
trigger1 = (statetype = s) && ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13

;---------------------------------------------------------------------------

;Handgunlow
[State -1, Handgunlow]
type = ChangeState
value = 773
triggerall = command = "Handgunlow"
trigger1 = (statetype = s) && ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13

;---------------------------------------------------------------------------
;
;card projectile
[State -1]
type = ChangeState
value = 1030
triggerall = command = "cardproj1" || command = "cardproj2"
triggerall = numhelper(1035) = 0
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13

;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 1050
triggerall = command = "jokerfishproj"
triggerall = numhelper(1055) = 0
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13
;---------------------------------------------------------------------------
; Weak Electricity
[State -1, Weak Electricity]
type = ChangeState
value = 1051
triggerall = command = "Weak Electricity"
trigger1 = Statetype = s
trigger1 = ctrl
trigger2 = Stateno = [200, 250]
trigger2 = Stateno != 215
trigger2 = Stateno != 235
trigger2 = MoveContact
trigger3 = Stateno = [400, 450]
trigger3 = MoveContact
trigger4 = Stateno = [150, 153]
trigger4 = Var(3) = 0
trigger4 = Power >= 300

;---------------------------------------------------------------------------
; Medium Electricity
[State -1, Medium Electricity]
type = ChangeState
value = 10551
triggerall = command = "Medium Electricity"
trigger1 = Statetype = s
trigger1 = ctrl
trigger2 = Stateno = [200, 250]
trigger2 = Stateno != 215
trigger2 = Stateno != 235
trigger2 = MoveContact
trigger3 = Stateno = [400, 450]
trigger3 = MoveContact
trigger4 = Stateno = [150, 153]
trigger4 = Var(3) = 0
trigger4 = Power >= 350

;---------------------------------------------------------------------------
; Strong Electricity
[State -1, Strong Electricity]
type = ChangeState
value = 10511
triggerall = command = "Strong Electricity"
trigger1 = Statetype = s
trigger1 = ctrl
trigger2 = Stateno = [200, 250]
trigger2 = Stateno != 215
trigger2 = Stateno != 235
trigger2 = MoveContact
trigger3 = Stateno = [400, 450]
trigger3 = MoveContact
trigger4 = Stateno = [150, 153]
trigger4 = Var(3) = 0
trigger4 = Power >= 400



;---------------------------------------------------------------------------
;Bloody Parasol
[State -1]
type = ChangeState
value = 1010
triggerall = statetype = A
triggerall = command = "holddown" && command = "x" || command = "holddown" && command = "y"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = movecontact && stateno = 600
trigger3 = movecontact && stateno = 605
trigger4 = movecontact && stateno = 610
trigger5 = movecontact && stateno = 615
trigger6 = movecontact && stateno = 210
trigger7 = movecontact && stateno = 630
trigger8 = movecontact && stateno = 640
;---------------------------------------------------------------------------
;Boxing glove
[State -1]
type = ChangeState
value = 1080
triggerall = command = "BOXING GLOVE"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13
;---------------------------------------------------------------------------
;Boxing glove
[State -1, Crouch Hard Punch]
type = ChangeState
value = 728
triggerall = command = "BOXING GLOVE2"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && MoveContact
trigger3 = stateno = 230 && MoveContact
trigger4 = stateno = 210 && MoveContact
trigger5 = stateno = 240 && MoveContact
trigger6 = stateno = 400 && MoveContact
trigger7 = stateno = 430 && MoveContact
trigger8 = stateno = 410 && MoveContact
trigger9 = stateno = 440 && MoveContact


;---------------------------------------------------------------------------
;Forward Dodge
[State -1]
type = ChangeState
value = 1205
triggerall = statetype != A
triggerall = command = "holdfwd" && command = "x" && command = "a"
trigger1 = ctrl

;---------------------------------------------------------------------------
;Dodge
[State -1]
type = ChangeState
value = 1200
triggerall = statetype != A
triggerall = command = "x" && command = "a"
trigger1 = ctrl


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

;---------------------------------------------------------------------------
[State -1, Throw 1]
type = ChangeState
value = 800
triggerall = command = "fwd_y" || command = "fwd_z" || command = "back_y" || command = "back_z"
triggerall = statetype = S
triggerall = stateno != 100
triggerall = p2bodydist x <= 10
triggerall = p2movetype != H
triggerall = p2statetype != A
triggerall = p2stateno != 5120
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1 && time > 8
trigger3 = stateno = 210 && movecontact = 1 && time > 15
trigger4 = stateno = 220 && movecontact = 1 && time > 19
trigger5 = stateno = 230 && movecontact = 1 && time > 8
trigger6 = stateno = 240 && movecontact = 1 && time > 8
trigger7 = stateno = 250 && movecontact = 1 && time > 11
trigger8 = stateno = 400 && movecontact = 1 && time > 8
trigger9 = stateno = 410 && movecontact = 1 && time > 10
trigger10 = stateno = 420 && movecontact = 1 && time > 16
trigger11 = stateno = 430 && movecontact = 1 && time > 10
trigger12 = stateno = 440 && movecontact = 1 && time > 10
trigger13 = stateno = 450 && movecontact = 1 && time > 13

;===========================================================================
;---------------------------------------------------------------------------
;Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
; Standing basics
;
; Punches: 200, 210, 220
; Kicks: 230, 240, 250
;---------------------------------------------------------------------------
; Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = ctrl


;---------------------------------------------------------------------------
; Stand Medium Punch
[State -1, Stand Medium Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && MoveContact
trigger3 = stateno = 230 && MoveContact
trigger4 = stateno = 240 && MoveContact


;---------------------------------------------------------------------------
; Stand Hard Punch
[State -1, Stand Hard Punch]
type = ChangeState
value = 220
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

;---------------------------------------------------------------------------
; 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 = 200 && 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 Hard Kick
[State -1, Stand Hard 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 = 230 && MoveContact
trigger5 = stateno = 240 && MoveContact
trigger6 = stateno = 410 && MoveContact

;---------------------------------------------------------------------------
; Crouching basics
;---------------------------------------------------------------------------
; Crouch Light Punch
[State -1, Crouch Light Punch]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl


;---------------------------------------------------------------------------
; Crouch Medium Punch
[State -1, Crouch Medium Punch]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && MoveContact
trigger3 = stateno = 230 && MoveContact
trigger4 = stateno = 250 && MoveContact
trigger5 = stateno = 400 && MoveContact
trigger6 = stateno = 430 && MoveContact


;---------------------------------------------------------------------------
; Crouch Hard Punch
[State -1, Crouch Hard Punch]
type = ChangeState
value = 420
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && MoveContact
trigger3 = stateno = 230 && MoveContact
trigger4 = stateno = 210 && MoveContact
trigger5 = stateno = 240 && MoveContact
trigger6 = stateno = 400 && MoveContact
trigger7 = stateno = 430 && MoveContact
trigger8 = stateno = 410 && 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 = 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 Hard Kick
[State -1, Crouch Hard Kick]
type = ChangeState
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && MoveContact
trigger3 = stateno = 230 && MoveContact
trigger4 = stateno = 210 && MoveContact
trigger5 = stateno = 240 && MoveContact
trigger6 = stateno = 400 && MoveContact
trigger7 = stateno = 430 && MoveContact
trigger8 = stateno = 410 && MoveContact
trigger9 = stateno = 440 && MoveContact

;---------------------------------------------------------------------------
; Air basics
;---------------------------------------------------------------------------
; Air Light Punch
[State -1, Air Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl


;---------------------------------------------------------------------------
; Air Medium Punch
[State -1]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && MoveContact
trigger3 = stateno = 630 && MoveContact

;---------------------------------------------------------------------------
; Air Hard Punch
[State -1, Air Hard Punch]
type = ChangeState
value = 620
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && MoveContact
trigger3 = stateno = 610 && MoveContact
trigger4 = stateno = 630 && MoveContact
trigger5 = stateno = 640 && MoveContact

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

;---------------------------------------------------------------------------
; Air Medium Kick
[State -1, Air 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

;---------------------------------------------------------------------------
; Air Hard Kick
[State -1, Air Hard Kick]
type = ChangeState
value = 650
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && MoveContact
trigger3 = stateno = 610 && MoveContact
trigger4 = stateno = 630 && MoveContact
trigger5 = stateno = 640 && MoveContact
;---------------------------------------------------------------------------
;super jump
[state -1, super jump]
type = changestate
value = 7000
trigger1 = command = "superjump"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = command = "holdup"
trigger2 = stateno = 420
trigger2 = movehit




