[Data]
life = 1000
power = 3000
attack = 100
defence = 100
fall.defence_up = 50
liedown.time = 60
airjuggle = 15
sparkno = 2
guard.sparkno = 40
KO.echo = 0
volume = 200
IntPersistIndex = 30
FloatPersistIndex = 40

[Size]
xscale = 1.2
yscale = 1.2
ground.back = 22
ground.front = 23
air.back = 30
air.front = 12
height = 96
attack.dist = 160
proj.attack.dist = 90
proj.doscale = 0
head.pos = 13, -51
mid.pos = -2, -27
shadowoffset = 0
draw.offset = 0,0

[Velocity]
walk.fwd  = 3
walk.back = -3
run.fwd  = 7, 0
run.back = -6.5,-4
jump.neu = 0,-9.3
jump.back = -2.55
jump.fwd = 2.5
runjump.back = -2.55,-9.5
runjump.fwd = 4,-9.5
airjump.neu = 0,-9.5
airjump.back = -2.55
airjump.fwd = 2.5

[Movement]
airjump.num = 0
airjump.height = 35
yaccel = .44
stand.friction = .85
crouch.friction = .82

;---------------------------------------------------------------------------
; Stand
[Statedef 0]
type = S
physics = S
sprpriority = 0

[State 0, 1]
type = ChangeAnim
trigger1 = Anim != 0 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0 ;Turn anim over
value = 0

[State 0, 1a]
type = ChangeAnim
trigger1 = prevstateno = 4001
value = 1810

[State 0, 1b]
type = ChangeAnim
trigger1 = prevstateno = 4101
value = 1811

[State 0, 1c]
type = ChangeAnim
trigger1 = prevstateno = 4201
value = 1812

[State 0, 2]
type = VelSet
trigger1 = Time = 0
y = 0

[State 0, 3] ;Stop moving if low velocity or 4 ticks pass
type = VelSet
trigger1 = abs(vel x) < 2
trigger2 = Time = 4
x = 0

[State 0, 4] ;Are you dead?
type = ChangeState
trigger1 = !alive
value = 5050

;---------------------------------------------------------------------------
; Lose by Time Over
[Statedef 170]
type = S
ctrl = 0
anim = 170
velset = 0,0

[State 170, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;---------------------------------------------------------------------------
; HIT_LIEDEAD
[Statedef 5150]
type    = L
movetype= H
physics = N
sprpriority = -3

[State 5150, 1] ;Normal anim
type = ChangeAnim
triggerall = Time = 0
triggerall = SelfAnimExist(5140)
trigger1 = (anim != [5111,5119]) && (anim != [5171,5179])
trigger2 = !SelfAnimExist(5140 + (anim % 10))
value = 5140

[State 5150, 3] ;Hit up type anim
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (anim = [5111,5119]) || (anim = [5171,5179])
trigger1 = SelfAnimExist(5140 + (anim % 10))
value = 5140 + (anim % 10)

[State 5150, 4] ;Match over anim
type = ChangeAnim
persistent = 0
;trigger1 = Time = 0
trigger1 = MatchOver = 1
trigger1 = Anim = [5140,5149]
trigger1 = SelfAnimExist(anim+10)
value = anim+10

[State 5150, 5] ;Switch to 5110 if liedead anim does not exist
type = ChangeAnim
trigger1 = Time = 0
trigger1 = Anim != [5140,5159]
trigger1 = Anim != [5110,5119]
value = 5110

[State 5150, 6] ;Friction
type = VelMul
trigger1 = 1
x = 0.85

[State 5150, 7] ;Friction
type = VelSet
trigger1 = Vel x < .05
persistent = 0
x = 0

[State 5150, 8]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;----
;Claytalities
[State 0, 1b]
type = ChangeAnim
triggerall = animexist(7689)
trigger1 = prevstateno = 4106
value = 7689
elem = 4

[State 0, 1b]
type = AngleDraw
triggerall = !animexist(7689)
trigger1 = prevstateno = 4106
value = 0
scale = 1,0.3

[State 0, Half]
type = ChangeAnim
triggerall = selfanimexist(7710)
trigger1 = prevstateno = 4205
value = 7710

[State 1000, Half]
type = Explod
triggerall = selfanimexist(7710)
trigger1 = prevstateno = 4205
trigger1 = time = 45
anim = 7713
pos = -60,0
postype = p1
sprpriority = 4
shadow = -1
removetime = 9999

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Win state decider
[Statedef 180]
type = S

[State 180, VarRandom]
type = VarRandom
trigger1 = Time = 0
v = 10
range = 0,20

[State 180, Win 1] 
type = ChangeState
trigger1 = Time = 1
trigger1 = var(10) = [0,10]
value = 181

[State 180, Win 2] 
type = ChangeState
trigger1 = Time = 1
trigger1 = var(10) = [11,20]
value = 182

;----
;Claytalities
[State 180, FromLFM]
type = ChangeState
trigger1 = Time = 0
trigger1 = var(0)
value = 1810

[State 180, FromSS]
type = ChangeState
trigger1 = Time = 0
trigger1 = var(1)
value = 1811

[State 180, FromKOTH]
type = ChangeState
trigger1 = Time = 0
trigger1 = var(2)
value = 1810

;---------------------------------------------------------------------------
; Win pose 1
[Statedef 181, Pose]
type = S
ctrl = 0
anim = 180
velset = 0,0

[State 190, 0]
type = PlaySnd
trigger1 = animelem = 7
value = 0,0

[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

; Win pose 2
[Statedef 182, Pose 2]
type = S
ctrl = 0
anim = 181
velset = 0,0

[State 190, voz]
type = PlaySnd
trigger1 = time = 0
value = 0,2

[State 190, suelo]
type = PlaySnd
trigger1 = animelem = 3
trigger2 = animelem = 6
value = 1,4

[State 1000, salto1]
type = Explod
trigger1 = animelem = 2
anim = 182
pos = 0,0
postype = p1
persistent = 0
shadow = -1
scale = 1.2,1.2
vel = 0,-5
accel = 0,.5
removetime = 20
facing = -1

[State 1000, salto2]
type = Explod
trigger1 = animelem = 5
anim = 182
pos = 0,0
postype = p1
persistent = 0
shadow = -1
scale = 1.2,1.2
vel = 0,-5
accel = 0,.5
removetime = 20
facing = 1

[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;---------------------------------------------------------------------------
; Win claytality 1
[Statedef 1810, Launch from MUGEN/Knock Off Top Half]
type = S
ctrl = 0
anim = 1810
velset = 0,0

[State 181, claytality]
type = PlaySnd
trigger1 = time = 5
value = 4,1

[State 181, aplausos]
type = PlaySnd
trigger1 = time = 0
value = 5,1

[State 181, ct-time]
type = AssertSpecial
trigger1 = time < 300
flag = roundnotover

[State 1000, CB]
type = Explod
trigger1 = time = 5
anim = 11900
pos = 160,100
postype = left
persistent = 0
shadow = -1
ontop = 1

[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

; Win claytality 2
[Statedef 1811, Squish]
type = S
ctrl = 0
anim = 1811
velset = 0,0

[State 181, claytality]
type = PlaySnd
trigger1 = time = 5
value = 4,1

[State 181, aplausos]
type = PlaySnd
trigger1 = time = 0
value = 5,1

[State 181, ct-time]
type = AssertSpecial
trigger1 = time < 300
flag = roundnotover

[State 1000, CB]
type = Explod
trigger1 = time = 5
anim = 11900
pos = 160,100
postype = left
persistent = 0
shadow = -1
ontop = 1

[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Introduction
[Statedef 190]
type = S
ctrl = 0
velset = 0,0

[State 180, VarRandom]
type = VarRandom
trigger1 = Time = 0
v = 11
range = 0,20

[State 180, Intro 1] 
type = ChangeState
trigger1 = Time = 1
trigger1 = var(11) = [0,10]
value = 191

[State 180, Intro 2] 
type = ChangeState
trigger1 = Time = 1
trigger1 = var(11) = [11,20]
value = 192

[State 180, vs. Hoppy/T-Hoppy] 
type = null;ChangeState
triggerall = Time = 0
trigger1 = (p2name = "CF 63 1/3 T-Hoppy") || (p4name = "T-Hoppy")
trigger2 = (p2name = "T-Hoppy") || (p4name = "T-Hoppy")
trigger3 = (p2name = "Hoppy") || (p4name = "Hoppy")
trigger4 = (p2name = "Sarge") || (p4name = "Sarge")
value = 193

;------
;Intro 1 - Generico
[Statedef 191, Corriendo]
type = S
ctrl = 0
anim = 190
velset = 0,0

[State 190, 2]
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 1000, run]
type = Explod
trigger1 = time = 20
anim = 20;192
pos = -120,0
sprpriority = 4
postype = p1
persistent = 0
vel = 3,0
removetime = 40;100
shadow = -1
scale = 1.2,1.2

[State 190, anunc]
type = PlaySnd
trigger1 = time = 0
value = 4,0

[State 190, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0

;------
;Intro 2 - Hulking Up
[Statedef 192, Sarge]
type = S
ctrl = 0
anim = 191
velset = 0,0

[State 192, 0]
type = SprPriority
trigger1 = Time >= 0
value = 4

[State 191, 2]
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 190, ice]
type = PlaySnd
trigger1 = animelem = 4
value = 0,0

[State 193, 9]
type = ChangeState
trigger1 = animtime = 0
value = 0

;------
;Intro 3 - Baseball Cap
[Statedef 193, vs. Frosty]
type = S
ctrl = 0
anim = 192
velset = 0,0

[State 192, 0]
type = SprPriority
trigger1 = Time >= 0
value = 4

[State 1000, run]
type = Explod
trigger1 = time = 20
anim = 20;192
pos = -120,0
sprpriority = 4
postype = p1
persistent = 0
vel = 3,0
removetime = 40;100
shadow = -1
scale = 1.2,1.2

[State 191, 2]
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 190, ice]
type = PlaySnd
trigger1 = animelem = 5
value = 0,0

[State 193, 9]
type = ChangeState
trigger1 = animtime = 0
value = 0

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Burla
[Statedef 195]
type = S
ctrl = 0
anim = 195
velset = 0,0

[State 190, 0]
type = PlaySnd
trigger1 = time = 1
value = 0,0

[State 195, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Golpe Debil Parado (lejos)
[Statedef 200]
type = S
movetype = A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
anim = 200
poweradd = 20
sprpriority = 2

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,0

[State 200, 1]
type = HitDef
trigger1 = time = 0
attr = S, NA
damage = 20, 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 8, 8
sparkxy = -10, -50
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,0
guardsound = s1,5
ground.type = Low
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 200, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;------
; Golpe Debil Parado (cerca)
[Statedef 205]
type = S
movetype = A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
anim = 205
poweradd = 20
sprpriority = 2

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,0

[State 200, 1]
type = HitDef
trigger1 = time = 0
attr = S, NA
damage = 20, 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 8, 8
sparkxy = -10, -66
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,0
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 200, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; Golpe Medio Parado
[Statedef 210]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 80
ctrl = 0
velset = 0,0
anim = 210

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,1

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = S, NA
damage = 40, 1
animtype = Medium
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 10, 12
sparkxy = -10, -48
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,1
guardsound = s1,5
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -5
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -2.2,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 220, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; Golpe Fuerte Parado (lejos)
[Statedef 220]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 80
ctrl = 0
velset = 0,0
anim = 220

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 220, 1];normal
type = HitDef
trigger1 = time = 0
attr = S, NA
damage = 60, 2
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkxy = -10, -50
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,2
guardsound = s1,5
ground.type = Low
ground.slidetime = 15
ground.hittime  = 15
ground.velocity = -6
airguard.velocity = -1.9,-.8
air.velocity = -4,-2
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 220, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;------
; Golpe Fuerte Parado (cerca)
[Statedef 225]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 80
ctrl = 0
velset = 0,0
anim = 225

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 220, 1];normal
type = HitDef
trigger1 = animelem = 3
attr = S, NA
damage = 60, 2
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkxy = 0, -74
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 15
ground.hittime  = 15
ground.velocity = -6
airguard.velocity = -1.9,-.8
air.velocity = -4,-2
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 220, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; Patada Debil Parado (lejos)
[Statedef 230]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 22
ctrl = 0
velset = 0,0
anim = 230

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,0

[State 230, 1]
type = HitDef
trigger1 = time = 0
attr = S, NA
damage = 20, 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 8, 8
sparkxy = -10, -54
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,0
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 230, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;------
; Patada Debil Parado (cerca)
[Statedef 235]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 22
ctrl = 0
velset = 0,0
anim = 235

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,0

[State 230, 1]
type = HitDef
trigger1 = time = 0
attr = S, NA
damage = 20, 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 8, 8
sparkxy = -10, -30
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,0
guardsound = s1,5
ground.type = low
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 230, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; Patada Media Parado (lejos)
[Statedef 240]
type    = S
movetype= A
physics = S
juggle  = 5
poweradd= 95
ctrl = 0
velset = 0,0
anim = 240

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,1

[State 250, 1]
type = HitDef
trigger1 = time = 0
attr = S, NA
damage = 40, 1
animtype = Medium
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 8, 8
sparkxy = -10, -38
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,3
guardsound = s1,5
ground.type = Low
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -5,0
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 250, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;------
; Patada Media Parado (cerca)
[Statedef 245]
type    = S
movetype= A
physics = S
juggle  = 5
poweradd= 95
ctrl = 0
velset = 0,0
anim = 245

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,1

[State 250, 1]
type = HitDef
trigger1 = time = 0
attr = S, NA
damage = 40, 1
animtype = Medium
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 8, 8
sparkxy = -10, -26
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,3
guardsound = s1,5
ground.type = Low
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -5,0
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 250, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; Patada Fuerte Parado (lejos)
[Statedef 250]
type    = S
movetype= A
physics = S
juggle  = 5
poweradd= 95
ctrl = 0
velset = 0,0
anim = 250

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 250, 1]
type = HitDef
trigger1 = time = 0
attr = S, NA
damage = 60, 2
animtype = Hard
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 12, 12
sparkxy = -10, -54
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,2
guardsound = s1,5
ground.type = Low
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -6
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 250, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;------
; Patada Fuerte Parado (cerca)
[Statedef 255]
type    = S
movetype= A
physics = S
juggle  = 5
poweradd= 95
ctrl = 0
velset = 0,0
anim = 255

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 250, 1]
type = HitDef
trigger1 = time = 0
attr = S, NA
damage = 60, 2
animtype = Hard
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 12, 12
sparkxy = -10, -43
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,2
guardsound = s1,5
ground.type = Low
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -6
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 250, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Launcher
[Statedef 260]
type    = S
movetype= A
physics = S
juggle  = 15
poweradd= 95
ctrl = 0
velset = 0,0
anim = 260

[State 1030, 1]
type = PlaySnd
trigger1 = time = 0
value = 0,0

[State 190, 2]
type = PlaySnd
trigger1 = animelem = 1
value = 1,2

[State 250, 1]
type = HitDef
trigger1 = animelem = 2
attr = C, NA
damage = 70, 5
animtype = Up
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 15, 15
sparkxy = -10, -39
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,2
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = 0,-20
air.velocity = -0,-20
fall = 1
air.fall = 1
fall.recover = 0
air.recover = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 245, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Golpe Debil Agachado
[Statedef 400]
type    = C
movetype= A
physics = C
juggle  = 5
poweradd= 15
ctrl = 0
anim = 400

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,0

[State 200, 1]
type = HitDef
trigger1 = time = 0
attr = C, NA
damage = 20, 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 8, 8
sparkxy = -10, -53
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,0
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 430, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

;---------------------------------------------------------------------------
; Golpe Medio Agachado
[Statedef 410]
type    = C
movetype= A
physics = C
juggle  = 6
poweradd= 50
ctrl = 0
anim = 410

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,1

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = C, NA
damage = 40, 1
animtype = Medium
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 10, 12
sparkxy = -10, -55
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,3
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -5
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 430, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

;---------------------------------------------------------------------------
; Golpe Fuerte Agachado
[Statedef 420]
type    = C
movetype= A
physics = C
juggle  = 6
poweradd= 50
ctrl = 0
anim = 420

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 250, 1]
type = HitDef
trigger1 = time = 0
attr = C, NA
damage = 60, 2
animtype = Hard
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 12,15
sparkxy = -10, -28
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,2
guardsound = s1,5
ground.type = Low
ground.slidetime = 15
ground.hittime  = 12
ground.velocity = -6
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -2,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 430, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

;---------------------------------------------------------------------------
; Patada Debil Agachado
[Statedef 430]
type    = C
movetype= A
physics = C
juggle  = 5
poweradd= 22
ctrl = 0
anim = 430

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,0

[State 230, 1]
type = HitDef
trigger1 = time = 0
attr = C, NA
damage = 20, 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 8, 8
sparkxy = -5,-10
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,1
guardsound = s1,5
ground.type = Low
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 430, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

;---------------------------------------------------------------------------
; Patada Media Agachado
[Statedef 440]
type    = C
movetype= A
physics = C
juggle  = 7
poweradd= 70
ctrl = 0
anim = 440

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,1

[State 230, 1]
type = HitDef
trigger1 = time = 0
attr = C, NA
damage = 40, 1
animtype = Med
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 8, 8
sparkxy = -5,-30
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,4
guardsound = s1,5
ground.type = Low
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -5
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 450, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

;---------------------------------------------------------------------------
; Patada Fuerte Agachado
[Statedef 450]
type    = C
movetype= A
physics = C
juggle  = 7
poweradd= 70
ctrl = 0
anim = 450

[State 190, 2]
type = PlaySnd
trigger1 = time = 1
value = 1,2

[State 440, 3]
type = HitDef
trigger1 = time = 0
attr = C, NA
damage    = 60,2
hitflag = MAF
guardflag = L
pausetime = 15, 15
guard.pausetime = 14, 14
sparkxy = -5,-10
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,2
guardsound = s1,5
ground.type = Trip
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = -3,-2
air.velocity = -2.5,-2
guard.velocity = -5
fall = 1
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 450, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Golpe Debil Aereo
[Statedef 600]
type    = A
movetype= A
physics = A
juggle  = 2
poweradd= 11
ctrl = 0
anim = 600

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,0

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 20, 0
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkxy = -10, -36
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,0
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
; Golpe Debil Aereo (Vertical)
[Statedef 605]
type    = A
movetype= A
physics = A
juggle  = 2
poweradd= 11
ctrl = 0
anim = 605

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,0

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 20, 0
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkxy = -10, -42
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,0
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
; Golpe Medio Aereo
[Statedef 610]
type    = A
movetype= A
physics = A
juggle  = 2
poweradd= 11
ctrl = 0
anim = 610

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,1

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 40, 1
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkxy = -10, -33
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,4
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -5
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
; Golpe Medio Aereo (Vertical)
[Statedef 615]
type    = A
movetype= A
physics = A
juggle  = 2
poweradd= 11
ctrl = 0
anim = 615

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,1

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 40, 1
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkxy = -10, -40
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,4
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -5
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
; Golpe Fuerte Aereo
[Statedef 620]
type    = A
movetype= A
physics = A
juggle  = 4
poweradd= 70
ctrl = 0
anim = 620

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 60, 2
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkno = s11000
guard.sparkno = s11200
sparkxy = -10, -12
hitsound = s3,2
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -6
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
; Golpe Fuerte Aereo (Vertical)
[Statedef 625]
type    = A
movetype= A
physics = A
juggle  = 4
poweradd= 70
ctrl = 0
anim = 610

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 60, 2
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkno = s11000
guard.sparkno = s11200
sparkxy = -10, -33
hitsound = s3,2
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -6
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
; Patada Debil Aerea
[Statedef 630]
type    = A
movetype= A
physics = A
juggle  = 3
poweradd= 20
ctrl = 0
anim = 630

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,0

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 20, 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkno = s11000
guard.sparkno = s11200
sparkxy = -10, -48
hitsound = s3,1
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
; Patada Debil Aerea (Vertical)
[Statedef 635]
type    = A
movetype= A
physics = A
juggle  = 3
poweradd= 20
ctrl = 0
anim = 635

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,0

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 20, 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkno = s11000
guard.sparkno = s11200
sparkxy = -10, -36
hitsound = s3,1
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
; Patada Media Aerea
[Statedef 640]
type    = A
movetype= A
physics = A
juggle  = 3
poweradd= 20
ctrl = 0
anim = 640

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,1

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 40, 1
animtype = Medium
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkxy = -10, -36
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,4
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -5
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
; Patada Media Aerea (Vertical)
[Statedef 645]
type    = A
movetype= A
physics = A
juggle  = 3
poweradd= 20
ctrl = 0
anim = 645

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,1

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 40, 1
animtype = Medium
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkxy = -10, -38
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,4
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -5
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
; Patada Fuerte Aerea
[Statedef 650]
type    = A
movetype= A
physics = A
juggle  = 4
poweradd= 70
ctrl = 0
anim = 650

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 60, 2
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkno = s11000
guard.sparkno = s11200
sparkxy = 0, -48
hitsound = s3,2
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -6
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
; Patada Fuerte Aerea (Vertical)
[Statedef 655]
type    = A
movetype= A
physics = A
juggle  = 4
poweradd= 70
ctrl = 0
anim = 655

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 220, 1]
type = HitDef
trigger1 = time = 0
attr = A, NA
damage = 60, 2
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkno = s11000
guard.sparkno = s11200
sparkxy = 0, -102
hitsound = s3,2
guardsound = s1,5
ground.type = High
ground.slidetime = 5
ground.hittime  = 24
ground.velocity = -6
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Agarre 1
[Statedef 800]
type    = S
movetype= A
physics = S
juggle  = 0
velset = 0,0
ctrl = 0
anim = 800

[State 800, 1]
type = HitDef
Trigger1 = Time = 0
attr = S, NT
hitflag = M- 
priority = 1, Miss
sparkno = -1
sprpriority = 1
p1facing = 1
p2facing = 1
p1stateno = 801
p2stateno = 802
fall = 1
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 800, 2]
type = ChangeState
Trigger1 = AnimTime = 0
value = 0
ctrl = 1

;------
; Agarrando al oponente
[Statedef 801]
type    = S
movetype= A
physics = N
anim = 810
poweradd = 60

[State 810, Width 2-11]
type = Width
trigger1 = AnimElemTime(11) < 0
edge = 60,0

[State 810, Bind 2]
type = TargetBind
trigger1 = AnimElem = 1
pos = 40, 0

[State 810, Bind 2]
type = TargetBind
trigger1 = AnimElem = 1
pos = 20, 0

[State 810, Bind 3]
type = TargetBind
trigger1 = AnimElemTime(2) >= 0 && AnimElemTime(11) < 0
pos = 0, 0

[State 810, Bind 3]
type = TargetBind
trigger1 = AnimElem = 11
pos = 23, -20

[State 810, Hurt]
type = TargetLifeAdd
trigger1 = AnimElem = 6
trigger2 = AnimElem = 8
trigger3 = AnimElem = 10
value = -30
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1402, 1]
type = PlaySnd
trigger1 = AnimElem = 2
value = 1,2

[State 1402, 1]
type = PlaySnd
trigger1 = AnimElem = 4
trigger2 = AnimElem = 6
trigger3 = AnimElem = 8
trigger4 = AnimElem = 10
value = 3,2

[State 1402, 1]
type = HitAdd
trigger1 = AnimElem = 6
trigger2 = AnimElem = 8
trigger3 = AnimElem = 10
value = 1

[State 1000, golpe]
type = Explod
trigger1 = AnimElem = 4
trigger2 = AnimElem = 6
trigger3 = AnimElem = 8
trigger4 = AnimElem = 10
anim = 11000
pos = 0,-10
postype = p1
sprpriority = 4

[State 1402, 1]
type = PlaySnd
trigger1 = AnimElem = 11
value = 0,2

[State 810, Throw]
type = TargetState
trigger1 = AnimElem = 11
value = 803

[State 250, 5]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;------
; Adios oponente
[Statedef 802]
type    = A
movetype= H
physics = N
velset = 0,0

[State 820, 1]
type = ChangeAnim2
Trigger1 = Time = 0
value = 820

;-------
; Lanzado por los aires
[Statedef 803]
type    = A
movetype= H
physics = N
velset = -4, -3
poweradd = 40

[State 821, 1] ;Gravity
type = VelAdd
Trigger1 = 1
y = .4

[State 821, 2] ; Recover near ground (use ChangeState)
type = ChangeState
triggerall = Vel Y > 0
triggerall = Pos Y >= -20
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5200 ;HITFALL_RECOVER

[State 821, 3] ; Recover in mid air (use SelfState)
type = SelfState
triggerall = Vel Y > 0
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5210 ;HITFALL_AIRRECOVER

[State 821, 4] ;Hit ground
type = SelfState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 ;Hit ground

;---------------------------------------------------------------------------
; Agarre 2
[Statedef 850]
type    = S
movetype= A
physics = S
juggle  = 0
velset = 0,0
ctrl = 0
anim = 800

[State 800, 1]
type = HitDef
Trigger1 = Time = 0
attr = S, NT
hitflag = M- 
priority = 1, Miss
sparkno = -1
sprpriority = 1
p1facing = 1
p2facing = 1
p1stateno = 851
p2stateno = 852
fall = 1
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 800, 2]
type = ChangeState
Trigger1 = AnimTime = 0
value = 0
ctrl = 1

;------
; Agarrando al oponente
[Statedef 851]
type    = S
movetype= A
physics = N
anim = 850
poweradd = 60

[State 810, Width 2-11]
type = Width
trigger1 = AnimElem = 1
edge = 60,0

[State 810, Bind 1]
type = TargetBind
trigger1 = AnimElem = 1
pos = 22, 0

[State 810, Bind 2]
type = TargetBind
trigger1 = AnimElem = 2
pos = 29, 0

[State 810, Bind 3]
type = TargetBind
trigger1 = AnimElem = 3
pos = 42, -47

[State 810, Hurt]
type = TargetLifeAdd
trigger1 = AnimElem = 4
value = -100
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1402, hit]
type = PlaySnd
trigger1 = animelem = 4
value = 1,2

[State 810, Throw]
type = TargetState
trigger1 = AnimElem = 4
value = 853

[State 250, 5]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;------
; Adios oponente
[Statedef 852]
type    = A
movetype= H
physics = N
velset = 0,0

[State 820, 1]
type = ChangeAnim2
Trigger1 = Time = 0
value = 860

;-------
; Lanzado por los aires
[Statedef 853]
type    = A
movetype= H
physics = N
velset = 5, -8
poweradd = 40

[State 821, 1] ;Gravity
type = VelAdd
Trigger1 = 1
y = .4

[State 821, 2] ; Recover near ground (use ChangeState)
type = ChangeState
triggerall = Vel Y > 0
triggerall = Pos Y >= -20
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5200 ;HITFALL_RECOVER

[State 821, 3] ; Recover in mid air (use SelfState)
type = SelfState
triggerall = Vel Y > 0
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5210 ;HITFALL_AIRRECOVER

[State 821, 4] ;Hit ground
type = SelfState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 ;Hit ground

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; MOVIMIENTOS DE SARGE
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------

;FLYING KICK
;--------
;FK Debil
[Statedef 1000]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1000
ctrl = 0
poweradd = 100

[State 1100, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 1001

;-----------------
[Statedef 1001] ;elevandose
type = A
movetype = A
physics = N
juggle = 4
poweradd = 0
anim = 1001

[State 1030, hit]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 1030, Sarge]
type = PlaySnd
trigger1 = time = 0
value = 0,1

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = A, SA 
damage   = 100,10
guardflag = HA
animtype = heavy
pausetime = 17,17
guard.pausetime = 15,15
sparkxy =  -10,-20
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -5
air.velocity = -5
guard.velocity = -5
airguard.velocity = -5,-2
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 1
x = 5
y = -3

[State 1101, 1]
type = VelAdd
trigger1 = animelemtime(1) > 0
y = .45

[State 1101, 3]
type = ChangeState
trigger1 = Vel Y > 0 && Pos Y >= 0
value = 50

;---------------------------------------------------------------------------
;FK Medio
[Statedef 1050]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1000
ctrl = 0
poweradd = 100

[State 1100, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 1051

;-----------------
[Statedef 1051] ;elevandose
type = A
movetype = A
physics = N
juggle = 4
poweradd = 0
anim = 1001

[State 1030, hit]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 1030, Sarge]
type = PlaySnd
trigger1 = time = 0
value = 0,1

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = A, SA 
damage   = 110,10
guardflag = HA
animtype = heavy
pausetime = 17,17
guard.pausetime = 15,15
sparkxy =  -10,-20
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -5
air.velocity = -5
guard.velocity = -5
airguard.velocity = -5,-2
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)
air.fall = 1
air.recover = 0

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 1
x = 7
y = -4

[State 1101, 1]
type = VelAdd
trigger1 = animelemtime(1) > 0
y = .45

[State 1101, 3]
type = ChangeState
trigger1 = Vel Y > 0 && Pos Y >= 0
value = 50

;---------------------------------------------------------------------------
;FK Fuerte
[Statedef 1090]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1000
ctrl = 0
poweradd = 100

[State 1100, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 1091

;-----------------
[Statedef 1091] ;elevandose
type = A
movetype = A
physics = N
juggle = 4
poweradd = 0
anim = 1001

[State 1030, hit]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 1030, Sarge]
type = PlaySnd
trigger1 = time = 0
value = 0,1

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = A, SA 
damage   = 120,10
guardflag = HA
animtype = heavy
pausetime = 17,17
guard.pausetime = 15,15
sparkxy =  -10,-20
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -5
air.velocity = -5
guard.velocity = -5
airguard.velocity = -5,-2
fall = 1
air.fall = 1
fall.recover = 0
air.recover = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 1
x = 9
y = -5

[State 1101, 1]
type = VelAdd
trigger1 = animelemtime(1) > 0
y = .45

[State 1101, 3]
type = ChangeState
trigger1 = Vel Y > 0 && Pos Y >= 0
value = 50

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

;DASHING BOOT
;------------
;DB Debil
[Statedef 1100]
type = S
movetype = A
physics = N
juggle = 15
velset = 0
anim = 1100
ctrl = 0
poweradd = 100

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 190, 2]
type = PlaySnd
trigger1 = animelem = 2
value = 0,2

[State 190, 2]
type = velset
trigger1 = animelem = 2
x = 3

[State 190, 2]
type = velset
trigger1 = animelem = 4
x = 0

[State 220, 1];normal
type = HitDef
trigger1 = time = 0
attr = S, SA
damage = 100, 10
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkxy = -10, -25
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,2
guardsound = s1,5
ground.type = Low
ground.slidetime = 15
ground.hittime  = 15
ground.velocity = -8
airguard.velocity = -8,-.8
air.velocity = -8,-2
air.hittime = 18
air.fall = 1
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)
p1stateno = 1105

[State 220, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;DB Medio
[Statedef 1150]
type = S
movetype = A
physics = N
juggle = 15
velset = 0
anim = 1100
ctrl = 0
poweradd = 100

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 0,2

[State 190, 2]
type = velset
trigger1 = animelem = 2
x = 5

[State 190, 2]
type = velset
trigger1 = animelem = 4
x = 0

[State 190, 2]
type = PlaySnd
trigger1 = animelem = 2
value = 1,2

[State 220, 1];normal
type = HitDef
trigger1 = time = 0
attr = S, SA
damage = 110, 10
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkxy = -10, -25
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,2
guardsound = s1,5
ground.type = Low
ground.slidetime = 15
ground.hittime  = 15
ground.velocity = -10
airguard.velocity = -10,-.8
air.velocity = -10,-2
air.hittime = 18
air.fall = 1
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)
p1stateno = 1105

[State 220, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;DB Fuerte
[Statedef 1190]
type = S
movetype = A
physics = N
juggle = 15
velset = 0
anim = 1100
ctrl = 0
poweradd = 100

[State 190, 2]
type = PlaySnd
trigger1 = time = 0
value = 0,2

[State 190, 2]
type = velset
trigger1 = animelem = 2
x = 7

[State 190, 2]
type = velset
trigger1 = animelem = 4
x = 0

[State 190, 2]
type = PlaySnd
trigger1 = animelem = 2
value = 1,2

[State 220, 1];normal
type = HitDef
trigger1 = time = 0
attr = S, SA
damage = 120, 10
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 7, Hit
pausetime = 12, 15
sparkxy = -10, -25
sparkno = s11000
guard.sparkno = s11200
hitsound = s3,2
guardsound = s1,5
ground.type = Low
ground.slidetime = 15
ground.hittime  = 15
ground.velocity = -10
airguard.velocity = -10,-.8
air.velocity = -10,-2
air.hittime = 18
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)
p1stateno = 1105

[State 220, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;-----------------
[Statedef 1105] ;elevandose
type = S
movetype = I
physics = S
anim = 1105
velset = 0,0

[State 220, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

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

;JUGGLE KICK
;-----------
;JK Debil
[Statedef 1200]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1200
ctrl = 0
poweradd = 100

[State 1100, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 1201

;-----------------
[Statedef 1201] ;elevandose
type = A
movetype = A
physics = N
juggle = 4
poweradd = 0
anim = 1201

[State 1030, hit]
type = PlaySnd
trigger1 = animelem = 1
trigger2 = animelem = 3
value = 1,2

[State 1030, Jim]
type = PlaySnd
trigger1 = time = 0
value = 0,4

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = A, SA 
damage   = 90,10
animtype = heavy
guardflag = HA
pausetime = 17,17
guard.pausetime = 15,15
sparkxy =  0,-75
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -2,-4
air.velocity = -2,-4
guard.velocity = -4
airguard.velocity = -3,-2
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 1
x = 2
y = -3

[State 1101, VelSet]
Type = VelSet
trigger1 = animelem = 6
x = 0

[State 1101, 1]
type = VelAdd
trigger1 = animelemtime(6) > 0
y = .45

[State 1101, 3]
type = ChangeState
trigger1 = Vel Y > 0 && Pos Y >= 0
value = 50

;---------------------------------------------------------------------------
;JK Medio
[Statedef 1250]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1200
ctrl = 0
poweradd = 100

[State 1100, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 1251

;-----------------
[Statedef 1251] ;elevandose
type = A
movetype = A
physics = N
juggle = 4
poweradd = 0
anim = 1201

[State 1030, hit]
type = PlaySnd
trigger1 = animelem = 1
trigger2 = animelem = 3
value = 1,2

[State 1030, Jim]
type = PlaySnd
trigger1 = time = 0
value = 0,4

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = A, SA 
damage   = 100,10
guardflag = HA
animtype = heavy
pausetime = 17,17
guard.pausetime = 15,15
sparkxy =  0,-75
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -3,-5
air.velocity = -3,-5
guard.velocity = -5
airguard.velocity = -3,-2
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 1
x = 3
y = -4

[State 1101, VelSet]
Type = VelSet
trigger1 = animelem = 6
x = 0

[State 1101, 1]
type = VelAdd
trigger1 = animelemtime(6) > 0
y = .45

[State 1101, 3]
type = ChangeState
trigger1 = Vel Y > 0 && Pos Y >= 0
value = 50

;---------------------------------------------------------------------------
;JK Fuerte
[Statedef 1290]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1200
ctrl = 0
poweradd = 100

[State 1100, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 1291

;-----------------
[Statedef 1291] ;elevandose
type = A
movetype = A
physics = N
juggle = 4
poweradd = 0
anim = 1201

[State 1030, hit]
type = PlaySnd
trigger1 = animelem = 1
trigger2 = animelem = 3
value = 1,2

[State 1030, Jim]
type = PlaySnd
trigger1 = time = 0
value = 0,4

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = A, SA 
damage   = 110,10
guardflag = HA
animtype = heavy
pausetime = 17,17
guard.pausetime = 15,15
sparkxy =  0,-75
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -4,-6
air.velocity = -4,-6
guard.velocity = -6
airguard.velocity = -3,-2
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 1
x = 4
y = -5

[State 1101, VelSet]
Type = VelSet
trigger1 = animelem = 6
x = 0

[State 1101, 1]
type = VelAdd
trigger1 = animelemtime(6) > 0
y = .45

[State 1101, 3]
type = ChangeState
trigger1 = Vel Y > 0 && Pos Y >= 0
value = 50

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

;OVERHEAD ATTACK
;---------------
[Statedef 1400]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 40
ctrl = 0
poweradd = 100

[State 1100, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 1401

;-----------------
[Statedef 1401] ;elevandose
type = A
movetype = A
physics = N
juggle = 4
poweradd = 0
anim = 615

[State 1030, hit]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 1030, Jim]
type = null;PlaySnd
trigger1 = time = 0
value = 0,1

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = A, SA 
damage   = 100,10
animtype = heavy
guardflag = HA
pausetime = 20,20
guard.pausetime = 15,15
sparkxy =  0,-25
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -5
air.velocity = -5
guard.velocity = -5
airguard.velocity = -4,-2
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 1
x = 2
y = -4

[State 1101, 1]
type = VelAdd
trigger1 = animelemtime(2) >= 0
y = .45

[State 1101, 3]
type = ChangeState
trigger1 = Vel Y > 0 && Pos Y >= 0
value = 50

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

;SPINNING CARROT (Hoppy)
;-----------------------
;SC Debil
[Statedef 1300]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1300
ctrl = 0
poweradd = 100

[State 1030, 1]
type = PlaySnd
trigger1 = time = 0
value = 0,5

[State 1030, 1]
type = PlaySnd
trigger1 = animelem = 4
value = 1,2

[State 1001, bola]
type = Projectile
trigger1 = AnimElem = 5
projanim = 1301
projhitanim = 1302
projremanim = 1302
projcancelanim = 1302
projid = 1000
projpriority = 1
projshadow = 0
projscale = 1.2,1.2
offset = 21,-60
velocity = 3
attr = A, SP
damage = 90,6
animtype = heavy
guardflag = MA
hitflag = MAF
pausetime = 15, 15
guard.pausetime = 14, 14
sparkxy = 0,0
sparkno = s11000
guard.sparkno = s11200
hitsound = S3,2
guardsound = s1,5
ground.type = High
ground.slidetime = 9
ground.hittime = 15
ground.velocity = -5.5
air.velocity = -3.3, -4
guard.ctrltime = 39
airguard.velocity = -3, -1.5
air.fall = 0
air.juggle = 15
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1001, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;SC Medio
[Statedef 1350]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1300
ctrl = 0
poweradd = 100

[State 1030, 1]
type = PlaySnd
trigger1 = time = 0
value = 0,5

[State 1030, 1]
type = PlaySnd
trigger1 = animelem = 4
value = 1,2

[State 1001, bola]
type = Projectile
trigger1 = AnimElem = 5
projanim = 1301
projhitanim = 1302
projremanim = 1302
projcancelanim = 1302
projid = 1000
projpriority = 1
projshadow = 0
projscale = 1.2,1.2
offset = 21,-60
velocity = 5
attr = A, SP
damage = 90,6
animtype = heavy
guardflag = MA
hitflag = MAF
pausetime = 15, 15
guard.pausetime = 14, 14
sparkxy = 0,0
sparkno = s11000
guard.sparkno = s11200
hitsound = S3,2
guardsound = s1,5
ground.type = High
ground.slidetime = 9
ground.hittime = 15
ground.velocity = -5.5
air.velocity = -3.3, -4
guard.ctrltime = 39
airguard.velocity = -3, -1.5
air.fall = 0
air.juggle = 15
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1001, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;SC Fuerte
[Statedef 1390]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1300
ctrl = 0
poweradd = 100

[State 1030, 1]
type = PlaySnd
trigger1 = time = 0
value = 0,5

[State 1030, 1]
type = PlaySnd
trigger1 = animelem = 4
value = 1,2

[State 1001, bola]
type = Projectile
trigger1 = AnimElem = 5
projanim = 1301
projhitanim = 1302
projremanim = 1302
projcancelanim = 1302
projid = 1000
projpriority = 1
projshadow = 0
projscale = 1.2,1.2
offset = 21,-60
velocity = 8
attr = A, SP
damage = 90,6
animtype = heavy
guardflag = MA
hitflag = MAF
pausetime = 15, 15
guard.pausetime = 14, 14
sparkxy = 0,0
sparkno = s11000
guard.sparkno = s11200
hitsound = S3,2
guardsound = s1,5
ground.type = High
ground.slidetime = 9
ground.hittime = 15
ground.velocity = -5.5
air.velocity = -3.3, -4
guard.ctrltime = 39
airguard.velocity = -3, -1.5
air.fall = 0
air.juggle = 15
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1001, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

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

;RABBIT PUNCH (Hoppy)
;--------------------
;RP Debil
[Statedef 1500]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1500
ctrl = 0
poweradd = 100

[State 1100, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 1501

;-----------------
[Statedef 1501] ;elevandose
type = A
movetype = A
physics = N
juggle = 4
poweradd = 0
anim = 1501

[State 1030, hit]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 1030, Sarge]
type = PlaySnd
trigger1 = time = 0
value = 0,3

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = A, SA 
damage   = 90,10
animtype = heavy
guardflag = HA
pausetime = 17,17
guard.pausetime = 15,15
sparkxy =  0,-50
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -2,-4
air.velocity = -2,-4
guard.velocity = -4
airguard.velocity = -3,-2
fall = 1
fall.recover = 0
air.juggle = 0
air.fall = 1
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 1
x = 2
y = -7

[State 1101, 1]
type = VelAdd
trigger1 = animelemtime(1) > 0
y = .45

[State 1101, 3]
type = ChangeState
trigger1 = Vel Y > 0 && Pos Y >= 0
value = 50

;---------------------------------------------------------------------------
;RP Medio
[Statedef 1550]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1500
ctrl = 0
poweradd = 100

[State 1100, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 1551

;-----------------
[Statedef 1551] ;elevandose
type = A
movetype = A
physics = N
juggle = 4
poweradd = 0
anim = 1501

[State 1030, hit]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 1030, Sarge]
type = PlaySnd
trigger1 = time = 0
value = 0,3

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = A, SA 
damage   = 100,10
guardflag = HA
animtype = heavy
pausetime = 17,17
guard.pausetime = 15,15
sparkxy =  0,-50
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -3,-5
air.velocity = -3,-5
guard.velocity = -5
airguard.velocity = -3,-2
fall = 1
fall.recover = 0
air.juggle = 0
air.fall = 1
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 1
x = 2.5
y = -9

[State 1101, 1]
type = VelAdd
trigger1 = animelemtime(1) > 0
y = .45

[State 1101, 3]
type = ChangeState
trigger1 = Vel Y > 0 && Pos Y >= 0
value = 50

;---------------------------------------------------------------------------
;RP Fuerte
[Statedef 1590]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 1500
ctrl = 0
poweradd = 100

[State 1100, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 1591

;-----------------
[Statedef 1591] ;elevandose
type = A
movetype = A
physics = N
juggle = 4
poweradd = 0
anim = 1501

[State 1030, hit]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 1030, Sarge]
type = PlaySnd
trigger1 = time = 0
value = 0,3

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = A, SA 
damage   = 110,10
guardflag = HA
animtype = heavy
pausetime = 17,17
guard.pausetime = 15,15
sparkxy =  0,-50
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -4,-6
air.velocity = -4,-6
guard.velocity = -6
airguard.velocity = -3,-2
fall = 1
fall.recover = 0
air.juggle = 0
air.fall = 1
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 1
x = 3
y = -11

[State 1101, 1]
type = VelAdd
trigger1 = animelemtime(1) > 0
y = .45

[State 1101, 3]
type = ChangeState
trigger1 = Vel Y > 0 && Pos Y >= 0
value = 50

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; SISTEMA DE COMBOS
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------

;COMBO BREAKER
;-------------
;CB -> RP Fuerte
[Statedef 1999]
type = S
movetype = A
physics = S
juggle = 15
velset = 0
anim = 40
ctrl = 0
poweradd = 100

[State 1100, 5]
type = NotHitBy
trigger1 = 1
value = SCA

[State 1100, 5]
type = PlaySnd
trigger1 = time = 1
value = 4,2+random%4

[State 1000, CB]
type = Explod
triggerall = facing = 1
trigger1 = time = 1
anim = 11600
pos = 0,50
postype = left
persistent = 0
shadow = -1
ontop = 1
scale = 0.5,0.5
bindtime = -1

[State 1000, CB]
type = Explod
triggerall = facing = -1
trigger1 = time = 1
anim = 11601
pos = 0,50
postype = right
persistent = 0
shadow = -1
ontop = 1
scale = 0.5,0.5
bindtime = -1

[State 1100, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 1591

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

;DASHING UPPER (COMBO OPENER)
;----------------------------
;DU Debil
[Statedef 1600]
type = S
movetype = A
physics = S
juggle = 2
velset = 0
anim = 1600
ctrl = 0
poweradd = 100

[State 1030, hit]
type = PlaySnd
trigger1 = time = 0
value = 1,2

[State 1030, Jim]
type = PlaySnd
trigger1 = animelem = 2
value = 0,0

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = S, SA 
damage   = 100,10
animtype = medium
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  -10, -64
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 25
ground.velocity = -1
air.velocity = -1,-2
guard.velocity = -1
airguard.velocity = -1,-2
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 2
x = 8

[State 1101, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;DU Medio
[Statedef 1650]
type = S
movetype = A
physics = S
juggle = 2
velset = 0
anim = 1600
ctrl = 0
poweradd = 100

[State 1030, hit]
type = PlaySnd
trigger1 = animelem = 2
value = 1,2

[State 1030, Jim]
type = PlaySnd
trigger1 = time = 0
value = 0,0

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = S, SA 
damage   = 100,10
animtype = hard
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  -10, -64
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 25
ground.velocity = -1
air.velocity = -1,-2
guard.velocity = -1
airguard.velocity = -1,-2
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 2
x = 11

[State 1101, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;DU Fuerte
[Statedef 1690]
type = S
movetype = A
physics = S
juggle = 2
velset = 0
anim = 1600
ctrl = 0
poweradd = 100

[State 1030, hit]
type = PlaySnd
trigger1 = animelem = 2
value = 1,2

[State 1030, Jim]
type = PlaySnd
trigger1 = time = 0
value = 0,0

[State 1100, Hit]
type = HitDef
trigger1 = time = 0
attr = S, SA 
damage   = 100,10
animtype = heavy
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  -10, -64
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 25
ground.velocity = -1
air.velocity = -1,-2
guard.velocity = -1
airguard.velocity = -1,-2
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1041, VelSet]
type = VelSet
trigger1 = animelem = 2
x = 15

[State 1101, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

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

;LINKERS
;-------
;Linker 1
[Statedef 3000]
type = S
movetype = A
physics = S
juggle = 5
velset = 0
anim = 3000
ctrl = 0
poweradd = 50

[State 3100, NHB]
type = NotHitBy
trigger1 = 1
value = SCA

[State 1100, Hit]
type = HitDef
trigger1 = animelem = 2
trigger2 = animelem = 4
attr = S, NA 
damage   = 10,1
animtype = light
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  0,-48
sparkno = s11100
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = 0
air.velocity = 0
guard.velocity = 0
airguard.velocity = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1101, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;Linker 2
[Statedef 3010]
type = S
movetype = A
physics = S
juggle = 5
velset = 0
anim = 3001
ctrl = 0
poweradd = 50

[State 3100, NHB]
type = NotHitBy
trigger1 = 1
value = SCA

[State 1100, Hit]
type = HitDef
trigger1 = animelem = 2
trigger2 = animelem = 4
attr = S, NA 
damage   = 10,1
animtype = light
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  0,-50
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = 0
air.velocity = 0
guard.velocity = 0
airguard.velocity = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1101, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;Linker 3
[Statedef 3020]
type = S
movetype = A
physics = S
juggle = 5
velset = 0
anim = 3002
ctrl = 0
poweradd = 50

[State 3100, NHB]
type = NotHitBy
trigger1 = 1
value = SCA

[State 1100, Hit]
type = HitDef
trigger1 = animelem = 2
attr = S, NA 
damage   = 10,1
animtype = light
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  0,-45
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = 0
air.velocity = 0
guard.velocity = 0
airguard.velocity = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1100, Hit2]
type = HitDef
trigger1 = animelem = 4
attr = S, NA 
damage   = 10,1
animtype = light
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  0,-75
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = 0
air.velocity = 0
guard.velocity = 0
airguard.velocity = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1101, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;Linker 4
[Statedef 3030]
type = S
movetype = A
physics = S
juggle = 5
velset = 0
anim = 3003
ctrl = 0
poweradd = 50

[State 3100, NHB]
type = NotHitBy
trigger1 = 1
value = SCA

[State 1100, Hit]
type = HitDef
trigger1 = animelem = 2
trigger2 = animelem = 4
attr = S, NA 
damage   = 10,1
animtype = light
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  0,-50
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = 0
air.velocity = 0
guard.velocity = 0
airguard.velocity = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1101, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;Linker 5
[Statedef 3040]
type = S
movetype = A
physics = S
juggle = 5
velset = 0
anim = 3004
ctrl = 0
poweradd = 50

[State 3100, NHB]
type = NotHitBy
trigger1 = 1
value = SCA

[State 1100, Hit]
type = HitDef
trigger1 = animelem = 2
trigger2 = animelem = 4
attr = S, NA 
damage   = 10,1
animtype = light
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  0,-48
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = 0
air.velocity = 0
guard.velocity = 0
airguard.velocity = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1101, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;Linker 6
[Statedef 3050]
type = S
movetype = A
physics = S
juggle = 5
velset = 0
anim = 3005
ctrl = 0
poweradd = 50

[State 3100, NHB]
type = NotHitBy
trigger1 = 1
value = SCA

[State 1100, Hit]
type = HitDef
trigger1 = animelem = 2
attr = S, NA 
damage   = 10,1
animtype = light
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  0,-10
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = 0
air.velocity = 0
guard.velocity = 0
airguard.velocity = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1100, Hit2]
type = HitDef
trigger1 = animelem = 6
attr = S, NA 
damage   = 10,1
animtype = light
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  0,-45
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = 0
air.velocity = 0
guard.velocity = 0
airguard.velocity = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 1101, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

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

;FINISHERS
;---------
;Finisher 1
[Statedef 3100]
type = S
movetype = A
physics = S
juggle = 5
velset = 0
anim = 3100
ctrl = 0
poweradd = 50

[State 3500, nhb]
type = Nothitby
trigger1 = 1
value = SCA

[State 1030, snd]
type = PlaySnd
trigger1 = animelem = 1
trigger2 = animelem = 3
trigger3 = animelem = 5
trigger4 = animelem = 8
value = 1,1

[State 3100, Hit1]
type = HitDef
trigger1 = animelem = 2
trigger2 = animelem = 4
trigger3 = animelem = 6
attr = S, SA 
damage   = 25,5
animtype = heavy
guardflag = HA
pausetime = 20,20
guard.pausetime = 20,20
sparkxy =  0,-50
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = Low
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = 0
air.velocity = 0
guard.velocity = 0
airguard.velocity = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 3100, Hit]
type = HitDef
trigger1 = animelem = 9
attr = S, SA 
damage   = 25,5
animtype = heavy
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  0,-70
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -5,-5
air.velocity = -5,-5
guard.velocity = -3
airguard.velocity = -3
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)
fall = 1
air.fall = 1

[State 1030, Ice]
type = null;PlaySnd
trigger1 = time = 0
value = 0,0

[State 1151, 4]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;Finisher 2
[Statedef 3150]
type = S
movetype = A
physics = S
juggle = 5
velset = 0
anim = 3150
ctrl = 0
poweradd = 50

[State 3100, NHB]
type = NotHitBy
trigger1 = 1
value = SCA

[State 3100, Hit1]
type = HitDef
trigger1 = animelem = 2
attr = S, SA 
damage   = 30,5
animtype = heavy
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  0,-25
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 30
ground.velocity = 0
air.velocity = 0
guard.velocity = 0
airguard.velocity = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 3100, Hit2]
type = HitDef
trigger1 = animelem = 4
attr = S, SA 
damage   = 30,5
animtype = heavy
guardflag = HA
pausetime = 20,20
guard.pausetime = 20,20
sparkxy =  0,-37
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = low
ground.slidetime = 9
ground.hittime  = 30
ground.velocity = 0
air.velocity = 0
guard.velocity = 0
airguard.velocity = 0
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)

[State 3100, Hit3]
type = HitDef
trigger1 = animelem = 6
attr = S, SA 
damage   = 40,5
animtype = heavy
guardflag = HA
pausetime = 10,10
guard.pausetime = 10,10
sparkxy =  0,-55
sparkno = s11000
guard.sparkno = s11200
hitsound   = S3,2
guardsound = s1,5
ground.type = high
ground.slidetime = 9
ground.hittime  = 20
ground.velocity = -7
air.velocity = -7
guard.velocity = -5
airguard.velocity = -5
kill = var(20)
fall.kill = var(20)
guard.kill = var(20)
fall = 1
air.fall = 1

[State 1030, Ice]
type = null;PlaySnd
trigger1 = animelem = 8
value = 0,0

[State 1151, 4] ;Changestate
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; SUPERS EN sarge-h.cns, ULTRAS Y CLAYTALITIES EN sarge-final.cns
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; ESTADOS ESPECIALES DE SARGE
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;CLAYTALITIES (usando los estados de Juano16)
;--------------------------------------------
;FINISH HIM!! START
[Statedef 9000]
type = A
movetype= A
physics = N
velset = 0,0
anim = 9000
ctrl = 0

[State No block No music]
type = AssertSpecial
trigger1 = 1
flag = unguardable
flag2 = nomusic
ignorehitpause = 1

[State HIT]
type = HitDef
Trigger1 = !movecontact && enemynear,alive && enemynear,stateno != 9002
attr = S, NA
hitflag = -M
sparkno = -1
p2stateno = 9002
numhits = 0

[State succesfull]
type = ChangeState
trigger1 = movecontact && p2stateno = 9002
value = 9001
ctrl = 0

[State Follow Enemy]
type = posset
trigger1 = 1 
x = floor(enemynear,pos x)
y = floor(enemynear,pos y)

[State END]
type = destroyself
trigger1 = !animtime && p2stateno = 9002 && !enemynear,ctrl
trigger2 = time = 300

;------
;FINISH HIM!! STUFF
[Statedef 9001]
type = A
movetype= A
physics = N
velset = 0,0
anim = 9001

[State KILL]
type = parentvarset
trigger1 = 1
var(20) = 1

[State Follow]
type = bindtoparent
trigger1 = 1

[State Time Stop]
type = assertspecial
trigger1 = 1
flag = timerfreeze
ignorehitpause = 1

[State Music OFF]
type = assertspecial
trigger1 = parent,var(21) > 0
trigger2 = parent,win = 1 || !enemynear,alive 
trigger3 = p2stateno = 9002 
flag = nomusic
ignorehitpause = 1

[State Noboard]
type = AssertSpecial
trigger1 = parent,var(21) > 0
flag = nobardisplay

[State Fatality MSG]
type = null;Explod
trigger1 = !numexplod(10001) && parent,var(21) = 1 && parent,time = 120 && parent,stateno = [180,189]
anim = 10001
id = 10001
pos = 160,50
postype = left
facing = 1
bindtime = 9999
removetime = 9999
ontop = 1
ownpal = 1

[State Fatality SND]
type = PlaySnd
trigger1 = numexplod(10001) = 1 && parent,var(21) = 1 && parent,time = 120 && parent,stateno = [180,189]
value = 4,1

[State Fatality time]
type = AssertSpecial
trigger1 = parent,var(21) > 0 && parent,time < 250 && parent,stateno = [180,189]
flag = roundnotover
ignorehitpause = 1

;------
;p2 dizzy
[Statedef 9002]
type = S
movetype= I
physics = N
velset = 0,0
ctrl = 0
sprpriority = 3

[State Killme]
type = HitBy
trigger1 = 1
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
value2 = S,NA
time = 9999

[State Effect OFF]
type = AfterImage
trigger1 = !time
time = 1
length = 1
ignorehitpause = 1

[State Dizzy]
type = ChangeAnim
trigger1 = !time
value = ifelse(selfanimexist(5305),5305,5300)
elem = ifelse(selfanimexist(5305),3,0)

[State Ground]
type = posset
trigger1 = !time
y = 0

[State doubleKO]
type = LifeAdd
trigger1 = !enemynear,alive
value = -9999
kill = 1

[State doubleKO]
type = SelfState
trigger1 = !enemynear,alive
value = 5050

[State timeup]
type = lifeadd
trigger1 = time = 300 && !enemynear,var(21)
value = -9999

[State timeup]
type = selfstate
trigger1 = time = 300 && !enemynear,var(21)
value = 5050

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

[Statedef -2]

;-----------------
; Sonidos estados 5000
[State -2 , 0]
type = null;PlaySnd 
triggerall = Random < 500
triggerall = Time = 1
trigger1 = stateno = 5000 || stateno = 5001 || stateno = 5020
value = 0,6

[State -2 , 1]
type = null;PlaySnd 
triggerall = Random < 500
triggerall = Time = 1
trigger1 = stateno = 5010 || stateno = 5011 || stateno = 5012
value = 0,2

[State -2 , 2]
type = null;PlaySnd 
triggerall = Random < 500
triggerall = Time = 1
trigger1 = stateno = 5002 || stateno = 5021 || stateno = 5022
value = 0,0

;-----------------
; Compatibilidad chars de Shadowtak (CF1-2 de SNES)
[State -2 , 2]
type = null;VarSet 
triggerall = RoundState = 2
trigger1 = enemy,authorname = "Shadowtak"
;trigger2 = enemy,name = "CF 63 1/3 Earthworm Jim"
v = 15
value = 1

;-----------------
; Estados fatality by Juano16
[State -2, wins]
type = VarAdd
trigger1 = !time && stateno = 180
var(30) = 1

[State -2, wins reset]
type = VarSet
triggerall = var(30) > 0 && !time && stateno = 5900
trigger1 = roundno = 1
trigger2 = !roundsexisted 
var(30) = 0

[State -2, kill]
type = varset
trigger1 = (var(30) <= var(31)) && var(31) != -1 
trigger2 = numpartner >= 1 
trigger3 = enemynear,numpartner >= 1 
trigger4 = var(31) = -1
var(20) = 1
ignorehitpause = 1

[State -2, Fatality]
type = DisplayToClipboard
trigger1 = 1
text = "Kill:%d Wins:%d OFF:%d p2Life:%d Finish:%d"
params = var(10),var(30),var(31),p2life,var(21)

[State -2, Call Finish]
type = Helper
trigger1 = !numhelper(9000) && !var(20) && var(30) > var(31) && enemynear,life <= 1
helpertype = Normal
ID = 9000
name = "Finish Him!"
postype = p2
stateno = 9000
ownpal = 1

[State -2, No Damage]
type = NotHitBy
trigger1 = !var(20) && var(30) > var(31) && enemynear,life <= 1
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
time = 10

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

[Statedef -3]

;This controller plays a sound everytime the player lands from a jump, or
;from a back-dash.
[State -3, Landing Sound]
type = PlaySnd
triggerall = Time = 1
trigger1 = stateno = 52
trigger2 = stateno = 106
trigger3 = stateno = 1201
value = 1,4

[State -3, Crashing Sound]
type = PlaySnd
triggerall = Time = 1
trigger1 = stateno = 5100
trigger2 = stateno = 5110
value = 2,5
