;freeze blast
[Statedef 7000]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 7000
velset = 0,0
ctrl = 0
sprpriority = 3

[State sound]
type = PlaySnd
triggerall = root,var(21) != 1
trigger1 = !time
freqmul = .7
value = 1, 2
[State soundMK2]
type = PlaySnd
triggerall = root,var(21) = 1
trigger1 = !time
;freqmul = .7
value = 1, 34

[State sound]
type = velset
trigger1 = time = 8
x = 8

[State 騙骫
type = Explod
trigger1 = time >= 6 && !(time%3)
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 40*(1+root,fvar(2)),20*(1+root,fvar(2))
sprpriority = 2
velocity = 0,2
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State ]
type = Hitdef
trigger1 = !movecontact
;damage = ifelse(((parent,var(41) = parent,var(58)) || (parent,var(58) = -1)) && enemynear,life = 1,1,0),0
damage = ifelse(((parent,var(41) > 0 ) || (parent,var(58) = -1)) && enemynear,life = 1,1,0),0
getpower = 0,0
givepower = 0,0
pausetime = 0,10
attr = A,SP
guardflag = M
animtype = heavy
air.animtype = back
priority = 5, hit
sparkno = S7001
guard.sparkno = S7001
sparkxy = 40, 0
hitsound = S1,ifelse(root,var(21) = 0,3,35)
guardsound = S0,7
ground.type = high
air.type = high
ground.slidetime = 0
ground.hittime = 15
ground.velocity = 0, 0 
air.velocity = 0, 0
guard.velocity = -7
air.cornerpush.veloff = 0
ground.cornerpush.veloff = 0
yaccel = .5
p1stateno = ifelse(!parent,var(2),7005,7001)
p2stateno = ifelse(!parent,var(2),7002,7006)
air.fall = 1
fall = ifelse(parent,stateno = 6000 && (parent,prevstateno = [8000,8003]) && enemynear,movetype = H,1,0)
fall.recover = 0
fall.xvelocity = 0
fall.yvelocity = 0
numhits = 0

[State don't playa hate]
type = playerpush
trigger1 = 1
value = 0

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
trigger1 = moveguarded
value = 7001

[State end]
type = destroyself
trigger1 = time <= 7 && parent,movetype = H

[State end]
type = destroyself
trigger1 = frontedgedist <= -150
;---------------------------------------------------------------
;------------------------------------------------------------
;end
[Statedef 7001]
type    = A
movetype= I
physics = N
;anim = 7001
velset = 0,0
ctrl = 0
sprpriority = 3

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow
flag2 = invisible

[State end]
type = parentvaradd
trigger1 = !time
var(2) = 1

[State ]
type = null;Helper
trigger1 = !time
helpertype = Normal
ID = 7007
name = "o_O" 
postype = p2
pos = enemynear,const(size.mid.pos.x)+6,enemynear,const(size.mid.pos.y)
persistent = 0
ignorehitpause = 1
stateno = 7007
ownpal = 1

[State end]
type = destroyself
trigger1 = time = 10
;---------------------------------------------------------------------------
;cool off
[Statedef 7002]
type    = U
movetype= H
physics = N
velset = 0,0

[State ] 
type = assertspecial
trigger1 = 1
flag = nokosnd

[State amination]
type = ChangeAnim
Trigger1 = 1
value = anim
elem = animelemno(0)

[State blackness]
type = palfx
trigger1 = !(time%1)
time = 1
ignorehitpause = 1
add = 70,70, 250

[State is it over?]
type = ChangeState
Trigger1 = hitshakeover
value = 7003
;---------------------------------------------------------------------------
;..............................
[Statedef 7003]
type    = U
movetype= H
physics = N
velset = 0,0

[State 0, PosAdd]
type = PosAdd
trigger1 = !(time % 6)
trigger1 = time = [0,15]
x = 3

[State 0, PosAdd]
type = PosAdd
trigger1 = time %6 = 1
trigger1 = time = [0,15]
x = -3

[State blackness]
type = palfx
trigger1 = !(time%1)
time = 1
ignorehitpause = 1
add = 70,70, 250

[State amination]
type = ChangeAnim
Trigger1 = 1
value = anim
elem = animelemno(0)

[State ] 
type = assertspecial
trigger1 = 1
flag = nokosnd

[State wallbanger]
type = selfstate
triggerall = statetype != A && alive
Trigger1 = time = 190
ctrl = 1
value = 0

[State wallbanger]
type = changestate
triggerall = statetype != A && !alive
Trigger1 = time = 60
value = 7024

[State wallbanger]
type = ChangeState
triggerall = statetype = A
Trigger1 = time = 95;190
value = 7004
;---------------------------------------------------------------------------
;..............................
[Statedef 7004]
type    = A
movetype= H
physics = N
velset = 0,0

[State amination]
type = ChangeAnim
Trigger1 = !time
value = 5050

[State amination]
type = veladd
Trigger1 = 1
y = .5

[State weeeeeee!]
type = SelfState
trigger1 = (Vel Y > 5) && (Pos Y >= 5)
value = 5100
;--------------------------------
;freeze blasted
[Statedef 7005]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 7002
velset = 0,0
ctrl = 0
sprpriority = 3

[State ]
type = Helper
trigger1 = !time && numtarget
helpertype = Normal
ID = 7007
name = "o_O" 
postype = p2
pos = target,const(size.mid.pos.x)+6,target,const(size.mid.pos.y)
persistent = 0
ignorehitpause = 1
stateno = 7007
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State ]
type = Helper
triggerall = prevstateno = 7013
trigger1 = !time
helpertype = Normal
ID = 7014
name = "o_O" 
postype = p1
pos = 0,0
persistent = 0
ignorehitpause = 1
stateno = 7014
ownpal = 1
scale = const(size.xscale),const(size.yscale)


[State end]
type = parentvarset
trigger1 = 1
var(2) = 1

[State ]
type = bindtotarget
Trigger1 = time = 1
time = 2
pos = 0,0, mid

[State Super]
type = SuperPause
triggerall = numtarget
trigger1 = !time
anim = -1
pos = 27,-55
time = 0
movetime = 0
p2defmul = ifelse(target,gethitvar(hitcount)<= 1,.8,1.3)
unhittable = 1
darken = 0

[State 1]
type = Hitdef
trigger1 = !movecontact
damage = 0,0
getpower = 0,0
givepower = 0,0
pausetime = 0,2
attr = A,SP
hitflag = HAF+
animtype = heavy
air.animtype = back
priority = 5, hit
sparkno = -1
guard.sparkno = -1
sparkxy = 0, 0
ground.type = high
air.type = high
ground.slidetime = 0
ground.hittime = 15
ground.velocity = 0, 0 
air.velocity = 0, 0
guard.velocity = 0
air.cornerpush.veloff = 0
ground.cornerpush.veloff = 0
yaccel = .5
p2stateno = 7002
air.fall = 1
fall.recover = 0
fall.xvelocity = 0
fall.yvelocity = 0
numhits = 0

[State end]
type = destroyself
trigger1 = time = 10
;---------------------------------------------------------------------------
;cool off
[Statedef 7006]
type    = U
movetype= H
physics = N
velset = 0,0

[State amination]
type = ChangeAnim
Trigger1 = 1
value = anim
elem = animelemno(0)

[State simurio]
type = selfstate
Trigger1 = life = 0
ctrl = 1
value = 5050

[State wallbanger]
type = selfstate
triggerall = statetype != A
Trigger1 = hitshakeover
ctrl = 1
value = 0

[State wallbanger]
type = ChangeState
triggerall = statetype = A
Trigger1 = hitshakeover
value = 7004
;-------------------------------------------------------------
;particle man
[Statedef 7007]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = 3

[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7008
name = "bwargh" 
postype = p1
pos = 0,0
stateno = 7008
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7008
name = "bwargh" 
postype = p1
pos = 0,0
stateno = 7008
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7008
name = "bwargh" 
postype = p1
pos = 0,0
stateno = 7008
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7008
name = "bwargh" 
postype = p1
pos = 0,0
stateno = 7008
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7008
name = "bwargh" 
postype = p1
pos = 0,0
stateno = 7008
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7008
name = "bwargh" 
postype = p1
pos = 0,0
stateno = 7008
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7008
name = "bwargh" 
postype = p1
pos = 0,0
stateno = 7008
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7008
name = "bwargh" 
postype = p1
pos = 0,0
stateno = 7008
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7008
name = "bwargh" 
postype = p1
pos = 0,0
stateno = 7008
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7008
name = "bwargh" 
postype = p1
pos = 0,0
stateno = 7008
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State end]
type = destroyself
trigger1 = time = 11
;-------------------------------------------------------------
;particle
[Statedef 7008]
type    = A
movetype= I
physics = N
anim = 7004
velset = 0,0
ctrl = 0
sprpriority = 3

[State y]
type = VarRandom
trigger1 = 1
v = 0
range = -1,-5
[State x]
type = VarRandom
trigger1 = 1
v = 1
range = -3,3

[State ]
type = velset
trigger1 = time = 1
y = var(0)
x = var(1)

[State ]
type = veladd
trigger1 = time >= 3
y = .3

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7009
;-------------------------------------------------------------
;particle bounce
[Statedef 7009]
type    = A
movetype= I
physics = N
ctrl = 0
sprpriority = 3

[State ]
type = velset
trigger1 = !time
y = -5

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

[State ]
type = veladd
trigger1 = 1
y = .5

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State blackness]
type = palfx
trigger1 = !time
time = 30
add = 0,0,0
sinadd = -250,-250, -250, 100

[State end]
type = destroyself
trigger1 = time = 21
;----------------------------------------
;puddle
[Statedef 7010]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 7006
velset = 0,0
ctrl = 0
sprpriority = 1

[State 騙骫
type = Explod
trigger1 = time <= 4
anim = 7007
id = 7007
removetime = 1
Postype = p1
bindtime = -1
pos = 0,0
scale = (0+fvar(0))*(root,const(size.xscale)*(1+root,fvar(2))),(0+fvar(0))*(root,const(size.xscale)*(1+root,fvar(2)))
sprpriority = 1

[State 騙骫
type = varadd
trigger1 = time <= 4
fvar(0) = .25

[State blerg]
type = AfterImage
trigger1 = !time
time = 17
framegap = 1
palcolor = 60
trans = add
palbright = 0,0,0
palcontrast = 90,90,90

[State ]
type = bindtoparent
trigger1 = 1

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
trigger1 = (parent,anim = 6003 && !parent,animelemtime(5)) || parent,movetype = H || parent,stateno != 6003
value = 7011
;----------------------------------------
;puddle
[Statedef 7011]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 1

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State blerg]
type = AfterImage
triggerall = palno != 7
trigger1 = !time
time = 0

[State ]
type = posset
trigger1 = 1
y = 0

[State 騙骫
type = Explod
trigger1 = 1
anim = 7007
id = 7007
removetime = 1
Postype = p1
bindtime = -1
pos = 0,0
scale = -fvar(1)+(root,const(size.xscale)*(1+root,fvar(2))),-fvar(1)+(root,const(size.xscale)*(1+root,fvar(2)))
sprpriority = -1

[State 騙骫
type = varadd
trigger1 = 1
fvar(1) = .1

[State end]
type = destroyself
trigger1 = time = 10
;----------------------------------------
;blast
[Statedef 7012]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 1

[State 騙骫
type = Explod
trigger1 = !time
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 6,6
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 1,-4
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = -6,-5
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 5,-4
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 5,-3
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 2,5
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = -2,-2
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = -5,-4
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = -7,0
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 1,-1
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State end]
type = destroyself
trigger1 = time = 30
;----------------------------------------------
;freeze blast
[Statedef 7013]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 7008
velset = 7,0
ctrl = 0
sprpriority = 3

[State sound]
type = PlaySnd
triggerall = root,var(21) != 1
trigger1 = !time
;freqmul = .7
value = 1, 2
[State soundMK2]
type = PlaySnd
triggerall = root,var(21) = 1
trigger1 = !time
;freqmul = .7
value = 1, 34

[State sound]
type = veladd
trigger1 = time <= 13
x = -.5

[State 騙骫
type = Explod
trigger1 = !(time%3)
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 40*(root,const(size.xscale)*2*(1+root,fvar(2))),20*2*(root,const(size.yscale)*(1+root,fvar(2)))
sprpriority = 2
velocity = 0,3
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State ]
type = Hitdef
trigger1 = !movecontact
damage = ifelse(((parent,var(41) > 0 ) || (parent,var(58) = -1)) && enemynear,life = 1,1,0),0
;damage = ifelse(((parent,var(41) = parent,var(58)) || (parent,var(58) = -1)) && enemynear,life = 1,1,0),0
getpower = 0,0
givepower = 0,0
pausetime = 0,10
attr = A,SP
guardflag = M
animtype = heavy
air.animtype = back
priority = 5, hit
sparkno = -1
guard.sparkno = -1
sparkxy = 40, 0
hitsound = S1,ifelse(root,var(21) = 0,3,35)
guardsound = S0,7
ground.type = high
air.type = high
ground.slidetime = 0
ground.hittime = 15
ground.velocity = 0, 0 
air.velocity = 0, 0
guard.velocity = -7
air.cornerpush.veloff = 0
ground.cornerpush.veloff = 0
yaccel = .5
p1stateno = ifelse(!parent,var(2),7005,7014)
p2stateno = ifelse(!parent,var(2),7002,7006)
air.fall = 1
fall.recover = 0
fall.xvelocity = 0
fall.yvelocity = 0
numhits = 0

[State don't playa hate]
type = playerpush
trigger1 = 1
value = 0

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
trigger1 = moveguarded || time = 80
value = 7014

[State end]
type = destroyself
trigger1 = frontedgedist <= -150
;----------------------------------------
;end
[Statedef 7014]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 9999
velset = 0,0
movehitpersist = 1
ctrl = 0
sprpriority = 1

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State 騙骫
type = Explod
trigger1 = 1
anim = 7008
id = 7008
removetime = 1
Postype = p1
bindtime = -1
pos = 0,0
scale = (1-fvar(1))*root,const(size.xscale)*(1+root,fvar(2)),(1-fvar(1))*root,const(size.yscale)*(1+root,fvar(2))
sprpriority = -1

[State 騙骫
type = varadd
trigger1 = 1
fvar(1) = .1

[State end]
type = parentvaradd
trigger1 = !time && movecontact
var(2) = 1

[State end]
type = destroyself
trigger1 = time = 10
;-------------------------------------------------------------
;elbow stuffs
[Statedef 7015] ;7015 original
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = 3

[State 騙骫
type = Explod
trigger1 = time = 1
anim = ifelse(root,fvar(4) = 1,9999,7010)
id = 7010
Postype = p1
pos = 0,-50
vel = -3,0
sprpriority = 1
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = time = 1
anim = ifelse(root,fvar(4) = 1,9999,7010)
id = 7010
Postype = p1
pos = 0,-50
vel = -2.7,-0.5
sprpriority = 1
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = time = 1
anim = ifelse(root,fvar(4) = 1,9999,7010)
id = 7010
Postype = p1
pos = 0,-50
vel = -3.3,-0.9
sprpriority = 1
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State ]
type = Helper
trigger1 = time = 1 && random < 100
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1 && random < 100
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1 ;&& random < 100
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State end]
type = destroyself
trigger1 = !(parent,animelemtime(1)) || parent,movetype != A || time = 200
;-------------------------------------------------------------
;blood drop
[Statedef 7016]
type    = A
movetype= I
physics = N
anim = 7011
velset = 0,0
ctrl = 0
sprpriority = 3

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = root,fvar(4) = 1
flag = invisible

[State y]
type = VarRandom
trigger1 = 1
v = 0
range = -3,-7
[State x]
type = VarRandom
trigger1 = 1
v = 1
range = -6,-1

[State ]
type = velset
trigger1 = time = 1
y = var(0)
x = var(1)

[State ]
type = veladd
trigger1 = time >= 1
y = .3

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
triggerall = time >= 5
trigger1 = enemynear,prevstateno != 607716 && enemynear,prevstateno != 607721 && enemynear,prevstateno != 607711
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
trigger2 = enemynear,prevstateno = 607711
trigger2 = (Vel Y > 0)&&(Pos Y >= 747)
value = 7017
;-------------------------------------------------------------
;splat
[Statedef 7017]
type    = A
movetype= I
physics = N
ctrl = 0
anim = 7012
velset = 0,0
sprpriority = 1

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = root,fvar(4) = 1
flag = invisible

[State 0, VarRandom]
type = VarRandom
trigger1 = 1
v = 15
range = 0,1

[State 0, gotacaecanal3]
type = PlaySnd
triggerall = !root,fvar(4)
trigger1 = (random < 50)
trigger1 = root,var(22) = 5006 || prevstateno = 60775
trigger2 = root,var(22) != 5006 && (random < 100) && prevstateno != 60775
triggerall = time = 1
value = var(15)+4,2
channel = -1
volume = -250

[State ]
type = posset
trigger1 = !time
y = ifelse(enemynear,prevstateno = 607711,747,0)

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = destroyself
trigger1 = !animtime
;-------------------------------------------------------------
;big bloody stuff
[Statedef 7018]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = 3

[State 騙骫
type = Explod
trigger1 = !time
anim = ifelse(root,fvar(4) = 1,9999,7013)
id = 7013
Postype = p1
pos = -1,-50
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State 騙骫
type = Explod
trigger1 = !time
anim = ifelse(root,fvar(4) = 1,9999,7013)
id = 70132
facing = -1
Postype = p1
pos = 0,0
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State ]
type = Helper
;triggerall = parent,stateno != 70451
trigger1 = time = 0
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
;triggerall = parent,stateno != 70451
trigger1 = time = 1
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
;triggerall = parent,stateno != 70451
trigger1 = time = 0
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
;triggerall = parent,stateno != 70451
trigger1 = time = 1
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State ]
type = Helper
;triggerall = parent,stateno != 70451
trigger1 = time = 0
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
facing = -1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
;triggerall = parent,stateno != 70451
trigger1 = time = 1
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
facing = -1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
;triggerall = parent,stateno != 70451
trigger1 = time = 0
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
facing = -1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
;triggerall = parent,stateno != 70451
trigger1 = time = 1
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
facing = -1
scale = const(size.xscale),const(size.yscale)

[State end]
type = destroyself
trigger1 = !(parent,animelemtime(1)) || parent,movetype != A || time = 200
;-------------------------------------------------------------
;big bloody stuff
[Statedef 70180] ;7018 original
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = 3

[State 騙骫
type = Explod
trigger1 = time = 1
anim = ifelse(root,fvar(4) = 1,9999,7013)
id = 7013
Postype = p1
pos = -1,-50
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = time = 1
anim = ifelse(root,fvar(4) = 1,9999,7013)
id = 7013
facing = -1
Postype = p1
pos = 0,-50
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
facing = -1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
facing = -1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
facing = -1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7016
name = "drop"
postype = p1
pos = 0,0
stateno = 7016
ownpal = 1
facing = -1
scale = const(size.xscale),const(size.yscale)


[State end]
type = destroyself
trigger1 = !(parent,animelemtime(1)) || parent,movetype != A || time = 200
;------------------------------------------------------------
;moves
[Statedef 7019]
type    = A
movetype= I
physics = N
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 1

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = nofg
flag2 = timerfreeze
flag3 = invisible

[State menu] 
type = explod
trigger1 = !numexplod(7014)
id = 7014
anim = 7014
pos = 0,0
bindtime = -1
;ontop = 1
sprpriority = 10
postype = left
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State 0, movelist subzero]
type = ChangeAnim
triggerall = root,var(20) = 1
trigger1 = anim != 7016 && !time
trigger2 = anim = 70160 && (root,command = "up" || root,command = "back") && (root,command != "holdup" || root,command != "holdback")
trigger2 = animelemtime(1) > 20
value = 7016

[State 0, movelist scorpion]
type = ChangeAnim
triggerall = root,var(20) = 2
trigger1 = anim != 70161 && !time
trigger2 = anim = 70160 && (root,command = "up" || root,command = "back") && (root,command != "holdup" || root,command != "holdback")
trigger2 = animelemtime(1) > 20
value = 70161

[State 0, movelist reptile]
type = ChangeAnim
triggerall = root,var(20) = 3
trigger1 = anim != 70163 && !time
trigger2 = anim = 70160 && (root,command = "up" || root,command = "back") && (root,command != "holdup" || root,command != "holdback")
trigger2 = animelemtime(1) > 20
value = 70163

[State 0, movelist noob]
type = ChangeAnim
triggerall = root,var(20) = 4
trigger1 = anim != 70164 && !time
trigger2 = anim = 70160 && (root,command = "up" || root,command = "back") && (root,command != "holdup" || root,command != "holdback")
trigger2 = animelemtime(1) > 20
value = 70164

[State 0, movelist smoke]
type = ChangeAnim
triggerall = root,var(20) = 5
trigger1 = anim != 70165 && !time
trigger2 = anim = 70160 && (root,command = "up" || root,command = "back") && (root,command != "holdup" || root,command != "holdback")
trigger2 = animelemtime(1) > 20
value = 70165

[State 0, movelist ermac]
type = ChangeAnim
triggerall = root,var(20) = 6
trigger1 = anim != 70166 && !time
trigger2 = anim = 70160 && (root,command = "up" || root,command = "back") && (root,command != "holdup" || root,command != "holdback")
trigger2 = animelemtime(1) > 20
value = 70166

[State 0, combos]
type = ChangeAnim
triggerall = animelemtime(1) > 20
triggerall = anim != 70160
trigger1 = (root,command = "down" || root,command = "fwd") && (root,command != "holddown" || root,command != "holdfwd")
trigger1 = anim = 7016 || anim = 70161 || anim = 70163 || anim = 70164 || anim = 70165 || anim = 70166
trigger2 = anim = 70162 && (root,command = "up" || root,command = "back") && (root,command != "holdup" || root,command != "holdback")
value = 70160

[State 0, common]
type = ChangeAnim
triggerall = anim = 70160
trigger1 = (root,command = "down" || root,command = "fwd") && (root,command != "holddown" || root,command != "holdfwd")
trigger1 = animelemtime(1) > 20
value = 70162

;-------------- movelist ------------------
[State menu subzero]
type = explod
trigger1 = root,var(20) = 1 && !time
trigger2 = anim = 7016 && numexplod(7016) < 2
id = 7016
anim = 7016
pos = 0,0
bindtime = -1
removetime = 999999
ontop = 1
postype = left
ownpal = 1
scale = .5,.5
[State menu subzero]
type = explod
trigger1 = root,var(20) = 1 && !time
trigger2 = numexplod(7016) && numexplod(7017) = 0
id = 7017
anim = 7017
pos = 0,0
removetime = 999999
bindtime = -1
ontop = 1
postype = left
scale = .5,.5
[State 0, Removemovelistsubzero]
type = RemoveExplod
trigger1 = anim != 7016
id = 7016
[State 0, Removemovelistsubzero]
type = RemoveExplod
trigger1 = !numexplod(7016)
id = 7017

[State menu scorpion]
type = explod
trigger1 = root,var(20) = 1 && !time
trigger2 = anim = 70161 && numexplod(70161) < 2
id = 70161
anim = 70161
pos = 0,0
bindtime = -1
removetime = 999999
ontop = 1
postype = left
ownpal = 1
scale = .5,.5
[State menu scorpion]
type = explod
trigger1 = root,var(20) = 1 && !time
trigger2 = numexplod(70161) && numexplod(70171) = 0
id = 70171
anim = 70171
pos = 0,0
removetime = 999999
bindtime = -1
ontop = 1
postype = left
scale = .5,.5
[State 0, Removemovelistscorpion]
type = RemoveExplod
trigger1 = anim != 70161
id = 70161
[State 0, Removemovelistscorpion]
type = RemoveExplod
trigger1 = !numexplod(70161)
id = 70171

[State menu reptile]
type = explod
trigger1 = root,var(20) = 3 && !time
trigger2 = anim = 70163 && numexplod(70163) < 2
id = 70163
anim = 70163
pos = 0,0
bindtime = -1
removetime = 999999
ontop = 1
postype = left
ownpal = 1
scale = .5,.5
[State menu reptile]
type = explod
trigger1 = root,var(20) = 3 && !time
trigger2 = numexplod(70163) && numexplod(70173) = 0
id = 70173
anim = 70173
pos = 0,0
removetime = 999999
bindtime = -1
ontop = 1
postype = left
scale = .5,.5
[State 0, Removemovelistreptile]
type = RemoveExplod
trigger1 = anim != 70163
id = 70163
[State 0, Removemovelistreptile]
type = RemoveExplod
trigger1 = !numexplod(70163)
id = 70173

[State menu noob]
type = explod
trigger1 = root,var(20) = 4 && !time
trigger2 = anim = 70164 && numexplod(70164) < 2
id = 70164
anim = 70164
pos = 0,0
bindtime = -1
removetime = 999999
ontop = 1
postype = left
ownpal = 1
scale = .5,.5
[State menu noob]
type = explod
trigger1 = root,var(20) = 4 && !time
trigger2 = numexplod(70164) && numexplod(70174) = 0
id = 70174
anim = 70174
pos = 0,0
removetime = 999999
bindtime = -1
ontop = 1
postype = left
scale = .5,.5
[State 0, Removemovelistnoob]
type = RemoveExplod
trigger1 = anim != 70164
id = 70164
[State 0, Removemovelistnoob]
type = RemoveExplod
trigger1 = !numexplod(70164)
id = 70174

[State menu smoke]
type = explod
trigger1 = root,var(20) = 5 && !time
trigger2 = anim = 70165 && numexplod(70165) < 2
id = 70165
anim = 70165
pos = 0,0
bindtime = -1
removetime = 999999
ontop = 1
postype = left
ownpal = 1
scale = .5,.5
[State menu smoke]
type = explod
trigger1 = root,var(20) = 5 && !time
trigger2 = numexplod(70165) && numexplod(70175) = 0
id = 70175
anim = 70175
pos = 0,0
removetime = 999999
bindtime = -1
ontop = 1
postype = left
scale = .5,.5
[State 0, Removemovelistsmoke]
type = RemoveExplod
trigger1 = anim != 70165
id = 70165
[State 0, Removemovelistemoke]
type = RemoveExplod
trigger1 = !numexplod(70165)
id = 70175

[State menu ermac]
type = explod
trigger1 = root,var(20) = 6 && !time
trigger2 = anim = 70166 && numexplod(70166) < 2
id = 70166
anim = 70166
pos = 0,0
bindtime = -1
removetime = 999999
ontop = 1
postype = left
ownpal = 1
scale = .5,.5
[State menu ermac]
type = explod
trigger1 = root,var(20) = 6 && !time
trigger2 = numexplod(70166) && numexplod(70176) = 0
id = 70176
anim = 70176
pos = 0,0
removetime = 999999
bindtime = -1
ontop = 1
postype = left
scale = .5,.5
[State 0, Removemovelistermac]
type = RemoveExplod
trigger1 = anim != 70166
id = 70166
[State 0, Removemovelistermac]
type = RemoveExplod
trigger1 = !numexplod(70166)
id = 70176

[State combos]
type = explod
trigger1 = anim = 70160 && numexplod(70160) < 2
id = 70160
anim = 70160
pos = 0,0
bindtime = -1
removetime = 999999
ontop = 1
postype = left
ownpal = 1
scale = .5,.5
[State combos]
type = explod
trigger1 = numexplod(70160) && numexplod(70170) = 0
id = 70170
anim = 70170
pos = 0,0
removetime = 999999
bindtime = -1
ontop = 1
postype = left
scale = .5,.5
[State 0, Removemcombo]
type = RemoveExplod
trigger1 = anim != 70160
id = 70160
[State 0, Removecombo]
type = RemoveExplod
trigger1 = !numexplod(70160)
id = 70170

[State common]
type = explod
trigger1 = anim = 70162 && numexplod(70162) < 2
id = 70162
anim = 70162
pos = 0,0
bindtime = -1
removetime = 999999
ontop = 1
postype = left
ownpal = 1
scale = .5,.5
[State common]
type = explod
trigger1 = numexplod(70162) && numexplod(70172) = 0
id = 70172
anim = 70172
pos = 0,0
removetime = 999999
bindtime = -1
ontop = 1
postype = left
scale = .5,.5
[State 0, Removemcommon]
type = RemoveExplod
trigger1 = anim != 70162
id = 70162
[State 0, Removecommon]
type = RemoveExplod
trigger1 = !numexplod(70162)
id = 70172
;---------------------- fin movelist ----------------------
[State  ]
type = PlaySnd
trigger1 = !time
trigger2 = anim = 7016 && animelemtime(1) = 0 && time != 0
trigger3 = anim = 70160 && animelemtime(1) = 0 && time != 0
trigger4 = anim = 70161 && animelemtime(1) = 0 && time != 0
trigger5 = anim = 70162 && animelemtime(1) = 0 && time != 0
trigger6 = anim = 70163 && animelemtime(1) = 0 && time != 0
trigger7 = anim = 70164 && animelemtime(1) = 0 && time != 0
trigger8 = anim = 70165 && animelemtime(1) = 0 && time != 0
trigger9 = anim = 70166 && animelemtime(1) = 0 && time != 0
abspan = 1
value = 5, 0

[State  ]
type = PlaySnd
triggerall = time >= 5
trigger1 = parent,command = "start"
trigger2 = parent,command = "a"
trigger3 = parent,command = "b"
trigger4 = parent,command = "c"
trigger5 = parent,command = "x"
trigger6 = parent,command = "y"
trigger7 = parent,command = "z"
abspan = 1
value = 1, 4

[State ]
type = assertspecial
trigger1 = 1
flag = intro
flag2 = nobardisplay

[State what?]
type = DisplayToClipboard
trigger1 = 1
text = "what:%d nehpoenp"
params = parent,var(58)

[State end]
type = changestate
triggerall = root,command != "a" && root,command != "b" && root,command != "c" && root,command != "x" && root,command != "y" && root,command != "z"
trigger1 = (time >= 5 && parent,command = "start")
value = 7020

[State blackness]
type = null;palfx
trigger1 = !(time%2)
time = 2
add = -150,-150, -150
;sinadd = -250,-250, -250, 90

[State end]
type = destroyself
trigger1 = roundstate = 2
;------------------------------------------------------------
;moves
[Statedef 7020]
type    = A
movetype= I
physics = N
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 3

[State menu] 
type = explod
triggerall = stateno = 0
trigger1 = !time
id = 7015
anim = 7015
pos = 0,0
bindtime = -1
ontop = 1
postype = left
ownpal = 1
scale = .5,.5

[State menu] 
type = removeexplod
trigger1 = 1
id = 7014
[State menu]
type = removeexplod
trigger1 = 1
id = 7016
[State menu]
type = removeexplod
trigger1 = 1
id = 7017
[State menu]
type = removeexplod
trigger1 = 1
id = 70160
[State menu]
type = removeexplod
trigger1 = 1
id = 70170
[State menu]
type = removeexplod
trigger1 = 1
id = 70161
[State menu]
type = removeexplod
trigger1 = 1
id = 70171
[State menu]
type = removeexplod
trigger1 = 1
id = 70162
[State menu]
type = removeexplod
trigger1 = 1
id = 70172
[State menu]
type = removeexplod
trigger1 = 1
id = 70163
[State menu]
type = removeexplod
trigger1 = 1
id = 70173
[State menu]
type = removeexplod
trigger1 = 1
id = 70164
[State menu]
type = removeexplod
trigger1 = 1
id = 70174
[State menu]
type = removeexplod
trigger1 = 1
id = 70165
[State menu]
type = removeexplod
trigger1 = 1
id = 70175
[State menu]
type = removeexplod
trigger1 = 1
id = 70166
[State menu]
type = removeexplod
trigger1 = 1
id = 70176

[State end]
type = destroyself
trigger1 = time = 1
;-------------------------------------------------------------
;f starter
[Statedef 7021]
type    = A
movetype= A
physics = N
velset = 0,0
anim = 7019
ctrl = 0
sprpriority = 3

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = unguardable

[State grabby]
type = HitDef
Trigger1 = !movecontact
trigger2 = enemynear,stateno != 7022 && enemynear,stateno != 5120 && enemynear,stateno != 5110
triggerall = enemynear, alive = 1  && !enemynear,pos Y  && enemynear,stateno != 5110 && enemynear,stateno != 70210 && enemynear,stateno != 5120
attr = S, NA
hitflag = MAFD
sparkno = -1
fall = 1
p2stateno = ifelse(p2statetype = L,ifelse(!enemynear,pos Y,70210,5050),7022)
numhits = 0

[State 0, cambio]
type = ChangeState
trigger1 = !movecontact && p2stateno = 7022
value = 7023
ctrl = 0

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

[State end]
type = destroyself
trigger1 = !animtime && p2stateno = 7022
trigger1 = enemynear,ctrl = 0
trigger2 = time = 300


;--------------------------------
; CAE P2 PARA FATALITY
[Statedef 70210]
type    = L
movetype= H
physics = N

[State 0, SelfState]
type = SelfState
trigger1 = !time
value = 5110
;-------------------------------------------------------------
;f starter dizzy
[Statedef 7022]
type    = S
movetype= I
physics = N
velset = 0,0
ctrl = 0
sprpriority = 3

;--------------------------- para eternal ice
[State estatico]
type = ChangeAnim
triggerall = selfanimexist(9108097) = 0
triggerall = name != "Juano`s Sub guy"
Trigger1 = prevstateno = 60821
value = anim
elem = animelemno(0)

[State 0, AssertSpecial]
type = AssertSpecial
triggerall = selfanimexist(9108097) = 0
trigger1 = name != "Juano`s Sub guy"
trigger1 = prevstateno = 60821
flag = invisible

[State azul]
type = palfx
triggerall = selfanimexist(9108097) = 0
triggerall = name != "Juano`s Sub guy"
trigger1 = !(time%1)
Trigger1 = prevstateno = 60821
time = 1
ignorehitpause = 1
add = 150,150,200
mul = 50,190,256

[State congeladoCompatible]
type = ChangeAnim
triggerall = selfanimexist(9108098)
trigger1 = !time && anim = 9108097
triggerall = name != "Juano`s Sub guy"
value = 9108098

[State ]
type = ChangeAnim
trigger1 = !time && anim = 70880
triggerall = name = "Juano`s Sub guy"
value = 70883
;--------------------------- fin eternal ice
[State 0, AfterImage]
type = AfterImage
trigger1 = !time
time = 1
length = 1
ignorehitpause = 1

[State -1, nomusicenfatal]
type = assertspecial
trigger1 = 1
flag = nomusic
ignorehitpause = 1
persistent = 1

[State 0, homeropidepiedad]
type = PlaySnd
triggerall = prevstateno != 60821
trigger1 = name = "Homero J Simpson"
trigger1 = time = 0
triggerall = p2stateno != [6050,6098]
value = 5000,30
volume = 0
channel = 2

[State 0, sonidospeter]
type = PlaySnd
triggerall = name = "Peter Griffin"
triggerall = prevstateno != 60821
triggerall = p2stateno != [6050,6098]
trigger1 = time = 0
trigger2 = !alive
value = 0,6
volume = 200
channel = 2

[State 0, sonidospeter]
type = PlaySnd
triggerall = name = "Peter Griffin"
triggerall = p2stateno != [6050,6098]
trigger1 = time = 230
trigger2 = time = 430
value = 0,5
volume = 200
channel = 2

[State 0, sonidospeter]
type = PlaySnd
trigger1 = name = "Peter Griffin"
triggerall = p2stateno != [6050,6098]
trigger1 = time = 330
value = 0,7
volume = 200
channel = 2

[State 0, fin]
type = null;PlaySnd
triggerall = p2stateno != [6050,6098]
trigger1 = !alive
value = 11,0
volume = 200
channel = 3

[State mareado]
type = ChangeAnim
trigger1 = time > 1
triggerall = anim != 70880 && anim != 70883 && anim != 9108097 && anim != 9108098 && anim != 5300
value = 5300

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

[State ]
type = assertspecial
trigger1 = 1
flag = timerfreeze
[State ]
type = assertspecial
trigger1 = p2stateno != [6050,6098]
trigger1 = !alive
flag = nokosnd

[State ]
type = lifeset
trigger1 = time = 720 && p2stateno != [6050,6098]
value = 0

[State 0, StopSnd]
type = StopSnd
trigger1 = enemynear,stateno = 5150
channel = -1

[State 0, LifeAdd]
type = LifeAdd
trigger1 =  enemynear,stateno = 5150
value = -9999
kill = 1

[State 0, SelfState]
type = SelfState
trigger1 =  enemynear,stateno = 5150
value = 5050

[State away with you]
type = selfstate
trigger1 = time = 720 && p2stateno != [6050,6098]
value = ifelse((anim = 9108098 || anim = 70883),5150,5050)
;-------------------------------------------------------------
;fatal thing
[Statedef 7023]
type    = A
movetype= A
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = 3

;------------------- tuntun mk1
[State ,tunmk1]
type = PlaySnd
trigger1 = root,stateno = 6052
trigger1 = root,time = 1 && root,var(15) = 0
value = 4, 3
volume = 250
;channel = -1
;----------------------------------
[State ,posiNO]
type = Helper
triggerall = root,win != 1 && p2stateno != 5150 && root,lose != 1 && enemynear,alive = 1
trigger1 = p2stateno = 0 ;&& numhelper(7021) < 3
trigger2 = enemynear,ctrl = 1
helpertype = Normal
ID = 7021
name = "Finish porsiNO"
postype = p2
pos = 0,0
stateno = 7021
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State ]
type = parentvarset
trigger1 = 1
var(4) = 1

[State ]
type = bindtoparent
trigger1 = 1

[State 0, ovacionkhanarena]
type = PlaySnd
trigger1 = parent,time = 250 && var(0) = 1 && parent,stateno = 180 && parent,winperfect
trigger2 = parent,time = 150 && var(0) = 1 && parent,stateno = 180 && !parent,winperfect
triggerall = parent,var(22) = 5006;kahn arena
value = F9891,18
volume = 0
ignorehitpause = 1
channel = -1
persistent = 0
lowpriority = -1

[State ]
type = varset
trigger1 = (parent,stateno = 6052 || parent,stateno = 6054)
trigger2 = parent,stateno = 6056
trigger3 = parent,stateno = 6059
trigger4 = parent,stateno = 6063
trigger5 = parent,stateno = 6066
trigger6 = parent,var(16) != 0
var(0) = 1
;------------------------------ MENSAJE FINAL
[State 0 ,friend sonido]
type = PlaySnd
triggerall = !numexplod(16007)
triggerall = parent,anim = 7076
;trigger1 = parent,time = 220 && var(0) = 1 && parent,stateno = 180 && parent,winperfect
;trigger2 = parent,time = 120 && var(0) = 1 && parent,stateno = 180 && !parent,winperfect
trigger1 = parent,time = 250 && var(0) = 1 && parent,stateno = 180 && parent,winperfect
trigger2 = parent,time = 150 && var(0) = 1 && parent,stateno = 180 && !parent,winperfect
persistent = 0
abspan = 0
value = 15,6
volume = 200
channel = 4
;----------------------------- babality sound
[State 0 ,babality sonido]
type = PlaySnd
triggerall = !numexplod(16007)
triggerall = parent,anim != 7076 && enemynear,prevstateno = 60840
trigger1 = parent,time = 250 && var(0) = 1 && parent,stateno = 180 && parent,winperfect
trigger2 = parent,time = 150 && var(0) = 1 && parent,stateno = 180 && !parent,winperfect
persistent = 0
abspan = 0
value = 15,13
volume = 200
channel = 4
;-------------------------- fatality sound
[State 0 ,fatal sonidoMK1]
type = PlaySnd
triggerall = root,anim = 6014
triggerall = !numexplod(16007)
triggerall = parent,anim != 7076 && enemynear,prevstateno != 60840
trigger1 = parent,time = 260 && var(0) = 1 && parent,stateno = 180 && parent,winperfect
trigger2 = parent,time = 150 && var(0) = 1 && parent,stateno = 180 && !parent,winperfect
persistent = 0
abspan = 0
value = 4, 10
volume = 200
channel = 4
[State 0 ,fatal sonidoMK1fondo]
type = PlaySnd
triggerall = root,anim = 6014
triggerall = !numexplod(16007)
triggerall = parent,anim != 7076 && enemynear,prevstateno != 60840
trigger1 = parent,time = 240 && var(0) = 1 && parent,stateno = 180 && parent,winperfect
trigger2 = parent,time = 130 && var(0) = 1 && parent,stateno = 180 && !parent,winperfect
persistent = 0
abspan = 0
value = 4, 14
volume = 200
channel = -1

[State 0 ,fatal sonidoMK2]
type = PlaySnd
triggerall = root,anim != 6014
triggerall = !numexplod(16007)
triggerall = parent,anim != 7076 && enemynear,prevstateno != 60840
trigger1 = parent,time = 240 && var(0) = 1 && parent,stateno = 180 && parent,winperfect
trigger2 = parent,time = 130 && var(0) = 1 && parent,stateno = 180 && !parent,winperfect
persistent = 0
abspan = 0
value = 4, 7
volume = 200
channel = 4
;--------------------------- mensajes
[State 0, friend se馻l]
type = Explod
triggerall = !numexplod(16007)
triggerall = parent,anim = 7076
trigger1 = parent,time = 260 && var(0) = 1 && parent,stateno = 180 && parent,winperfect
trigger2 = parent,time = 150 && var(0) = 1 && parent,stateno = 180 && !parent,winperfect
id = 70288
anim = 70288
postype = left
pos = 160,55
;sprpriority = 5;2
ontop = 1
bindtime = -1
removetime = -1
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State fatal se馻l]
type = Explod
triggerall = !numexplod(16007)
triggerall = parent,anim != 7076 && enemynear,prevstateno != 60840
trigger1 = parent,time = 260 && var(0) = 1 && parent,stateno = 180 && parent,winperfect
trigger2 = parent,time = 150 && var(0) = 1 && parent,stateno = 180 && !parent,winperfect
id = 70288
anim = 7028
postype = left
pos = 160,60
;sprpriority = 5;2
bindtime = -1
removetime = -1
ownpal = 1
ontop = 1
scale = const(size.xscale),const(size.yscale)

[State bablity se馻l]
type = Explod
triggerall = !numexplod(16007)
triggerall = parent,anim != 7076 && enemynear,prevstateno = 60840
trigger1 = parent,time = 260 && var(0) = 1 && parent,stateno = 180 && parent,winperfect
trigger2 = parent,time = 150 && var(0) = 1 && parent,stateno = 180 && !parent,winperfect
id = 70288
anim = 70287
postype = left
pos = 160,80
bindtime = -1
removetime = -1
ownpal = 1
scale = .35,.35
ontop = 1
;-------------------------------- MENSAJE FINAL
[State ]
type = assertspecial
trigger1 = var(0)
trigger2 = parent,win = 1 && roundno != 1
flag = nomusic
flag2 = timerfreeze

;---------------------------------------------------------------
;time over death
[Statedef 7024]
type    = A
movetype= H
physics = N
ctrl = 0
velset = 0,0

[State 0, LifeAdd]
type = LifeAdd
trigger1 = time = 0
value = -10
kill = 1

[State 0, EnvShake]
type = EnvShake
trigger1 = animelem = 4
time = 10
ampl = -8

[State ] 
type = null;ChangeAnim2
trigger1 = !time
value = 6012

[State ] 
type = posset
trigger1 = 1
y = 0

[State weeeeeee!]
type = SelfState
trigger1 = time = 1;!animtime
value = 5050
;---------------------------------------------------------------
;get up and get dizzy
[Statedef 7025]
type    = A
movetype= H
physics = N
ctrl = 0
velset = 0,0

[State ]
type = VelAdd
trigger1 = pos Y < 0
y = GetHitVar(yaccel)

[State ]
type = ChangeAnim
trigger1 = !pos Y && !animtime && anim != 5120
value = 5120

[State ]
type = ChangeState
trigger1 = anim = 5120 && !animtime
value = 7022

;--------------
[Statedef 70250]
type    = L
movetype= H
physics = N
anim = 5100

[State 5100, 1]
type = VelSet
trigger1 = Time = 0
trigger1 = GetHitVar(fall.yvel) = 0
trigger1 = vel x > 1
x = 1

[State 5100, EnvShake]
type = FallEnvShake
trigger1 = Time = 0

[State 5100, 4]
type = PosSet
trigger1 = Time = 0
y = 0

[State 5100, 5]
type = VelSet
trigger1 = Time = 0
y = 0

[State 5100, 6]
type = VelMul
trigger1 = Time = 0
x = 0.75

[State 5100, 11]
type = PosFreeze
trigger1 = 1

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = time = 12
value = 5120

[State 5100, 12]
type = ChangeState
trigger1 = anim = 5120 && !AnimTime
value = 7022
;---------------------------------------
;Control de muchas cosas de MK
[Statedef 7026]
type    = A
movetype= I
physics = N
poweradd= 0
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 3

;======================================================
;==================== STAGE ID ========================
;======================================================
[State -1, pit 1]
type = parentVarSet
trigger1 = screenpos Y = 211
var(22) = 5005

[State -1, KHANARENA]
type = parentVarSet
trigger1 = screenpos Y = 225
var(22) = 5006

[State -1, living forest]
type = parentVarSet
trigger1 = screenpos Y = 219
var(22) = 5007

[State -1, deadpool]
type = parentVarSet
trigger1 = screenpos Y = 204
var(22) = 5008

[State -1, thetower]
type = parentVarSet
trigger1 = (screenpos Y = 224) || (screenpos Y = 200)
var(22) = 5009

[State -1, THEPIT2]
type = parentVarSet
trigger1 = screenpos Y = 206
var(22) = 5010

[State -1, kombatTomb]
type = parentVarSet
trigger1 = screenpos Y = 221
var(22) = 5011

[State -1, armory]
type = parentVarSet
trigger1 = screenpos Y = 222
var(22) = 5012

[State -1, wastelandGoroliar]
type = parentVarSet
trigger1 = screenpos Y = 218
trigger2 = screenpos Y = 210
var(22) = 5013

[State -1, pit3]
type = parentVarSet
trigger1 = screenpos Y = 194
var(22) = 5014

[State -1, scorpion lair]
type = parentVarSet
trigger1 = screenpos Y = 218
var(22) = 5015

[State -1, portal]
type = parentVarSet
trigger1 = screenpos Y = 226
var(22) = 5016

[State -1, subway]
type = parentVarSet
trigger1 = screenpos Y = 219
var(22) = 5017

[State -1, belltower]
type = parentVarSet
trigger1 = screenpos Y = 197
var(22) = 5018

[State -1, subwayMKA]
type = parentVarSet
trigger1 = screenpos Y = 190
var(22) = 5019

[State -1,TheStreet]
type = parentVarSet
trigger1 = screenpos Y = 218
var(22) = 5020

[State -1,RoofPortalMK3Desert]
type = parentVarSet
trigger1 = screenpos Y = 217
var(22) = 5021

[State -1,BankCave]
type = parentVarSet
trigger1 = screenpos Y = 222
trigger2 = screenpos Y = 202
var(22) = 5022

[State -1,Balcony]
type = parentVarSet
trigger1 = screenpos Y = 221
var(22) = 5023

[State -1,Bridge]
type = parentVarSet
trigger1 = screenpos Y = 219
var(22) = 5024

[State -1,SoulChamberBlue]
type = parentVarSet
trigger1 = screenpos Y = 222
trigger2 = screenpos Y = 201
var(22) = 5025

[State -1,Temple]
type = parentVarSet
trigger1 = screenpos Y = 223
var(22) = 5026

[State -1,graveyard]
type = parentVarSet
trigger1 = screenpos Y = 221
var(22) = 5027

[State -1,WaterFront]
type = parentVarSet
trigger1 = screenpos Y = 215
var(22) = 5028

[State -1,PalaceGates]
type = parentVarSet
trigger1 = screenpos Y = 217
var(22) = 5029

[State -1,CourtYard]
type = parentVarSet
trigger1 = screenpos Y = 219
var(22) = 5030

[State -1,Warriorshrine]
type = parentVarSet
trigger1 = screenpos Y = 218
var(22) = 5031

[State -1,ThroneroomPitbotom]
type = parentVarSet
trigger1 = screenpos Y = 221
trigger2 = screenpos Y = 225
var(22) = 5032
;--------------------------------------------------
[State yo]
type = DisplayToClipboard
trigger1 = !(time % 2)
text = "J a o 6: Your mom:%d stageID:%d CharID:%d var(58):%d SuperRoundhouse:%d"
params = var(1), root,var(22),parent,var(20),parent,var(58),root,fvar(3)

[State yo]
type = DisplayToClipboard
trigger1 = time %3 = 1
text = " u n 1 : your Mom:%d stageID:%d CharID:%d var(58):%d SuperRoundhouse:%d"
params = var(1), root,var(22),parent,var(20),parent,var(58),root,fvar(3)

[State ]
type = bindtoparent
trigger1 = 1

[State turn]
type = turn
triggerall = (parent,facing = 1 && facing = -1) || (parent,facing = -1 && facing = 1)
trigger1 = 1

[State 0, VarSet]
type = parentVarset
trigger1 = (root,stateno = 180 || root,stateno = 5150) && root,var(21) = 1
trigger2 = root,var(57) >= 20 && root,stateno = 180 && ((root,time = 460 && root,winperfect) || (root,time = 365 && !root,winperfect))
var(59) = 1

[State sound]
type = PlaySnd
trigger1 = parent,life <= 200
persistent = 0
abspan = 1
value = 3, 7

[State jahamk1]
type = PlaySnd
triggerall = parent,var(21) = 1
trigger1 = parent,life <= 200
persistent = 0
abspan = 1
value = 1,40

[State -4, danger1]
type = explod
trigger1 = teamside = 1
trigger1 = parent,life <= 200
ignorehitpause = 1
anim = 6993
pos = 30,30
facing = 1
postype = left
bindtime = -1
ownpal = 1
ontop = 1
persistent = 0
removetime = 40
scale = .25,.25

[State -4, danger2]
type = explod
trigger1 = teamside != 1
trigger1 = parent,life <= 200
ignorehitpause = 1
anim = 6993
pos = -54,30
facing = 1
postype = right
bindtime = -1
ownpal = 1
ontop = 1
persistent = 0
removetime = 40
scale = .25,.25

[State preparetodie]
type = PlaySnd
trigger1 = numpartner = 1 || enemynear,numpartner = 1
trigger1 = parent,power >= 4000
trigger1 = parent,life <= 200
persistent = 0
abspan = 1
value = 18,4

[State 0, StopSnd]
type = StopSnd
triggerall = roundstate != 1
trigger1 = p2stateno = 7024
trigger2 = enemynear,stateno = 5150
trigger3 = root,var(18) > 7
trigger4 = root,stateno = 60877
channel = 3
ignorehitpause = 1

[State 0, ovacionkhanarena]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
triggerall = roundstate != 1
triggerall = !parent,var(4) && ((parent,var(41) >= parent,var(58)) || (parent,var(58) = -1)) && enemynear,life = 1
trigger1 = parent,var(22) = 5006;kahn arena
value = F9891,18
volume = 0
ignorehitpause = 1
channel = -1
persistent = 0
lowpriority = -1

;------------------------------------ SP music
[State 0,musicafondoNormal]
type = PlaySnd
trigger1 = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
triggerall = root,stateno != [6050,6098]
triggerall = root,var(22) = 0
value = S15,1
abspan = 1
channel = 3
volume = 255
loop = 1
ignorehitpause = 1
persistent = 0

[State 0,musicafondoTheTower]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
triggerall = root,var(22) = 5009;en tower
value = F9891,0
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondolivingforest]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
;triggerall = roundstate != 1
trigger1 = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
triggerall = root,var(22) = 5007;livingforest
value = F9891,6
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondokahnarena]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
;triggerall = roundstate != 1
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
trigger1 = root,var(22) = 5006;kahn arena
trigger2 = root,var(22) = 5016;portal
value = F9891,8
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondodeadpool]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
triggerall = root,var(22) = 5008
;triggerall = roundstate != 1
trigger1 = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,4
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoPIT2]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
triggerall = root,var(22) = 5010
;triggerall = roundstate != 1
trigger1 = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,10
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoPIT1]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
triggerall = root,var(22) = 5005
;triggerall = roundstate != 1
trigger1 = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,12
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondokombatTomb]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
triggerall = root,var(22) = 5011
;triggerall = roundstate != 1
trigger1 = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,13
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoarmory]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
triggerall = root,var(22) = 5012
;triggerall = roundstate != 1
trigger1 = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,15
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoWasteland]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
triggerall = root,var(22) = 5013
;triggerall = roundstate != 1
trigger1 = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,10
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoPIT3scorpionliarBalcony]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5014
trigger2 = root,var(22) = 5015
trigger3 = root,var(22) = 5023
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,17
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoSubwayWaterfront]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5017
trigger2 = root,var(22) = 5019
trigger3 = root,var(22) = 5028
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,19
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoBelltower]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5018
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,23
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoStreet]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5020
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,24
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoRoof]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5021
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,26
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoBank]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5022
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,28
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoBridge]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5024
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,30
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoSoulChamber]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5025
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,32
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoTemple]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5026
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,34
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoGraveyard]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5027
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,23
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoPalaceGates]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5029
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,36
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoCourtyard]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5030
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,38
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoWarriorshrine]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5031
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,40
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0

[State 0,musicafondoThroneroomPitbotom]
type = PlaySnd
triggerall = root,stateno != [6050,6098]
trigger1 = root,var(22) = 5032
triggerall = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
value = F9891,42
abspan = 1
channel = 3
loop = 1
volume = 200
ignorehitpause = 1
persistent = 0


;================= Fin de Stage =====================
[State 0, AssertSpecial]
type = assertSpecial
triggerall = (!numpartner && !enemynear,numpartner) || ((numpartner != 0 || enemynear,numpartner != 0) && roundstate = [3,4])
trigger1 = !enemynear,alive
trigger2 = !root,var(4) && ((root,var(41) >= root,var(58)) || (root,var(58) = -1)) && enemynear,life = 1
trigger3 = enemynear,stateno = 60800
flag = nomusic

[State 3004, nosonido]
type = StopSnd
trigger1 = !enemynear,alive
channel = 3
persistent = 0

[State 0, FinRound]
type = PlaySnd
triggerall = !root,var(22)
trigger1 = root,stateno = 180 && !numpartner && !enemynear,numpartner && !numhelper(7021)
trigger2 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && !numhelper(7021) && !numpartner && !enemynear,numpartner
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3 && !numhelper(7021)
value = S15,2
volume = 250
channel = -1
persistent = 0

[State 0,finNormalFinish]
type = PlaySnd
trigger1 = numhelper(7021) != 0
trigger1 = root,stateno != [6050,6098]
trigger1 = enemynear,prevstateno != 7022 && enemynear,time = 1 && !enemynear,alive
trigger1 = parent,var(22) = 0
value = S15,2
abspan = 1
channel = 3
volume = 255
ignorehitpause = 1
persistent = 0

[State 0, tower]
type = PlaySnd
triggerall = root,var(22) = 5009
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,1
volume = 250
channel = -1
persistent = 0

[State 0, deadpool]
type = PlaySnd
triggerall = root,var(22) = 5008
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,3
volume = 250
channel = -1
persistent = 0

[State 0, livingforest]
type = PlaySnd
triggerall = root,var(22) = 5007
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,5
volume = 250
channel = -1
persistent = 0

[State 0, khanarena]
type = PlaySnd
triggerall = root,var(22) = 5006
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,7
volume = 250
channel = -1
persistent = 0

[State 0, PIT2]
type = PlaySnd
triggerall = root,var(22) = 5010
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,9
volume = 250
channel = -1
persistent = 0

[State 0, PIT1]
type = PlaySnd
triggerall = root,var(22) = 5005
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,11
volume = 250
channel = -1
persistent = 0

[State 0, kombatTomb]
type = PlaySnd
triggerall = root,var(22) = 5011
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,14
volume = 250
channel = -1
persistent = 0

[State 0, Armory]
type = PlaySnd
triggerall = root,var(22) = 5012
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,16
volume = 250
channel = -1
persistent = 0

[State 0, wasteland]
type = PlaySnd
triggerall = root,var(22) = 5013
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,9
volume = 250
channel = -1
persistent = 0

[State 0, pit3ScorpionLiarBalcony]
type = PlaySnd
triggerall = root,var(22) = 5014 || root,var(22) = 5015  || root,var(22) = 5023
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,2
volume = 250
channel = -1
persistent = 0

[State 0, portal]
type = PlaySnd
triggerall = root,var(22) = 5016
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,7
volume = 250
channel = -1
persistent = 0

[State 0, subwayWaterfront]
type = PlaySnd
triggerall = root,var(22) = 5017 || root,var(22) = 5019 || root,var(22) = 5028
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,20
volume = 250
channel = -1
persistent = 0

[State 0, belltower]
type = PlaySnd
triggerall = root,var(22) = 5018
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,22
volume = 250
channel = -1
persistent = 0

[State 0, Street]
type = PlaySnd
triggerall = root,var(22) = 5020
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,25
volume = 250
channel = -1
persistent = 0

[State 0, roof]
type = PlaySnd
triggerall = root,var(22) = 5021
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,27
volume = 250
channel = -1
persistent = 0

[State 0, bank]
type = PlaySnd
triggerall = root,var(22) = 5022
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,29
volume = 250
channel = -1
persistent = 0

[State 0, Bridge]
type = PlaySnd
triggerall = root,var(22) = 5024
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,31
volume = 250
channel = -1
persistent = 0

[State 0, SoulChamber]
type = PlaySnd
triggerall = root,var(22) = 5025
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,33
volume = 250
channel = -1
persistent = 0

[State 0, Temple]
type = PlaySnd
triggerall = root,var(22) = 5026
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,35
volume = 250
channel = -1
persistent = 0

[State 0, graveyard]
type = PlaySnd
triggerall = root,var(22) = 5027
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,22
volume = 250
channel = -1
persistent = 0

[State 0, PalaceGates]
type = PlaySnd
triggerall = root,var(22) = 5029
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,37
volume = 250
channel = -1
persistent = 0

[State 0, Courtyard]
type = PlaySnd
triggerall = root,var(22) = 5030
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,39
volume = 250
channel = -1
persistent = 0

[State 0, Warriorshrine]
type = PlaySnd
triggerall = root,var(22) = 5031
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,41
volume = 250
channel = -1
persistent = 0

[State 0, ThroneroomPitbotom]
type = PlaySnd
triggerall = root,var(22) = 5032
trigger1 = (!enemynear,alive && enemynear,time > 0 && !numhelper(60774) && root,stateno != [6050,6098]) && (!numpartner && !enemynear,numpartner)
trigger2 = root,stateno = 180 && (!numpartner && !enemynear,numpartner)
trigger3 = (numpartner != 0 || enemynear,numpartner != 0) && roundstate = 3
value = F9891,43
volume = 250
channel = -1
persistent = 0
;=====================================
;-- Especiales para Stage fatalitys --
[State -3,stagesubway]
type = Helper
triggerall = root,var(41) > 0
triggerall = !numhelper(70457)
trigger1 = root,var(22) = 5017
trigger2 = root,var(22) = 5019
helpertype = Normal
ID = 70457
postype = left
pos = 160,-219
name = "stageSubway"
stateno = 70457
ownpal = 1
persistent = 0
scale = const(size.xscale),const(size.yscale)

[State -3,Living Forest]
type = Helper
trigger1 = root,var(22) = 5007
trigger1 = !numhelper(704510)
helpertype = Normal
ID = 704510
postype = left
pos = 160,-219
name = "Arboles Living Forest"
stateno = 704510
ownpal = 1
scale = const(size.xscale),const(size.yscale)
persistent = 0

[State -3,DeadPool]
type = Helper
triggerall = root,var(41) > 0
trigger1 = root,var(22) = 5008
trigger1 = !numhelper(704514)
helpertype = Normal
ID = 704514
postype = left
pos = 160,0
name = "Dead Pool Control esqueleto"
stateno = 704514
ownpal = 1
scale = const(size.xscale),const(size.yscale)
persistent = 0
;-----------------------------------------------------
[State finish Her! se馻l]
type = Explod
triggerall = numexplod(702992) <= 1
trigger1 = p2name = "leela" ; by warner
trigger2 = p4name = "leela"
trigger3 = p2name = "kula_new"
trigger4 = p4name = "kula_new"
trigger5 = p2name = "Shermie"
trigger6 = p2name = "morrigan"
trigger7 = p2name = "morrigan by ryokucha"
trigger8 = P2name = "felicia"
trigger9 = P2Name = "psylocke by Qkrtkf!"
trigger10 = P2Name = "psylocke"
trigger11 = P2Name = "viuda negra"
trigger12 = P2Name = "chun li"
trigger13 = P2Name = "elastigirl"
trigger14 = p2name = "cammy"
trigger15 = P2name = "Sakura Kasugano"
trigger16 = p2name = "R.mika"
trigger17 = P2name = "Karin Kanzuki"
trigger18 = p2name = "juli" || p4name = "juli"
trigger19 = p2name = "juni" || p4name = "juni"
trigger20 = p2name = "rose" || p4name = "rose"
trigger21 = p2name = "Chunli" || p4name = "Chunli"
trigger22 = p2name = "Chun-Li" || p4name = "Chun-Li"
trigger23 = p2name = "Mika"   || p4name = "Mika"
trigger24 = P2name = "SF3 Chun Li" || p4name = "SF3 Chun Li"
trigger25 = P2Name = "SSF2Cammy" || P4Name = "SSF2Cammy"
trigger26 = P2Name = "cvscammy" || P4Name = "cvscammy"
trigger27 = P2Name = "J_Rose" || P4Name = "J_Rose"
trigger28 = P2Name = "sakura" || P4Name = "sakura"
trigger29 = P2name = "Morrigan Aensland" || p4name = "Morrigan Aensland"
trigger30 = p2name = "Lilith" || p4name = "Lilith"
trigger31 = P2name = "Hinata Wakaba" || p4name = "Hinata Wakaba"
trigger32 = P2name = "Mariah" || p4name = "Mariah"
trigger33 = p2name = "MIDLER"   || p4name = "MIDLER"
trigger34 = P2name = "Mai" || p4name = "Mai"
trigger35 = P2Name = "svcathena" || P4Name = "svcathena"
trigger36 = p2name = "cvsathena"   || p4name = "cvsathena"
trigger37 = p2name = "cvsvice" || p4name = "cvsvice"
trigger38 = P2name = "B.Jenet" || p4name = "B.Jenet"
trigger39 = P2name = "ARINA" || p4name = "ARINA"
trigger40 = p2name = "Hikari Reiko" || p4name = "Hikari Reiko"
trigger41 = p2name = "Yuki Morikawa" || p4name = "Yuki Morikawa"
trigger42 = P2Name = "dizzy" || P4Name = "dizzy"
trigger43 = P2name = "Raiya Mikazuchi" || p4name = "Raiya Mikazuchi"
trigger44 = P2name = "MysP" || p4name = "MysP"
trigger45 = P2name = "roomi" || p4name = "roomi"
trigger46 = p2name = "Blue Mary" || p4name = "Blue Mary"
trigger47 = p2name = "Mai Shiranui" || p4name = "Mai Shiranui"
trigger48 = p2name = "cvsfelicia" || p4name = "cvsfelicia"
trigger49 = p2name = "Nanashi Kimura" || p4name = "Nanashi Kimura"
trigger50 = p2name = "Wonder Woman Reloaded" || p4name = "Wonder Woman Reloaded"
trigger51 = p2name = "Felicia MvC2 Style by MGBenz" || p4name = "Felicia MvC2 Style by MGBenz"
trigger52 = p2name = "SHIRANUI MAI" || p4name = "SHIRANUI MAI"
trigger53 = p2name = "She-ra"  || p4name = "She-ra"
trigger54 = p2name = "Cammy_MVC2" || p4name = "Cammy_MVC2"
trigger55 = p2name = "Red Snake" || p4name = "Red Snake"
trigger56 = p2name = "Blair Dame" || p4name = "Blair Dame"
trigger57 = p2name = "Blair Dame MvsC" || p4name = "Blair Dame MvsC"
trigger58 = p2name = "athena-rkn" || p4name = "athena-rkn"
trigger59 = p2name = "Kelly Blender(Elektra) by AHRIMANES" || p4name = "Kelly Blender(Elektra) by AHRIMANES"
trigger60 = p2name = "B.ORCHID BY AHRIMANES"  || p4name = "B.ORCHID BY AHRIMANES"
trigger61 = p2name = "Tiazinha"  || p4name = "Tiazinha"
trigger62 = p2name = "Sailor Jupiter"  || p4name = "Sailor Jupiter"
trigger63 = p2name = "Maxine" || p4name = "Maxine"
trigger64 = p2name = "cvsyoko" || p4name = "cvsyoko"
trigger65 = p2name = "Juano`s Kit girl"
triggerall = roundstate != 1
triggerall = !parent,var(4) && ((parent,var(41) >= parent,var(58)) || (parent,var(58) = -1)) && enemynear,life = 1
id = 702992
anim = 70292
postype = left
pos = 14,30
sprpriority = 2
bindtime = -1
ownpal = 1
persistent = 0
scale = const(size.xscale),const(size.yscale)

[State finish her]
type = PlaySnd
triggerall = numexplod(702992) = 1
triggerall = roundstate != 1
trigger1 = !parent,var(4) && ((parent,var(41) >= parent,var(58)) || (parent,var(58) = -1)) && enemynear,life = 1
value = 4, 13
volume = 200
abspan = 1
persistent = 0

[State finish HIM! se馻l]
type = Explod
triggerall = !numexplod(702992) ; no si es finish her!
triggerall = roundstate != 1
trigger1 = !parent,var(4) && ((parent,var(41) >= parent,var(58)) || (parent,var(58) = -1)) && enemynear,life = 1
id = 70299
anim = 7029
postype = left
pos = 14,30
sprpriority = 2
bindtime = -1
;removetime = 70
ownpal = 1
persistent = 0
scale = const(size.xscale),const(size.yscale)

[State finish him]
type = PlaySnd
trigger1 = !numexplod(702992) ; no si es finish her!
trigger1 = roundstate != 1
trigger1 = !parent,var(4) && ((parent,var(41) >= parent,var(58)) || (parent,var(58) = -1)) && enemynear,life = 1
value = 4, 0
abspan = 1
persistent = 0
;----------------------------
[State nomusicfinish]
type = assertspecial
trigger1 = numexplod(70299)
trigger2 = numexplod(702992)
flag = nomusic
flag2 = timerfreeze

[State vaporboca]
type = Explod
triggerall = parent,var(20) = 1
triggerall = parent,stateno = 0 && parent,anim = 0
trigger1 = !(gametime % 150)
anim = 7027
id = 7027
Postype = p1
pos = 7*2*root,const(size.xscale)*(1+root,fvar(2)),-107*2*root,const(size.yscale)*(1+root,fvar(2))
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
ownpal = 1

[State blackness]
type = palfx
trigger1 = !(time%2)
time = 2
add = -50,-50, -50
;---------------------------------------
;get head
[Statedef 7027]
type    = A
movetype= I
physics = N
poweradd= 0
anim = 7020
velset = 0,0
ctrl = 0
sprpriority = 2

[State ]
type = posset
triggerall = anim = 7020
trigger1 = parent,anim != 6014
x = floor(enemynear,pos x)
y = floor(enemynear,pos y)

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = parent,anim = 6014
trigger1 = !time
value = 70200

[State ];por si peket
type = posset
trigger1 = anim = 70200
x = (parent,pos x)
y = (parent,pos y)
;----------------------------------------
;dayum
[Statedef 7028]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 1

[State ]
type = playsnd
trigger1 = !time
value = 1,8

[State blackness]
type = null;palfx
trigger1 = !(time%2)
time = 2
add = -50,-50, -50

[State 騙骫
type = Explod
trigger1 = time <= 4
anim = 7022
id = 7021
removetime = 1
Postype = p1
bindtime = -1
pos = 0,0
scale = (0+fvar(0))*root,const(size.xscale)*(1+root,fvar(2)),(0+fvar(0))*root,const(size.yscale)*(1+root,fvar(2))
sprpriority = 3

[State 騙骫
type = Explod
trigger1 = time = 5
anim = 7022
id = 7021
removetime = 4
Postype = p1
bindtime = -1
pos = 0,0
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State 騙骫
type = Explod
trigger1 = time >= 9
anim = 7022
id = 7021
removetime = 1
Postype = p1
bindtime = -1
pos = 0,0
scale = (1-fvar(1))*root,const(size.xscale)*(1+root,fvar(2)),(1-fvar(1))*root,const(size.yscale)*(1+root,fvar(2))
sprpriority = 3

[State 騙骫
type = varadd
trigger1 = time <= 4
fvar(0) = .2
[State 騙骫
type = varadd
trigger1 = time >= 9
fvar(1) = .1

[State end]
type = destroyself
trigger1 = time = 19
;---------------------------------------------------------------
;-------------------------------------------------------------
;fatal splode
[Statedef 7029]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = 3

[State sound]
type = PlaySnd
trigger1 = !time
value = 4, 1

[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)


[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "ribs"
postype = p1
pos = 0,0
stateno = 7031
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "ribs"
postype = p1
pos = 0,0
stateno = 7031
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "ribs"
postype = p1
pos = 0,0
stateno = 7031
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "brain container"
postype = p1
pos = 0,0
stateno = 7032
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "brain container"
postype = p1
pos = 0,0
stateno = 7032
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "brain container"
postype = p1
pos = 0,0
stateno = 7032
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State 騙骫
type = Explod
trigger1 = !time && root,stateno != 60811
anim = 7023
Postype = p1
pos = 0,30*2*root,const(size.xscale)*(1+root,fvar(2))
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = !time && root,stateno != 60811
anim = 7023
Postype = p1
pos = 0,0
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = !time && root,stateno != 60811
anim = 7023
Postype = p1
pos = 0,-30*2*root,const(size.xscale)*(1+root,fvar(2))
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State shake]
type = EnvShake
trigger1 = !time
time = 20
ampl = -7

[State end]
type = destroyself
trigger1 = time = 5

;-------------------------------------------------------------
;fatal splode 2
[Statedef 70292]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = 3

[State sound]
type = PlaySnd
trigger1 = !time
value = 4, 1
channel = 5

[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "ribs"
postype = p1
pos = 0,0
stateno = 7031
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "ribs"
postype = p1
pos = 0,0
stateno = 7031
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "ribs"
postype = p1
pos = 0,0
stateno = 7031
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "brain container"
postype = p1
pos = 0,0
stateno = 7032
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "brain container"
postype = p1
pos = 0,0
stateno = 7032
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "brain container"
postype = p1
pos = 0,0
stateno = 7032
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "bone"
postype = p1
pos = 0,0
stateno = 7030
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State 騙骫
type = Explod
triggerall = parent,stateno != 70452
trigger1 = !time
anim = 7023
Postype = p1
pos = 20*2*root,const(size.xscale)*(1+root,fvar(2)),0
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
triggerall = parent,stateno != 70452
trigger1 = !time
anim = 7023
Postype = p1
pos = -20*2*root,const(size.xscale)*(1+root,fvar(2)),0
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
triggerall = parent,stateno != 70452
trigger1 = !time
anim = 7023
Postype = p1
pos = -60*root,const(size.xscale)*(1+root,fvar(2)),0
sprpriority = 3
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State shake]
type = EnvShake
trigger1 = !time
time = 20
ampl = -5

[State end]
type = destroyself
trigger1 = time = 5
;-------------------------------------------------------------
;bone
[Statedef 7030]
type    = A
movetype= I
physics = N
anim = 7024
velset = 0,0
ctrl = 0
sprpriority = 3

[State x]
type = VarRandom
trigger1 = 1
v = 1
range = -4,2
[State y]
type = VarRandom
trigger1 = 1
v = 0
range = -10,-4

[State 0, Explod]
type = Explod
triggerall = vel Y < 0 && pos Y < -60
trigger1 = parent,stateno = 7029
trigger2 = parent,stateno = 70292
anim = 7024
ID = 7029
facing = -1
vel = var(1),-7
accel = 0,.3
random = 30,30
removetime = 120
sprpriority = 5
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State ]
type = velset
trigger1 = time = 1
y = var(0)
x = var(1)

[State ]
type = veladd
trigger1 = time >= 3
y = .3

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
triggerall = enemynear,prevstateno != 607716
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7033
;---------------------------------------------------------------
;-------------------------------------------------------------
;ribs
[Statedef 7031]
type    = A
movetype= I
physics = N
anim = 7025
velset = 0,0
ctrl = 0
sprpriority = 3
[State x]
type = VarRandom
trigger1 = 1;var(1) = 0
v = 1
range = -2,4
[State y]
type = VarRandom
trigger1 = time = 2
v = 0
range = -7,-6

[State 0, Explod]
type = Explod
trigger1 = vel Y < 0 && pos Y < -60
anim = 7025
ID = 7029
facing = -1
vel = var(1),-7
accel = 0,.3
random = 30,30
removetime = 120
sprpriority = 5
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State ]
type = velset
trigger1 = time = 2
y = var(0)
x = var(1)

[State ]
type = veladd
trigger1 = time >= 3
y = .3

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
triggerall = enemynear,prevstateno != 607716
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7033
;-------------------------------------------------------------
;skull
[Statedef 7032]
type    = A
movetype= I
physics = N
anim = 7026
velset = 0,0
ctrl = 0
sprpriority = 3

[State x]
type = VarRandom
trigger1 = 1;var(1) = 0
v = 1
range = -3,7
[State y]
type = VarRandom
trigger1 = time = 3
v = 0
range = -6,-5

[State 0, Explod]
type = Explod
trigger1 = vel Y < 0 && pos Y < -60
anim = 7026
ID = 7029
facing = -1
vel = var(1),-7
accel = 0,.3
random = 30,30
removetime = 120
sprpriority = 5
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State ]
type = velset
trigger1 = time = 3
y = var(0)
x = var(1)

[State ]
type = veladd
trigger1 = time >= 3
y = .3

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
triggerall = enemynear,prevstateno != 607716
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7033
;-------------------------------------------------------------
;body part bounceroo
[Statedef 7033]
type    = A
movetype= I
physics = N
ctrl = 0
sprpriority = 3

[State 0, angle]
type = AngleDraw
trigger1 = 1

[State 0, iceangle]
type = AngleAdd
trigger1 = anim = [70886,708820]
trigger2 = anim = 7070
value = 10

[State ]
type = velset
trigger1 = !time
y = -6

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

[State ]
type = veladd
trigger1 = 1
y = .3

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State sound de sangre]
type = PlaySnd
trigger1 = !time && anim != 7070 && anim != [70886,708820]
value = 4, 2
channel = -1
volume = -250

[State sound cabeza]
type = PlaySnd
trigger1 = !time && anim = 7070
value = F7,0
channel = -1
volume = -250

[State sound torso]
type = PlaySnd
trigger1 = !time && anim = 7068
value = F7,1
channel = -1
volume = -250

[State sound hielo]
type = PlaySnd
trigger1 = !time && anim = [70886,70889]
value = S1,29
channel = -1
volume = -250

[State end]
type = changestate
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7034
;---------------------------------------------------------------
;-------------------------------------------------------------
;body part bounceroo
[Statedef 7034]
type    = A
movetype= I
physics = N
velset = 0,0
ctrl = 0
sprpriority = 3

[State 23, hielodesaparece]
type = Trans
triggerall = root,win != 1
trigger1 = (anim = [70886,70889]) || (anim = [708810,708812]) || (anim = [7024,7026])
trans = addalpha
alpha=ceil(256-4*(time-60)),ceil(0+4*(time-60))

[State 0, DestroySelf]
type = DestroySelf
trigger1 = root,win != 1 && time > 120
trigger1 = (anim = [70886,70889]) || (anim = [708810,708812]) || (anim = [7024,7026])
trigger2 = parentdist X >= 120

[State 0, compatibles]
type = ChangeAnim
trigger1 = !time
trigger1 = anim = 9108092
value = 9108093

[State 0, temblortorso]
type = EnvShake
triggerall = time = 1
trigger1 = anim = 7068
trigger2 = anim = 9108093
time = 7
ampl = -4

[State sound cabeza]
type = PlaySnd
triggerall = name = "Juano`s Sub guy"
trigger1 = !time && anim = 7070
value = F7,0
channel = -1
volume = -250

[State sound torso]
type = PlaySnd
triggerall = name = "Juano`s Sub guy"
trigger1 = !time && anim = 7068
value = F7,1
channel = -1
volume = -250

[State sound hielo]
type = PlaySnd
triggerall = random < 70
trigger1 = !time && anim = [70886,70889]
value = S1,33
channel = -1
volume = -250

[State 0, cabeza]
type = AngleDraw
trigger1 = 1

[State sound hielo]
type = PlaySnd
triggerall = name = "Juano`s Sub guy"
trigger1 = !time && anim != 7070 && anim != [70886,708820]
value = 4, 2
channel = -1
volume = -250

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State ]
type = ChangeAnim
Trigger1 = anim != 7068
value = anim
elem = animelemno(0)
;---------------------------------
;humo en eskeleto
[Statedef 7035]
type    = A
movetype= I
physics = N
anim = 9999
ctrl = 0

[State -2, homoeskeletomk1]
type = Explod
trigger1 = time < 260  && (time%2) = 1
anim = 7040
pos = 0, -30
vel = 0,-2
random = 40*2*root,const(size.xscale)*(1+root,fvar(2)), 70*2*root,const(size.xscale)*(1+root,fvar(2))
ontop = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
;------------------------------------------------
[Statedef 7036]     ;cabeza
type    = A
movetype= I
physics = N
;velset = 0,-2
ctrl = 0
sprpriority = 3
anim = 7070

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1

[State 0, AngleAdd]
type = AngleAdd
trigger1 = 1
value = 30

[State y]
type = VarRandom
trigger1 = !time
v = 0
range = -8,-10
[State x]
type = VarRandom
trigger1 = !time
v = 1
range = -1,1

[State ]
type = veladd
trigger1 = !time
x = var(1)
y = var(0)

[State ]
type = veladd
trigger1 = time = 1 && var(1) = 0
y = -5

[State ]
type = veladd
trigger1 = time >= 3
y = .3

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
;triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7033

;------------------------------------------------
[Statedef 912320]     ;cabeza para peketo
type    = A
movetype= A
physics = N
ctrl = 0
anim = 9999
;--------------------
[State shake]
type = EnvShake
trigger1 = !time
trigger2 = time = 58 || time = 106
time = 15
ampl = -3

[State cayo]
type = PlaySnd
trigger1 = time = 58 || time = 106
value = 2, 1

[State cuerpo]
type = Explod
trigger1 = !time
anim = 6016
id = 912320
pos = 0*root,const(size.xscale)*(1+root,fvar(2)),110*2*root,const(size.yscale)*(1+root,fvar(2))
sprpriority = 2
shadow = -1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
ownpal = 0

[State cabeza]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7036
name = "cabeza"
postype = p1
pos = 5*2*root,const(size.xscale),0*root,const(size.yscale)
stateno = 7036
ownpal = 0
scale = root,const(size.xscale),root,const(size.yscale)

[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7018
name = "what the bleed?"
postype = p1
ignorehitpause = 1
stateno = 7018
ownpal = 1
pos = 5*2*root,const(size.xscale),-10*root,const(size.yscale)
scale = const(size.xscale),const(size.yscale)

[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7037
name = "sangrebola"
postype = p1
ignorehitpause = 1
stateno = 7037
ownpal = 1
pos = 5*2*root,const(size.xscale),-10*2*root,const(size.yscale)
scale = const(size.xscale),const(size.yscale)

[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 7018
name = "what the bleed?"
postype = p1
ignorehitpause = 1
stateno = 7018
ownpal = 1
pos = 5*2*root,const(size.xscale),-10*2*root,const(size.yscale)
scale = const(size.xscale),const(size.yscale)

[State 0, grito]
type = PlaySnd
Trigger1 = time = 0
value = 4+parent,var(23),5
volume = 200
channel = 4

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 120
;===========================================
;sangre bola
[Statedef 7037]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 6018
ctrl = 0
sprpriority = 5

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 0, baja]
type = VelAdd
trigger1 = anim = 6018 && time > 50 && pos Y < 0
y = .4

[State 0, stopbola]
type = VelSet
trigger1 = pos Y >= 0
y = 0

[State 0, PosSet]
type = PosSet
trigger1 = anim = 6019
y = 6

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = vel Y = 0 && time > 50 && anim != 6019
value = 6019

[State 0, PlaySnd]
type = PlaySnd
trigger1 = anim = 6019 && !animelemtime(1)
value = S1,5
volume = -250
channel = -1

[State 0, SprPriority]
type = SprPriority
trigger1 = anim = 6019
value = -1
;===========================================
;sangre cuello
[Statedef 7038]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = -1

[State 0, Turn]
type = Turn
trigger1 = (parent,facing = 1 && facing = -1) || (parent,facing = -1 && facing = 1)
trigger1 = parent,stateno != 6068
trigger2 = (parent,facing = -1 && facing = -1) || (parent,facing = 1 && facing = 1)
trigger2 = parent,stateno = 6068

[State 0, salesangre]
type = Explod
trigger1 = time = 0
anim = 60182
ID = 60182
removetime = 16
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
ontop = 1
shadow = 0
ownpal = 1
;vel = 6,2
accel = 0,.12

[State 0, sangrecae]
type = ChangeAnim
trigger1 = time = 16
value = 60182
elem = 9

[State y]
type = VarRandom
trigger1 = 1
v = 0
range = 4,9

[State 0, baja]
type = Velset
trigger1 = pos Y < 0
trigger1 = time = 16
trigger1 = anim = 60182
y = 6
x = var(0)

[State 0, stopbola]
type = VelSet
trigger1 = pos Y > -7
y = 0
x = 0

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time > 70 && vel Y = 0
;===========================================
;sangre explosion comer
[Statedef 7039]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = -1

[State 0, AllPalFX]
type = AllPalFX
trigger1 = time = 90
time = 5
add = 256,0,0
mul = 256,0,0
invertall = 1
color = 256

[State 0, EnvShake]
type = EnvShake
trigger1 = time = 90
time = 15
ampl = -5

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 90
value = S1,10
volume = 0

[State 0, sangre]
type = Explod
trigger1 = time = 90
anim = 7023
pos = 0,root,ceil(const(size.head.pos.y)*root,const(size.yscale))*root,const(size.yscale)*(1+root,fvar(2))
postype = p1  ;p2,front,back,left,right
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
ownpal = 1
sprpriority = 10

[State ]
type = Helper
trigger1 = time = 90
triggerall = !numhelper(7028)
trigger1 = root,stateno != 6059
helpertype = Normal
ID = 7028
name = "splat"
postype = p1
pos = 0,root,ceil(const(size.head.pos.y)*root,const(size.yscale))
stateno = 7029
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
triggerall = stateno != 170
trigger1 = time = 90
helpertype = Normal
ID = 7018
name = "what the bleed?"
postype = p1
ignorehitpause = 1
pos = const(size.head.pos.x),root,ceil(const(size.head.pos.y)*root,const(size.yscale))
stateno = 7018
ownpal = 1
scale = const(size.xscale),const(size.yscale)
ontop = 1

[State ]
type = Helper
triggerall = stateno != 170
trigger1 = time = 90 && !numhelper(7018)
helpertype = Normal
ID = 7018
name = "bleed?"
postype = p1
ignorehitpause = 1
pos = enemynear,const(size.head.pos.x),root,ceil(const(size.head.pos.y)*root,const(size.yscale))
stateno = 7018
ownpal = 1
scale = const(size.xscale),const(size.yscale)

;===========================================
;picos
[Statedef 60771]
type    = A
movetype= I
physics = N
;velset = 0,2.5
anim = 9999;60330
ctrl = 0
sprpriority = -5

[State 0, picosatras1]
type = Explod
trigger1 = !numexplod(603301)
anim = 60330
ID = 603301
facing = 1
postype = left
sprpriority = -5
scale = const(size.xscale),root,const(size.yscale)*(1+root,fvar(2))

[State 0, picosatras2]
type = Explod
trigger1 = !numexplod(603302)
anim = 60330
ID = 603302
facing = 1
postype = left
sprpriority = -5
pos = 264,0
scale = const(size.xscale),root,const(size.yscale)*(1+root,fvar(2))

[State 0, filo]
type = PlaySnd
trigger1 = time = 0
value = S17,2
volume = 100
channel = 2

[State 0, nosombra]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 0, picodelante1]
type = Explod
trigger1 = !numexplod(60331)
anim = 60331
ID = 60331
facing = 1
ontop = 1
postype = left
scale = const(size.xscale),const(size.yscale)*(1+root,fvar(2))

;-------------------------------------------------------------
;sangrecae de p2 empalado
[Statedef 60772]
type    = A
movetype= I
physics = N
anim = 70773
velset = 0,0
ctrl = 0
sprpriority = -2

[State y]
type = VarRandom
trigger1 = 1
v = 0
range = 0,2

[State ]
type = velset
trigger1 = time = 1
y = var(0)

[State ]
type = veladd
trigger1 = time >= 1
y = .3

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State 0, gotacae]
type = PlaySnd
triggerall = var(15) = 0;(0) = 0
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = S4,2
channel = 3

[State 0, gotacae2]
type = PlaySnd
triggerall = time >= 5
triggerall = var(15) = 1;(0) = -1
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = S17,1
channel = 3
volume = 200

[State end]
type = changestate
triggerall = time >= 5
triggerall = (Vel Y > 0)
trigger1 = Pos Y >= 0
value = 7017

;-------------------------------------------------------------
;helpersangrecae
[Statedef 60773]
type    = A
movetype= I
physics = N
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 0

[State 0, BindToTarget]
type = BindToTarget
trigger1 = !time
time = 9999

[State 0, varsangresound]
type = VarRandom
trigger1 = 1
v = 15
range = 0,1

[State 0, varsangreX]
type = VarRandom
trigger1 = 1
v = 1
range = -60,30

[State 0, sangregoteadelp2enstagefatality]
type = Helper
trigger1 = parent,var(22) = 5011 && enemynear,pos Y < -260
trigger2 = parent,var(22) != 5011
triggerall = random < 50 && time > 70
helpertype = Normal
ID = 60772
name = "sangregotea"
postype = p2
pos = var(1),ifelse(root,var(22) = 5011,((enemynear,pos Y)+30),((-screenpos Y)+30))
stateno = 60772
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 0, PlaySnd]
type = PlaySnd
triggerall = enemynear,stateno = 5150
trigger1 = enemynear,pos Y > -20
value = S2,2
channel = -1
volume = 255
persistent = 0
;-------------------------------------------------------------
;helperoscuridad
[Statedef 60774]
type    = A
movetype= I
physics = N
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 0

[State 0, VarAdd]
type = VarAdd
trigger1 = time < 35
var(0) = -3

[State 8000, oscuro1]
type = BGPalFX
trigger1 = time < 35
time = 9999
add = var(0),var(0),var(0)
;--------------------------------------------
;-------------------------------------------------------------
;sangrecae de p2 empalado 1
[Statedef 60775]
type    = A
movetype= I
physics = N
anim = 60341
velset = 0,0
ctrl = 0
sprpriority = 2

[State y]
type = VarRandom
trigger1 = 1
v = 0
range = 1,9

[State ]
type = velset
trigger1 = time = 1
x = var(0);5

[State ]
type = veladd
trigger1 = time >= 8
y = .2

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State 0, gotacae]
type = PlaySnd
triggerall = var(15) = 0;(0) = 0
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = S4,2
channel = 3

[State 0, gotacae2]
type = PlaySnd
triggerall = time >= 5
triggerall = var(15) = 1;(0) = -1
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = S17,1
channel = 4
volume = 200

[State end]
type = changestate
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7017
;--------------------------------------------
;-------------------------------------------------------------
;----------------------------------------------
[Statedef 60776]
type    = A
movetype= I
physics = N
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 2

[State 0, gotacae2]
type = PlaySnd
trigger1 = time = 120
value = S17,5
channel = 3
volume = 0

[State 0, PosAdd]
type = PosAdd
trigger1 = (parent,facing = 1 && facing = -1) || (parent,facing = -1 && facing = 1)
x = root,const(size.yscale)*(-60)

[State 0, Turn]
type = Turn
trigger1 = (parent,facing = 1 && facing = -1) || (parent,facing = -1 && facing = 1)

[State 0, sangregoteadelp2enstagefatality]
type = Helper
trigger1 = time = [41,90]
;trigger1 = numhelper(60774) < 10
trigger1 = (time%5) = 1
helpertype = Normal
ID = 60774
name = "sangregotea"
postype = p1
pos = 0,0
stateno = 60775
ownpal = 1
;facing = -1
scale = const(size.xscale),const(size.yscale)
[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 110

;----------------------------------------------
;--------------- HELPER HYPER -----------------
[Statedef 60777]
type    = A
movetype= I
physics = N
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 2

[State 3000, sonido hyper]
type = PlaySnd
trigger1 = time = 0
value = s14,0
channel = 1

[State 3000, Voice]
type = PlaySnd
trigger1 = time = 0
value = s1,9
channel = 0

[State 3000, env]
type = EnvColor
trigger1 = Time = 0
value = 255,255,255
time = 4
under = 1

[State 3000, env2]
type = EnvColor
trigger1 = Time = 0
value = 0,0,0
time = 24
under = 1

[State 3000, 1]
type = AssertSpecial
trigger1 = numexplod(3002)
flag= noBG
ignorehitpause = 1

[State 3000,Explod1]
type = Explod
trigger1 = Time = 0
anim = 3001
id   = 3001
pos = 6*2*root,const(size.xscale)*(1+root,fvar(2)),-98*2*root,const(size.yscale)*(1+root,fvar(2))
postype = p1
supermove = 1
supermovetime = 9999
sprpriority = -1
bindtime = 1
ontop = 1
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State 3000,Explod2]
type = Explod
trigger1 = Time = 0
anim = 3002
id   = 3002
pos = 6*2*root,const(size.xscale)*(1+root,fvar(2)),-98*2*root,const(size.yscale)*(1+root,fvar(2))
postype = p1
sprpriority = -2
supermove = 1
supermovetime = 9999
bindtime = -2
ontop = 0
ownpal = 1
unhittable = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State 3000,Explod2]
type = Explod
trigger1 = !time
anim = 30011
id   = 3002
pos = 0,0
postype = left
supermove = 1
supermovetime = 9999
sprpriority = -5
bindtime = 999999
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State 3000, Super Pause]
type = superPause
trigger1 = time = 0
movetime = 0
poweradd = 0
time = 30
anim = -1
p2defmul = 1
darken = 1

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 2

;----------------------------------------------
;------------ HELPER SUPERCANCEL --------------
[Statedef 60778]
type    = A
movetype= I
physics = N
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 2

[State 3000,Explod2]
type = Explod
trigger1 = 1
anim = 30010
pos = 0,0
postype = left
supermove = 1
;supermovetime = 9999
sprpriority = -2
bindtime = -2
ontop = 0
ownpal = 1
ignorehitpause = 1
scale = const(size.xscale),const(size.yscale)

[State 0, AllPalFX]
type = bgPalFX
trigger1 = !time
time = 30
invertall = 1
add = 0,0,0
mul = 256,256,256
sinadd = 0,0,0,10
color = 256

[State ]
type = Playsnd
trigger1 = !time
persistent = 0
value = 3,parent,var(5)
abspan = 1
channel = 2
volume = 200

[State 3000, tuun]
type = PlaySnd
trigger1 = time = 0
value = s4,3
channel = 3
volume = 250
ignorehitpause = 1

[State 3000,Explod1]
type = Explod
trigger1 = Time = 0
anim = 3001
id   = 3001
pos = 6*2*root,const(size.xscale)*(1+root,fvar(2)),-98*2*root,const(size.yscale)*(1+root,fvar(2))
postype = p1
supermove = 1
supermovetime = 9999
sprpriority = -1
bindtime = 1
ontop = 1
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State 3000,Explod2]
type = Explod
trigger1 = Time = 0
anim = 3002
id   = 3002
pos = 6*2*root,const(size.xscale)*(1+root,fvar(2)),-98*2*root,const(size.yscale)*(1+root,fvar(2))
postype = p1
sprpriority = -2
supermove = 1
supermovetime = 9999
bindtime = -2
ontop = 0
ownpal = 1
unhittable = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State 3000, Super Pause]
type = superpause
trigger1 = time = 1
movetime = 0
poweradd = 0
time = 30
anim = S3001
pos = 6,-98
p2defmul = 1
darken = 0
sound = s14,4

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 3
;============================================================
;=================== Shao Kahn ==============================
;------------------------------------------------------------


;============================================================
;====================== Kitana ==============================
[Statedef 7041]
type    = A
movetype= I
physics = N
anim = 176
velset = 0,15
ctrl = 0
sprpriority = 2

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = time < 360
flag = roundnotover

[State 0, VelAdd]
type = VelAdd
trigger1 = pos Y < -20
y = .2

[State 0, VelSet]
type = VelSet
trigger1 = pos Y > 0
y = 0

[State 0, PosSet]
type = PosSet
trigger1 = pos Y > 0
y = 0

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = pos Y = 0 && anim = 176 && anim != 177 && anim != 178
value = 177

[State 0, PlaySnd]
type = PlaySnd
trigger1 = anim = 177 && animelem = 1
value = S3,0
volume = 200

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim = 177 && time > 45 && anim != 178
value = 178
;============================================================
;====================== Kung Lao ==============================
[Statedef 7042]
type    = A
movetype= I
physics = N
anim = 179
velset = 0,15
ctrl = 0
sprpriority = 2

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = time < 330
flag = roundnotover

[State 0, VelAdd]
type = VelAdd
trigger1 = pos Y < -20
y = .2

[State 0, VelSet]
type = VelSet
trigger1 = pos Y > 0
y = 0

[State 0, PosSet]
type = PosSet
trigger1 = pos Y > 0
y = 0

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = pos Y = 0 && anim = 179 && anim != 1791 && anim != 1792
value = 1791

[State 0, PlaySnd]
type = PlaySnd
trigger1 = anim = 1791 && animelem = 1
value = S3,0
volume = 200

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim = 1791 && time > 45 && anim != 1792
value = 1792

;============================================================
;====================== chanel ==============================
[Statedef 70420]
type    = A
movetype= I
physics = N
anim = 1794
velset = 0,15
ctrl = 0
sprpriority = 2

[State 0, DestroySelf]
type = DestroySelf
trigger1 = root,var(21) = 1

[State 0, StopSnd]
type = StopSnd
trigger1 = time = 0
channel = -1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 1 && var(15) = [0,4]
value = S4,3
volume = 255
channel = -1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 1 && var(15) != [0,4]
value = S1,17
volume = 255
channel = -1

[State -3, a]
type = PalFX
trigger1 = numexplod(1100) = 1
time = 2
add = 0,0,0
mul = 0,0,256
sinadd = 0,0,0,10
invertall = 0
color = 0
ignorehitpause = 1

[State -3, a]
type = PalFX
trigger1 = numexplod(1101) = 1
time = 2
add = 50,0,0
mul = 256,256,0
sinadd = 0,0,0,10
invertall = 0
color = 0
ignorehitpause = 1

[State -3, a]
type = PalFX
trigger1 = numexplod(1102) = 1
time = 2
mul = 0,256,0
ignorehitpause = 1

[State -3, a]
type = PalFX
trigger1 = numexplod(1103) = 1
time = 2
mul = 0,0,0
ignorehitpause = 1

[State -3, a]
type = PalFX
trigger1 = numexplod(1104) = 1
time = 2
add = 0,0,0
mul = 256,256,256
sinadd = 0,0,0,1
invertall = 0
color = 0
ignorehitpause = 1

[State -3, a]
type = PalFX
trigger1 = numexplod(1105) = 1
time = 2
add = 50,0,0
mul = 256,0,0
sinadd = 0,0,0,10
invertall = 0
color = 0
ignorehitpause = 1

[State 0, a]
type = Explod
triggerall = numexplod(1100+var(9)) < 6
trigger1 = (time%15) = 1
anim = 9999
ID = 1100+var(9)
pos = 320*2*root,const(size.xscale)*(1+root,fvar(2)),240*2*root,const(size.yscale)*(1+root,fvar(2))
postype = left
bindtime = 1
removetime = 20
ownpal = 1
ignorehitpause = 1
scale = const(size.xscale),const(size.yscale)

[State 0, a]
type = Trans
trigger1 = 1
trans = addalpha
alpha= 256,110

[State 0, a]
type = VarRandom
trigger1 = !(time%5)
v = 9
range = 0,5

[State -2, noda馷
type = nothitby
trigger1 = 1
value = SCA

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1;time < 300
flag = intro
flag2 = nobardisplay
flag3 = nomusic
flag4 = timerfreeze

[State 0, VelAdd]
type = VelAdd
trigger1 = pos Y < -20
y = .2

[State 0, VelSet]
type = VelSet
trigger1 = pos Y > 0
y = 0

[State 0, PosSet]
type = PosSet
trigger1 = pos Y > 0
y = 0

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = pos Y = 0
value = 40
persistent = 0

[State 0, PlaySnd]
type = PlaySnd
trigger1 = pos Y = 0
value = S3,0
volume = 200
persistent = 0

[State 3011, Fire]
type = explod
trigger1 = Time = 280
anim = 7038
pos = -6*2*root,const(size.xscale)*(1+root,fvar(2)),6*2*root,const(size.yscale)*(1+root,fvar(2))
postype = p1
ontop = 1
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State 3011, Boom]
type = PlaySnd
trigger1 = time = 275
value = 1,22

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim = 40 && time > 30
value = 183

[State 0, VarRandom]
type = VarRandom
trigger1 = !time
v = 15
range = 0,9

[State 0, msn]
type = Explod
trigger1 = pos Y = 0
anim = 3388110+var(15)
ID = 3388110
pos = 160,230
postype = left
bindtime = -1
removetime = -2
ownpal = 1
scale = .25,.25
ignorehitpause = 1
persistent = 0

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 280
id = 3388110

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 300

;=============================================================
;====================== Ermac SP1 ============================
;Ermac cosa verde
[Statedef 70001]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 70813
velset = 9
ctrl = 0
sprpriority = 3

[State 0, DisplayToClipboard]
type = DisplayToClipboard
trigger1 = 1
text = "posY = %d"
params = floor(pos Y)

[State 0, suyo]
type = VarSet
trigger1 = 1
var(0) = enemynear,pos Y + enemynear,ceil(const(size.mid.pos.y))*enemynear,const(size.yscale)

[State 0, mio]
type = VarSet
trigger1 = 1
var(1) = pos Y

[State what?]
type = velset
trigger1 = var(0)-var(1) = [-20,20]
y = 0

[State what?]
type = velset
triggerall = root,var(21) && root,var(20) = 6
trigger1 = var(0)-var(1) != [-20,20]
trigger1 = pos Y != (-70*root,const(size.yscale))
y = ifelse(var(0) < var(1),-3-var(2),ifelse(var(0) > var(1),3+var(2),0))

[State 0, VelAdd]
type = Varset
trigger1 = pos X-enemynear,pos X < -10
var(2) = 5

[State ]
type = Helper
trigger1 = !time
helpertype = Normal
ID = 70001
name = "hado nrg"
postype = p1
pos = 0,0
stateno = 70002
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = playsnd
trigger1 = !time
value = 1,26

[State ]
type = Hitdef
trigger1 = time = 1 && !movecontact && numenemy
damage = (120/var(0)),18
getpower = 0,0
givepower = 0,0
pausetime = 2,3
attr = A,SP
guardflag = M
animtype = heavy
air.animtype = back
priority = 4, hit
sparkno = -1
guard.sparkno = -1
sparkxy = 0, 0
hitsound = S0,0
guardsound = S0,7
ground.type = high
air.type = high
ground.slidetime = 20
ground.hittime = 24
ground.velocity = -6, 0
air.velocity = -3-parent,fvar(1), -5+parent,fvar(1)
air.cornerpush.veloff = 0
ground.cornerpush.veloff = 0
yaccel = .5
air.fall = 1
fall.recover = 0
fall.xvelocity = 0
fall.yvelocity = 0
p2facing = 1
kill = parent,var(4)
guard.kill = parent,var(4)
envshake.time = 10           ;Parameters for shaking the screen on hit
envshake.ampl = 3
palfx.time = 10
palfx.mul = 0,200,0
palfx.color = 60
palfx.sinadd = 0,256,0,10

[State end]
type = varset
trigger1 = 1
ignorehitpause = 1
var(0) = ifelse(p2movetype = H,enemynear,gethitvar(hitcount)+1,ifelse(p2movetype = H && enemynear,gethitvar(hitcount) >= 10,10,1))

[State don't hurt me]
type = nothitby
triggerall = parent,var(57) <= 1
trigger1 = 1
ignorehitpause = 1
value = SAC
[State don't hurt me]
type = nothitby
triggerall = parent,var(57) >= 2
trigger1 = 1
ignorehitpause = 1
value = , AA, AT

[State hurt me]
type = hitoverride
parent,var(57) <= 1
trigger1 = 1
attr = SAC, AP
ignorehitpause = 1
stateno = 70003

[State end]
type = changestate
trigger1 = movecontact
ignorehitpause = 1
value = 70003
[State end]
type = destroyself
trigger1 = frontedgedist <= -150 || parent,movetype = H

;------------------------------------------------------------
;trail
[Statedef 70002]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 9999
velset = 9,-5
ctrl = 0
sprpriority = 3

[State ]
type = varset
trigger1 = !(time%5)
var(0) = ifelse(!var(0),1,0)

[State what?]
type = veladd
trigger1 = time >= 1 && !parent,vel Y
y = ifelse(parentdist y <= -10,-3,ifelse(parentdist y >= 10,3,0))

[State 0, VelSet]
type = VelSet
trigger1 = parentdist y != [-20,20]
y = ifelse(parentdist y < -20,-3,ifelse(parentdist y > 20,3,0))

[State 0, BindToParent]
type = BindToParent
trigger1 = parent,vel Y != 0
time = 1
pos = 0,0

[State 騙骫
type = Explod
trigger1 = 1;parentdist Y = 0
anim = 70811
id = 700811
Postype = p1
sprpriority = 3
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State end]
type = destroyself
trigger1 = frontedgedist <= -150 || parent,stateno != 70001

;------------------------------------------------------------
;hadouend
[Statedef 70003]
type    = A
movetype= I
physics = N
anim = 70812
velset = 0,0
ctrl = 0
sprpriority = 3

[State ]
type = playsnd
trigger1 = !time && prevstateno = 70001
value = 1,27

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State 騙骫
type = Explod
trigger1 = !time
anim = 7081
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 6,6
accel = 0,.4
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = !time
anim = 7081
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 1,-4
accel = 0,.4
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = !time
anim = 7081
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = -6,-5
accel = 0,.4
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = !time
anim = 7081
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 5,-4
accel = 0,.4
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = !time
anim = 7081
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 5,-3
accel = 0,.4
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = !time
anim = 7081
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 2,5
accel = 0,.4
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = !time
anim = 7081
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = -2,-2
accel = 0,.4
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = !time
anim = 7081
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = -5,-4
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = !time
anim = 7081
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = -7,0
accel = 0,.4
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
[State 騙骫
type = Explod
trigger1 = !time
anim = 7081
id = 7003
Postype = p1
pos = 0,0
random = 0,0
ontop = 1
velocity = 1,-1
accel = 0,.4
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State end]
type = destroyself
trigger1 = !animtime

;================================================
;-------- ermac SLAM
[Statedef 70004]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 70823
velset = 20,0
ctrl = 0
sprpriority = 3

[State shake]
type = EnvShake
trigger1 = !time
time = 15
ampl = -3

[State grabby]
type = HitDef
trigger1 = !movecontact
attr = S, ST
guardflag = M
getpower = 0,0
givepower = 0,0
pausetime = 1,2
guard.pausetime = 1,8
priority = 1, Miss
sparkno = -1
guard.sparkno = -1
sprpriority = -1
;hitsound = s2,1
guardsound = S0,7
p1facing = 1
p2facing = 1
p1stateno = 70009
p2stateno = 70005
guard.velocity = -7
ground.slidetime = 15
ground.hittime = 15
fall = 1
fall.recover = 0
fall.xvelocity = 0
fall.yvelocity = 0
yaccel = .5
numhits = 0

[State end]
type = destroyself
trigger1 = time = 5 || moveguarded

;------------------------------------
;slam
[Statedef 70009]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 3

[State Super]
type = SuperPause
triggerall = numtarget
trigger1 = !time
anim = -1
pos = 0,0
time = 0
movetime = 0
p2defmul = 1.35
unhittable = 1
darken = 0

[State ]
type = playsnd
;triggerall = numtarget
trigger1 = target,stateno = 70007
persistent = 0
value = S1,6

[State ouchy!]
type = targetlifeadd
triggerall = numtarget
trigger1 = target,stateno = 70007
persistent = 0
value = -112
kill = parent,var(4)

[State ouchy!]
type = targetstate
trigger1 = parent,movetype = H && time <= 20
value = 70008

[State end]
type = parentvaradd
trigger1 = time = 1
var(2) = 1

[State end]
type = destroyself
triggerall = numtarget
trigger1 = target,stateno = 70007 && target,time = 10
trigger2 = target,stateno = 70008

[State end]
type = destroyself
trigger1 = !numtarget
;---------------------------------------------------------------------------
;cool off
[Statedef 70005]
type    = S
movetype= H
physics = N
velset = 0,0

[State amination]
type = ChangeAnim2
Trigger1 = 1
value = 50502

[State wallbanger]
type = posset
Trigger1 = !time && pos y >= 0
y = 0

[State is it over?]
type = ChangeState
Trigger1 = hitshakeover
value = 70006
;---------------------------------------------------------------------------
;..............................
[Statedef 70006]
type    = A
movetype= H
physics = N
velset = 0,-7

[State wallbanger]
type = posadd
triggerall = time <= 15
Trigger1 = !(time%2)
x = 2
y = -2

[State wallbanger]
type = posadd
triggerall = time <= 15
Trigger1 = !(time%3)
x = -2
y = 2

[State wallbanger]
type = velset
trigger1 = time = 19
y = -15

[State wallbanger]
type = veladd
trigger1 = time >= 19
y = 2


[State wallbanger]
type = ChangeState
triggerall = time >= 10
Trigger1 = (Vel Y > 5) && (Pos Y >= 5)
value = 70007

;---------------------------------------------------------------------------
;..............................
[Statedef 70007]
type    = A
movetype= H
physics = N
velset = 0,0

[State ]
type = posset
Trigger1 = time <= 3
y = 0

[State shake]
type = EnvShake
trigger1 = !time
time = 15
ampl = -4
freq = 75
phase = 60

[State amination]
type = ChangeAnim
Trigger1 = !time
value = 5110

[State amination]
type = ChangeAnim
Trigger1 = time = 4
value = 5050

[State amination]
type = velset
Trigger1 = time = 4
x = 3
y = -10

[State amination]
type = veladd
Trigger1 = anim = 5050
y = .5

[State weeeeeee!]
type = SelfState
triggerall = time >= 10
trigger1 = (Vel Y > 5) && (Pos Y >= 5)
value = 5100
;===============================
;ono recover
[Statedef 70008]
type    = A
movetype= H
physics = N
ctrl = 0
velset = -3,-6

[State ?]
type = changeanim
trigger1 = !time
value = 5050

[State ?]
type = veladd
trigger1 = 1
y = .5

[State end]
type = SelfState
trigger1 = (Vel Y > 0) && (Pos Y >= 15)
value = 5100


;============================================================
;=================== Brutal se馻l ===========================
[Statedef 7043]
type    = A
movetype= I
physics = N
anim = 9999
;velset = 0,0
ctrl = 0
sprpriority = 15

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 1
trigger2 = animelem = 2
trigger3 = animelem = 3
trigger4 = animelem = 4
trigger5 = animelem = 5
trigger6 = animelem = 6
trigger7 = animelem = 7
trigger8 = animelem = 8
trigger9 = animelem = 9
value = S0,2
volume = 100
channel = 2

[State 0, VelSet]
type = VelSet
trigger1 = anim = 70289
x = 5

[State sangre1]
type = Helper
triggerall = !root,fvar(2)
triggerall = anim = 70289
trigger1 = !animelemtime(1)
trigger2 = !animelemtime(2)
trigger3 = !animelemtime(3)
trigger4 = !animelemtime(4)
trigger5 = !animelemtime(5)
trigger6 = !animelemtime(6)
trigger7 = !animelemtime(7)
trigger8 = !animelemtime(8)
trigger9 = !animelemtime(9)
helpertype = Normal
ID = 7015
pos = 0,10
name = "bleed?"
postype = p1
ignorehitpause = 1
stateno = 7018
ownpal = 1
size.xscale = 0.5
size.yscale = 0.5

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = (parent,time = 120) && (parent,stateno = 180) && (!parent,winperfect)
trigger2 = (parent,time = 220) && (parent,stateno = 180) && (parent,winperfect)
value = 70289

[State 0, Explod]
type = Explod
trigger1 = (parent,time = 119) && (parent,stateno = 180) && (!parent,winperfect)
trigger2 = (parent,time = 219) && (parent,stateno = 180) && (parent,winperfect)
anim = 70289
postype = left
pos = 70,60
facing = 1
removetime = -2
scale = const(size.xscale),const(size.yscale)
ontop = 1
shadow = 0
ownpal = 1

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = (parent,time < 380) && (parent,stateno = 180) && (!parent,winperfect)
trigger2 = (parent,time < 480) && (parent,stateno = 180) && (parent,winperfect)
flag = roundnotover

[State 0 ,sonido]
type = PlaySnd
trigger1 = (parent,time = 300) && (parent,stateno = 180) && (parent,winperfect)
trigger2 = (parent,time = 200) && (parent,stateno = 180) && (!parent,winperfect)
persistent = 0
abspan = 0
value = 15,9
volume = 200
channel = 4
;---------------------------------------------------
;=========== hielo para el fatality 12 =============
[Statedef 7044]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 70884
velset = 0,0
ctrl = 0
sprpriority = 1

[State sound]
type = PlaySnd
trigger1 = !time
channel = 0
volume = -255
value = 1, 14

[State sound]
type = velset
trigger1 = time = 8
x = 8

[State 騙骫
type = Explod
trigger1 = time >= 6 && !(time%3)
anim = 7003
id = 7003
Postype = p1
pos = 0,0
random = 40*2*root,const(size.xscale)*(1+root,fvar(2)),20*2*root,const(size.yscale)*(1+root,fvar(2))
sprpriority = 2
velocity = 0,2
ownpal = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State 1601, Hit]
type = HitDef
trigger1 = !movecontact
attr = S, HT
hitflag = M-
sparkno = S7001
sparkxy = 40, 0
guardsound = S0,7
p2stateno = 60821
numhits = 0

[State sound]
type = PlaySnd
trigger1 = movecontact
channel = 0
volume = -255
value = 1, 13
persistent = 0

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = nomusic

[State 0, destellofriegavista]
type = null;bgPalFX
trigger1 = movecontact
time = 2
add = 256,256,256
ignorehitpause = 1

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = movehit && anim != 9999
value = 9999

[State 0, VelSet]
type = VelSet
trigger1 = anim = 9999
x = 0

[State 0, DestroySelf]
type = DestroySelf
trigger1 = movehit && animelemtime(1) > 3

[State don't playa hate]
type = playerpush
trigger1 = 1
value = 0

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

;=====================================================
;------------------- ETERNAL ICE ---------------------
;Eternal ICE
[Statedef 70441]
type    = A
movetype= A
physics = N
poweradd= 0
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 10

[State 0, Estatuatodos]
type = Explod
triggerall = enemynear, selfanimexist(9108097) = 0
trigger1 = !numhelper(7044)
trigger1 = p2name != "Juano`s Sub guy"
trigger1 = !numexplod(70887) && (p2stateno = 7022 || p2stateno = 60821)
anim = 70887
ID = 70887
postype = p2
bindtime = -1
removetime = -2
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
sprpriority = 5
shadow = 0
ownpal = 0

[State 0, estatuarota]
type = Explod
triggerall = enemynear, selfanimexist(9108097) = 0
trigger1 = p2name != "Juano`s Sub guy"
trigger1 = !numexplod(70882)
trigger1 = parent,stateno = 6082 && p2stateno = 6072
anim = 70888
ID = 70882
postype = p2
bindtime = -1
removetime = -2
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
sprpriority = 5
shadow = 0
ownpal = 0

[State 0, CompatibleEstatuatodos]
type = Explod
triggerall = enemynear, selfanimexist(9108097)
trigger1 = !numhelper(7044)
trigger1 = p2name != "Juano`s Sub guy"
trigger1 = !numexplod(70887) && (p2stateno = 7022 || p2stateno = 60821)
anim = 70490078
ID = 70887
pos = 999,999
postype = p2
bindtime = -1
removetime = -2
scale = const(size.xscale),const(size.yscale)
sprpriority = 5
shadow = 0
ownpal = 0
[State 0, compatibleEstatuarota]
type = Explod
triggerall = enemynear, selfanimexist(9108097)
trigger1 = p2name != "Juano`s Sub guy"
trigger1 = !numexplod(70882)
trigger1 = parent,stateno = 6082 && p2stateno = 6072
anim = 70490078
ID = 70882
postype = p2
pos = 999,999
bindtime = -1
removetime = -2
scale = const(size.xscale),const(size.yscale)
sprpriority = 5
shadow = 0
ownpal = 0

[State 0, estatuarotaSUBZERO]
type = Explod
trigger1 = p2name = "Juano`s Sub guy"
trigger1 = !numexplod(70882)
trigger1 = parent,stateno = 6082 && p2stateno = 6072
anim = 7049;70882
ID = 70882
facing = -(enemynear,facing)
sprpriority = 5
shadow = 0
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State 0, kitastatua]
type = RemoveExplod
trigger1 = parent,stateno = 6082 && p2stateno = 6072
trigger2 = p2stateno != 60821 && p2stateno != 7022
id = 70887

[State -3, vaporcompleto]
type = Explod
triggerall = !(time%2)
trigger1 = p2stateno = 7022 || p2stateno = 60821
anim = 7034
name = "Steam"
pos = 0, -55*root,const(size.yscale)*(1+root,fvar(2))
postype = p2
vel = 0, -.9
random = 60*2*root,const(size.xscale)*(1+root,fvar(2)),100*2*root,const(size.yscale)*(1+root,fvar(2))
removetime = 36
ontop = 1
ownpal = 1
shadow = 0
removeongethit = 0
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

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

[State -3, vaporBROKE]
type = Explod
triggerall = !(time%2)
trigger1 = numexplod(70882) = 1
anim = 7034
name = "Steam"
pos = 0, -45*root,const(size.yscale)*(1+root,fvar(2))
postype = p1
vel = 0, -.9
random = 30*2*root,const(size.xscale)*(1+root,fvar(2)),30*2*root,const(size.yscale)*(1+root,fvar(2))
removetime = -2
ontop = 1
ownpal = 1
shadow = 0
removeongethit = 0
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

;----------------------------------------
;hielo al romperse
[Statedef 70442]
type    = A
movetype= I
physics = N
poweradd= 0
anim = 9999
velset = 0,0
ctrl = 0
sprpriority = 10

;------------------------------- Hielitos
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "hielo"
postype = p1
pos = 50,-15
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "hielo"
postype = p1
pos = 40,-20
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "hielo"
postype = p1
pos = 30,-25
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "hielo"
postype = p1
pos = 20,-30
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "hielo"
postype = p1
pos = 10,-35
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "hielo"
postype = p1
pos = 0,-40
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "hielo"
postype = p1
pos = -10,-35
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "hielo"
postype = p1
pos = -20,-30
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "hielo"
postype = p1
pos = -30,-25
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "hielo"
postype = p1
pos = -40,-20
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "hielo"
postype = p1
pos = -50,-15
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)

;------------------------------ otras partes
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "icehand"
postype = p1
pos = 0,-40
stateno = 70445
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "icehand"
postype = p1
pos = 18,-40
stateno = 70445
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "icepierna"
postype = p1
pos = 5,-40
stateno = 70446
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "icepierna"
postype = p1
pos = 13,-40
stateno = 70446
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "icecadera"
postype = p1
pos = 0,-40
stateno = 70447
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "icehand"
postype = p1
pos = 18,-40
stateno = 70445
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "icehand"
postype = p1
pos = 21,-40
stateno = 70445
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "icepierna"
postype = p1
pos = 12,-40
stateno = 70446
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "icepierna"
postype = p1
pos = 15,-40
stateno = 70446
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "icecadera"
postype = p1
pos = 25,-40
stateno = 70447
ownpal = 1
scale = const(size.xscale),const(size.yscale)

;------------------------------ bodyparts
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "Icebodypart"
postype = p1
pos = 25,-65
stateno = 70444
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "Icebodypart"
postype = p1
pos = 20,-60
stateno = 70444
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "Icebodypart"
postype = p1
pos = 15,-55
stateno = 70444
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "Icebodypart"
postype = p1
pos = 10,-50
stateno = 70444
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "Icebodypart"
postype = p1
pos = 5,-45
stateno = 70444
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "Icebodypart"
postype = p1
pos = 0,-40
stateno = 70444
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "Icebodypart"
postype = p1
pos = -5,-45
stateno = 70444
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "Icebodypart"
postype = p1
pos = -10,-50
stateno = 70444
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "Icebodypart"
postype = p1
pos = -15,-55
stateno = 70444
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "Icebodypart"
postype = p1
pos = -20,-60
stateno = 70444
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = Helper
trigger1 = time = 1
helpertype = Normal
name = "Icebodypart"
postype = p1
pos = -25,-65
stateno = 70444
ownpal = 1
scale = const(size.xscale),const(size.yscale)
;---------------------- pedazos de hielo volando
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = 6.5,-5
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = 7,-3
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = 7.5,-1
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = 8,0
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = 7.5,1
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = 7,3
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = 6.5,5
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = -1,-9
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = 1,-9
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = -1,9
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = 1,9
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = -6.5,-5
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = -7,-3
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = -7.5,-1
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = -8,0
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = -7.5,1
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = -7,3
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State 騙骫
type = Explod
trigger1 = !time
anim = 70885
Postype = p1
pos = 0,-60
ontop = 1
velocity = -6.5,5
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 10
;----------------------------------hielo volando
[Statedef 70443]
type    = A
movetype= A
physics = N
anim = 70886
;velset = 0,-2
ctrl = 0
sprpriority = 6

[State y]
type = VarRandom
trigger1 = 1
v = 0
range = -4,-9
[State x]
type = VarRandom
trigger1 = 1;var(1) = 0
v = 1
range = -3,5

[State 0, Explod]
type = Explod
trigger1 = parent,stateno = 70442
anim = 70886
ID = 7029
vel = var(1),-10
accel = 0,.3
random = 30,30
removetime = 120
sprpriority = 5
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))

[State ]
type = Helper
trigger1 = root,stateno != 180 && !root,ctrl && numhelper(70443) < 10
helpertype = Normal
ID = 70443
name = "ice2"
pos = (parent,pos X)-var(0),-400-var(1)
stateno = 70443
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State ]
type = veladd
trigger1 = time = 2
y = var(0)
x = var(1)

[State ]
type = veladd
trigger1 = time >= 3
y = .2

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7033

;---------------------------------- hueso congelado
[Statedef 70444]
type    = A
movetype= A
physics = N
anim = 70889
;velset = 0,-2
ctrl = 0
sprpriority = 6

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1

[State 0, AngleAdd]
type = AngleAdd
trigger1 = 1
value = 10

[State y]
type = VarRandom
trigger1 = 1
v = 0
range = -1,-10
[State x]
type = VarRandom
trigger1 = var(1) = 0
v = 1
range = -3,3

[State ]
type = veladd
trigger1 = time = 2
y = var(0)
x = var(1)

[State ]
type = veladd
trigger1 = time >= 3
y = .2

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7033

;---------------------------------- mano volando
[Statedef 70445]
type    = A
movetype= A
physics = N
anim = 708812
;velset = 0,-2
ctrl = 0
sprpriority = 6

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1

[State 0, AngleAdd]
type = AngleAdd
trigger1 = 1
value = 10

[State y]
type = VarRandom
trigger1 = 1
v = 0
range = -1,-10
[State x]
type = VarRandom
trigger1 = var(1) = 0
v = 1
range = -2,1

[State ]
type = veladd
trigger1 = time = 2
y = var(0)
x = var(1)

[State ]
type = veladd
trigger1 = time >= 3
y = .2

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7033

;---------------------------------- pierna
[Statedef 70446]
type    = A
movetype= A
physics = N
anim = 708810
;velset = 0,-2
ctrl = 0
sprpriority = 6

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1

[State 0, AngleAdd]
type = AngleAdd
trigger1 = 1
value = 10

[State y]
type = VarRandom
trigger1 = 1
v = 0
range = -1,-10
[State x]
type = VarRandom
trigger1 = var(1) = 0
v = 1
range = -4,5

[State ]
type = veladd
trigger1 = time = 2
y = var(0)
x = var(1)

[State ]
type = veladd
trigger1 = time >= 3
y = .2

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7033

;---------------------------------- cadera
[Statedef 70447]
type    = A
movetype= A
physics = N
anim = 708811
;velset = 0,-2
ctrl = 0
sprpriority = 6

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1

[State 0, AngleAdd]
type = AngleAdd
trigger1 = 1
value = 10

[State y]
type = VarRandom
trigger1 = 1
v = 0
range = -1,-10
[State x]
type = VarRandom
trigger1 = var(1) = 0
v = 1
range = -2,4

[State ]
type = veladd
trigger1 = time = 2
y = var(0)
x = var(1)

[State ]
type = veladd
trigger1 = time >= 3
y = .2

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
triggerall = time >= 5
trigger1 = (Vel Y > 0)&&(Pos Y >= 0)
value = 7033

;================================================
;============== LUZ MANO DE ERMAC =============
[Statedef 7045];Uppercut fatalitys
type    = A
movetype= A
physics = N
poweradd= 0
anim = 9999
ctrl = 0
sprpriority = 5

[State what?]
type = null;veladd
trigger1 = time >= 1
y = ifelse(parentdist y <= -10,-3,ifelse(parentdist y >= 10,3,0))

[State 0, PosAdd]
type = Posadd
;trigger1 = root,anim = 7069 && root,animelem = 1  ;fat 5
;trigger2 = root,anim = 70881 && root,animelem = 1 ;fat 12 p2
trigger1 = !time
x = -4
y = -9

[State 0, VelSet]
type = VelSet
;trigger1 = root,anim = 7069 && root,animelem = 1  ;fat 5
;trigger2 = root,anim = 70881 && root,animelem = 1 ;fat 12 p2
trigger1 = !time
x = 8
y = -10

[State 0, VelAdd]
type = VelAdd
trigger1 = vel X != 0
x = -.6

[State 0, VelSet]
type = VelSet
;trigger1 = root,anim = 7069 && root,animelem = 5  ;fat 5
;trigger2 = root,anim = 70881 && root,animelem = 5 ;fat 12 p2
trigger1 = time = 12
x = -2
y = 0

[State 騙骫
type = Explod
trigger1 = 1
anim = 70811
id = 700811
Postype = p1
pos = 0,0
ontop = 1
scale = root,const(size.xscale)*(1+root,fvar(2)),root,const(size.yscale)*(1+root,fvar(2))
sprpriority = 3
ownpal = 1

[State end]
type = destroyself
;trigger1 = root,anim = 7069 && root,animelemtime(5) = 9 ;fat5
;trigger2 = root,anim = 70881 && root,animelemtime(5) = 9 ;fat12 p2
trigger1 = time = 21

;========================================================
;==================== PISO PIT 2 ========================
[Statedef 70450]
type    = A
movetype= I
physics = N
anim = 9999
ctrl = 0
sprpriority = -6
;--------------------------- centro
[State 0, pisocentro]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
removetime = -2
scale = .1+(time*.007),.1+(time*.007)
shadow = 0
ownpal = 1

[State 0, der1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4
pos = 50
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4
pos = 50*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4
pos = 50*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

[State 0, izq1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4
pos = -50
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4
pos = -50*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4
pos = -50*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
;-----------------------arriba 1
[State 0, Arriba1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 0,-2.3
pos = 0,-32
removetime = 100
scale = .1+(time*.007),.1+(time*.007)
shadow = 0
ownpal = 1

[State 0, izq1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,-2.3
pos = -50,-32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,-2.3
pos = -50*2,-32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,-2.3
pos = -50*3,-32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

[State 0, der1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,-2.3
pos = 50,-32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,-2.3
pos = 50*2,-32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,-2.3
pos = 50*3,-32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

;----------------------arriba 2
[State 0, Arriba2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 0,-2.3
pos = 0,-32*2
removetime = 100
scale = .1+(time*.007),.1+(time*.007)
shadow = 0
ownpal = 1

[State 0, izq1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,-2.3
pos = -50,-32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,-2.3
pos = -50*2,-32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,-2.3
pos = -50*3,-32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

[State 0, der1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,-2.3
pos = 50,-32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,-2.3
pos = 50*2,-32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,-2.3
pos = 50*3,-32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

;----------------------arriba 3
[State 0, Arriba3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 0,-2.3
pos = 0,-32*3
removetime = 100
scale = .1+(time*.007),.1+(time*.007)
shadow = 0
ownpal = 1

[State 0, izq1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,-2.3
pos = -50,-32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,-2.3
pos = -50*2,-32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,-2.3
pos = -50*3,-32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

[State 0, der1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,-2.3
pos = 50,-32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,-2.3
pos = 50*2,-32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,-2.3
pos = 50*3,-32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

;----------------------- abajo 1
[State 0, abajo1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 0,2.3
pos = 0,32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

[State 0, izq1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,2.3
pos = -50,32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,2.3
pos = -50*2,32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,2.3
pos = -50*3,32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

[State 0, der1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,2.3
pos = 50,32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,2.3
pos = 50*2,32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,2.3
pos = 50*3,32
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

;---------------------- abajo 2
[State 0, abajo2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 0,2.3
pos = 0,32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

[State 0, izq1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,2.3
pos = -50,32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,2.3
pos = -50*2,32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,2.3
pos = -50*3,32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

[State 0, der1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,2.3
pos = 50,32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,2.3
pos = 50*2,32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,2.3
pos = 50*3,32*2
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

;---------------------- abajo 3
[State 0, abajo3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 0,2.3
pos = 0,32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

[State 0, izq1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,2.3
pos = -50,32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,2.3
pos = -50*2,32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, izq3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = -3.4,2.3
pos = -50*3,32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1

[State 0, der1]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,2.3
pos = 50,32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der2]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,2.3
pos = 50*2,32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
[State 0, der3]
type = Explod
trigger1 = !time
anim = 607714
ID = 607714
sprpriority = -6
vel = 3.4,2.3
pos = 50*3,32*3
removetime = 100
scale = .05+(time*.007),.05+(time*.007)
shadow = 0
ownpal = 1
;-----------------------------
[State 0, agranda pisos]
type = ModifyExplod
trigger1 = time < 120
ID = 607714
scale = .1+(time*.007),.1+(time*.007)

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 120
value = 0,2
volume = 255
channel = -1
freqmul = 1.3

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 120
value = 11,1
volume = 0
channel = -1

[State 0, sangre]
type = Explod
trigger1 = time = 120
anim = 607717
facing = 1
removetime = -2
sprpriority = -5
shadow = 0
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State 0, sangre]
type = Explod
trigger1 = time = 120
anim = 607718
facing = 1
removetime = -2
sprpriority = -4
shadow = 0
ownpal = 1
scale = const(size.xscale),const(size.yscale)
;---------------------------------------------------------------
;Sangre en muerte por kung lao - time over
[Statedef 70451]
type    = A
movetype= I
physics = N
anim = 9999
ctrl = 0
sprpriority = 3

[State 0, VelSet]
type = VelSet
trigger1 = parent,stateno = 173
y = 3

[State 0, VelSet]
type = VelSet
trigger1 = parent,stateno = 70459
y = -3

[State ]
type = Helper
trigger1 = !(time%5)
helpertype = Normal
ID = 7018
name = "what the bleed?"
postype = p1
ignorehitpause = 1
pos = 0,0
stateno = 7018
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State end]
type = destroyself
trigger1 = pos Y > (-30)*const(size.yscale)
trigger1 = parent,stateno = 173
trigger2 = pos Y < (-110)*const(size.yscale)
trigger2 = parent,stateno = 70459

;===========================================================
;Sangre pit 3
[Statedef 70452]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = 3

[State sound]
type = PlaySnd
trigger1 = !(time%5)
trigger1 = time = [0,15]
value = 4, 1
channel = 5

[State shake]
type = EnvShake
trigger1 = !(time%8)
trigger1 = time = [0,15]
time = 20
ampl = -5

[State cuchilla]
type = PlaySnd
trigger1 = !(time%7)
trigger1 = time = [0,5]
value = 1,31
channel = 4
volume = 250

[State 0, VarRandom]
type = VarRandom
trigger1 = 1
v = 15
range = 0,2

[State 0, bodyparts]
type = Helper
trigger1 = !(time%5)
trigger1 = time = [0,30]
helpertype = Normal
name = "bodyparts"
postype = p2
pos = 0,0
stateno = 7030+var(15)
ownpal = 1
scale = const(size.xscale),const(size.yscale)
[State -3, vapordesubpal1y7pie]
type = Explod
trigger1 = !(time%3)
trigger1 = time = [0,30]
anim = 7023
name = "Blood"
pos = 0, 0
postype = p1
vel = 0, -1.3
random = ceil(const(size.yscale))*120,ceil(const(size.yscale))*40
;ontop = 1
ownpal = 1
shadow = 0
scale = const(size.xscale),const(size.yscale)

[State end]
type = destroyself
trigger1 = time = 100

;================================================
;Roca
[Statedef 70453]
type    = A
movetype= I
physics = N
anim = 6991
ctrl = 0
sprpriority = 3

[State x]
type = VarRandom
trigger1 = 1
v = 0
range = -80,80

[State 0, PosAdd]
type = PosAdd
trigger1 = time = 1
x = var(0)

[State y]
type = VarRandom
trigger1 = 1
v = 1
range = -5,0

[State ]
type = velset
trigger1 = time = 1
x = 0
y = var(1)

[State ]
type = veladd
trigger1 = time >= 1
y = .3

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = changestate
triggerall = enemynear,prevstateno != 607716
triggerall = time >= 5
triggerall = (Vel Y > 0)
trigger1 = Pos Y >= 0 && var(1) = [-5,-3]
trigger2 = Pos Y >= -10 && var(1) = [-4,0]
value = 70454
;-----------roca cae
[Statedef 70454]
type    = A
movetype= I
physics = N
ctrl = 0
anim = 6990
velset = 0,0
sprpriority = 1

[State 0, VarRandom]
type = VarRandom
trigger1 = 1
v = 15
range = 0,1

[State 0, gotacaecanal3]
type = PlaySnd
triggerall = var(15) = 1
trigger1 = time = 1
value = 4,2

[State 0, SprPriority]
type = SprPriority
trigger1 = pos Y != 0
value = -5

[State ]
type = null;posset
trigger1 = !time
y = 0

[State ]
type = assertspecial
trigger1 = 1
flag = noshadow

[State end]
type = destroyself
trigger1 = time > 40

;=============================================================
;-------------------------------------------------------------
;SUBZER INTRO, subzero destructor
[Statedef 70455]
type    = A
movetype= I
physics = N
ctrl = 0
anim = 6986
velset = 8,0
sprpriority = 1

[State -3, a]
type = PalFX
trigger1 = root,var(21) = 1
trigger1 = numexplod(1100) = 1
time = 2
add = 0,0,0
mul = 0,0,256
sinadd = 0,0,0,10
invertall = 0
color = 0
ignorehitpause = 1

[State -3, a]
type = PalFX
trigger1 = root,var(21) = 1
trigger1 = numexplod(1101) = 1
time = 2
add = 50,0,0
mul = 256,256,0
sinadd = 0,0,0,10
invertall = 0
color = 0
ignorehitpause = 1

[State -3, a]
type = PalFX
trigger1 = root,var(21) = 1
trigger1 = numexplod(1102) = 1
time = 2
mul = 0,256,0
ignorehitpause = 1

[State -3, a]
type = PalFX
trigger1 = root,var(21) = 1
trigger1 = numexplod(1103) = 1
time = 2
mul = 0,0,0
ignorehitpause = 1

[State -3, a]
type = PalFX
trigger1 = root,var(21) = 1
trigger1 = numexplod(1104) = 1
time = 2
add = 0,0,0
mul = 256,256,256
sinadd = 0,0,0,1
invertall = 0
color = 0
ignorehitpause = 1

[State -3, a]
type = PalFX
trigger1 = root,var(21) = 1
trigger1 = numexplod(1105) = 1
time = 2
add = 50,0,0
mul = 256,0,0
sinadd = 0,0,0,10
invertall = 0
color = 0
ignorehitpause = 1

[State 0, a]
type = Explod
triggerall = numexplod(1100+var(9)) < 6
trigger1 = root,var(21) = 1
trigger1 = (time%15) = 1
anim = 9999
ID = 1100+var(9)
pos = 320,240
postype = left
bindtime = 1
removetime = 20
ownpal = 1
ignorehitpause = 1
scale = const(size.xscale),const(size.yscale)

[State 0, a]
type = Trans
trigger1 = root,var(21) = 1
trans = addalpha
alpha= 256,110

[State 0, a]
type = VarRandom
trigger1 = root,var(21) = 1
trigger1 = !(time%5)
v = 9
range = 0,5

[State 20001, fantasma]
type = AfterImage
trigger1 = time = 0
triggerall = root,palno = 7
time = 99999
length = 18
framegap = 3
;palcolor = 3
trans = add1
palbright = 106,106,138
palcontrast = 96,64,160
paladd = 0,0,0
palmul = 1,1,1

[State end]
type = playsnd
trigger1 = !time
value = 1,1

[State end]
type = velset
trigger1 = ParentDist x <= 0
x = 0

[State 0, gancho]
type = ChangeAnim
trigger1 = vel X = 0
value = 6986
elem = 2
persistent = 0

[State 8000, oscuro15]
type = allPalFX
trigger1 = anim = 6986 && animelem = 5
time = 10
ignorehitpause = 1
add = 256,250,250
mul = 256,250,250
invertall = 1
color = 256

[State ]
type = Helper
trigger1 = anim = 6986 && animelem = 5
helpertype = Normal
name = "hielo"
postype = p1
id = 704550
pos = ceil(50*2*const(size.xscale)),0
stateno = 70442
ownpal = 1
persistent = 0
scale = const(size.xscale),const(size.yscale)
[State 0, explosion]
type = PlaySnd
trigger1 = anim = 6986 && animelem = 5
value = 1,30
volume = 200
channel = -1

[State 0, gancho]
type = ChangeAnim
trigger1 = time > 120
value = 6986
elem = 7
persistent = 0

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 229

;======================================================0
;Subway Stage fatality - TREN - F989100
[Statedef 70456]
type    = A
movetype= I
physics = N
ctrl = 0
anim = 9999
;velset = 13,0
sprpriority = -9

[State 0, tren]
type = PlaySnd
trigger1 = !time
value = F9891,21
volume = 255
channel = -1

[State 0, trengolpea]
type = PlaySnd
trigger1 = time = 30
value = S0,2
volume = 255
channel = -1
persistent = 0

[State 0, TRen Subway]
type = Explod
triggerall = root,var(22) = 5017
trigger1 = time = 1
anim = 9891
ID = 989100
sprpriority = -9
shadow = 0
vel = 13
pos = 50,0
postype = p1
facing = 1
ownpal = 1
removetime = -1
scale = const(size.xscale),const(size.yscale)

[State 0, TRen Subway MKA]
type = Explod
triggerall = root,var(22) = 5019
trigger1 = time = 10
anim = 9891
ID = 989100
sprpriority = -9
shadow = 0
vel = -13
pos = 470,60
postype = p1
facing = 1
ownpal = 1
removetime = -1
scale = const(size.xscale),const(size.yscale)

[State 0, Papel 1 Subway MKA]
type = Explod
triggerall = root,var(22) = 5019
trigger1 = time = 30
trigger2 = time = 90
anim = 6984
ID = 6984
sprpriority = -9
shadow = 0
vel = -13
pos = 500,145
postype = p1
facing = 1
ownpal = 1
removetime = 300
scale = const(size.xscale),const(size.yscale)

[State 0, Papel 2 Subway MKA]
type = Explod
triggerall = root,var(22) = 5019
trigger1 = time = 50
anim = 6983
ID = 6983
ontop = 1
shadow = 0
vel = -13
pos = 550,190
postype = p1
facing = 1
ownpal = 1
removetime = 300
scale = const(size.xscale),const(size.yscale)

;=======================================================
;Fondo de Subway
[Statedef 70457]
type    = A
movetype= I
physics = N
ctrl = 0
anim = 9999

[State 0, ExplodBindTime]
type = ExplodBindTime
trigger1 = 1
ID = 98910
time = 99999

[State 0, subway]
type = Explod
triggerall = root,var(22) = 5017
trigger1 = !numexplod(98910)
trigger1 = root,stateno = 6077
anim = 98910
ID = 98910
pos = 0,0
facing = 1
bindtime = 99999
removetime = 99999
scale = const(size.xscale),const(size.yscale)
sprpriority = -8
ownpal = 1

[State 0, subwayMKA]
type = Explod
triggerall = root,var(22) = 5019
trigger1 = !numexplod(98911)
trigger1 = root,stateno = 6077
anim = 98911
ID = 98911
pos = 0,0
facing = 1
bindtime = 99999
removetime = 99999
scale = const(size.xscale),const(size.yscale)
sprpriority = -8
ownpal = 1

;===========================================================
;Sangre Bell tower
[Statedef 70458]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = 3

[State sound]
type = PlaySnd
trigger1 = time = 0
value = 17,2
channel = 5
volume = 255

[State 0, VarRandom]
type = VarRandom
trigger1 = 1
v = 15
range = 0,2

[State -3, vapordesubpal1y7pie]
type = Explod
trigger1 = time = [0,3]
anim = 7023
name = "Blood"
pos = 0, -40
postype = p1
vel = 0, -1.3
random = ceil(const(size.yscale))*80,ceil(const(size.yscale))*10
ontop = 1
ownpal = 1
shadow = 0
scale = const(size.xscale),const(size.yscale)

[State ]
type = Helper
trigger1 = time = [0,2]
helpertype = Normal
ID = 7018
name = "what the bleed?"
postype = p2
ignorehitpause = 1
pos = 0,-40
stateno = 7018
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State end]
type = destroyself
trigger1 = time = 100

;===========================================================
;HARPON FATALITY 14 - SCORPION
[Statedef 70459]
type    = A
movetype= A
physics = N
velset = 0,-20
anim = 6982
ctrl = 0
sprpriority = 1

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = pos Y > -5
flag = invisible

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1
value = 90

[State 1010, 1]
type = Playsnd
trigger1 = time = 0
trigger2 = time = 1
value = 1,18
volume = 255

[State 1010, 1]
type = Playsnd
trigger1 = time = 0
value = 1,32
volume = 255
freqmul = .3

[State 1, roca]
type = Explod
trigger1 = !time
anim = 6990
postype = p2
removetime = 34
facing = 1
scale = root,const(size.xscale)*(2+root,fvar(2)),root,const(size.yscale)*(2+root,fvar(2))
ontop = 1
shadow = 0
ownpal = 1

[State 2, roca]
type = Explod
trigger1 = time = 1
anim = 6990
postype = p2
;pos = 40,0
facing = 1
vel = .5,.5
scale = root,const(size.xscale)*(2+root,fvar(2)),root,const(size.yscale)*(2+root,fvar(2))
removetime = 34
ontop = 1
shadow = 0
ownpal = 1

[State 3, roca]
type = Explod
trigger1 = !time
anim = 6990
postype = p2
;pos = -40,0
facing = 1
scale = root,const(size.xscale)*(2+root,fvar(2)),root,const(size.yscale)*(2+root,fvar(2))
removetime = 34
ontop = 1
shadow = 0
ownpal = 1
vel = -.5,0

[State 4, roca]
type = Explod
trigger1 = time = 1
anim = 6990
postype = p2
;pos = 25,0
facing = 1
scale = root,const(size.xscale)*(2+root,fvar(2)),root,const(size.yscale)*(2+root,fvar(2))
removetime = 34
ontop = 1
shadow = 0
ownpal = 1
vel = .3,-.5

[State 5, roca]
type = Explod
trigger1 = !time
anim = 6990
postype = p2
;pos = -25,0
removetime = 34
facing = 1
scale = root,const(size.xscale)*(2+root,fvar(2)),root,const(size.yscale)*(2+root,fvar(2))
ontop = 1
shadow = 0
ownpal = 1
vel = .4,.4

[State 1601, Hit]
type = HitDef
trigger1 = !movecontact
p2stateno = 60850
attr = S, HT
hitflag = M-
priority = 1, Miss
sparkno = -1
guard.dist = 0
fall = 0
fall.recover = 0

[State ]
type = Helper
trigger1 = !numhelper(70451)
triggerall = !time
helpertype = Normal
ID = 70451
name = "Sangre"
postype = p2
ignorehitpause = 1
pos = 0,-30
stateno = 70451
ownpal = 1
scale = const(size.xscale),const(size.yscale)

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 60

;=======================================================
;Arboles living forest
[Statedef 704510]
type    = A
movetype= I
physics = N
ctrl = 0
anim = 9999

[State 0, gru駃do]
type = PlaySnd
;triggerall = root,var(22) = 5007
trigger1 = (time%238) = 120 ;arbol 1
trigger2 = (time%318) = 200 ;arbol 2
trigger3 = (time%378) = 260 ;arbol 3
value = S19,2
volume = -255
ignorehitpause = 1
;freqmul = 1.4

;=======================================================
;PISO ROTO BELLTOWER
[Statedef 704511]
type    = A
movetype= I
physics = N
ctrl = 0
anim = 9999

[State 0, EnvShake]
type = EnvShake
trigger1 = pos y = [480,485]
trigger2 = pos y = [480*2,485*2]
trigger3 = pos y = [480*3,485*3]
trigger4 = pos y = [480*4,485*4]
trigger5 = pos y = [480*5,485*5]
trigger6 = pos y = [480*6,485*6]
trigger7 = pos y = [480*7,485*7]
trigger8 = pos y = [480*8,485*8]
time = 10
ampl = -4

[State 0, pisoroto1]
type = Explod
trigger1 = enemynear,pos y = [480,485]
anim = 6981
postype = p1
sprpriority = -10
shadow = 0
ownpal = 1
persistent = 0
scale = const(size.xscale),const(size.yscale)

[State 0, pisoroto1]
type = Explod
trigger1 = enemynear,pos y = [480*2,485*2]
anim = 6981
postype = p1
sprpriority = -10
shadow = 0
ownpal = 1
persistent = 0
pos = 0,487
scale = const(size.xscale),const(size.yscale)

[State 0, pisoroto1]
type = Explod
trigger1 = enemynear,pos y = [480*3,485*3]
anim = 6981
postype = p1
sprpriority = -10
shadow = 0
ownpal = 1
persistent = 0
pos = 0,487*2
scale = const(size.xscale),const(size.yscale)

;=======================================================
;HEll Hand Fatality
[Statedef 704512]
type    = A
movetype= A
physics = N
ctrl = 0
anim = 70921
sprpriority = 10

[State 0, Turn]
type = Turn
trigger1 = facing = parent,facing

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 2
value = S1,17
volume = 0
channel = -1

[State 1601, Hit]
type = HitDef
trigger1 = !movecontact
p2stateno = 60860
attr = S, HT
hitflag = M-
priority = 1, Miss
sparkno = -1

[State 0, EnvShake]
type = EnvShake
trigger1 = animelemtime(12) = 0
time = 50
ampl = -4

[State 0, explsion]
type = PlaySnd
trigger1 = animelemtime(13) = 0
value = S1,32
volume = 0
channel = -1

[State 0, EnvShake]
type = EnvShake
trigger1 = animelemtime(13) = 0
time = 30
ampl = -15

[State 0, DestroySelf]
type = DestroySelf
trigger1 = !animtime

;======================================================
;Harpon 1 en fatality 14
[Statedef 704513]
type    = A
movetype= I
physics = N
velset = 0,15
anim = 6982
ctrl = 0
sprpriority = 1

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1
value = 270

[State 1, roca]
type = Explod
trigger1 = pos Y = [-15,0]
anim = 6990
postype = p1
removetime = 34
facing = 1
;scale = 2,2
ontop = 1
shadow = 0
ownpal = 1
persistent = 0
scale = const(size.xscale),const(size.yscale)

[State 2, roca]
type = Explod
trigger1 = pos Y = [-15,0]
anim = 6990
postype = p1
;pos = 40,0
facing = 1
vel = .5,0
;scale = 2,2
removetime = 34
ontop = 1
shadow = 0
ownpal = 1
persistent = 0
scale = const(size.xscale),const(size.yscale)

[State 3, roca]
type = Explod
trigger1 = pos Y = [-15,0]
anim = 6990
postype = p1
;pos = -40,0
facing = 1
;scale = 2,2
removetime = 34
ontop = 1
shadow = 0
ownpal = 1
vel = -.5,0
persistent = 0
scale = const(size.xscale),const(size.yscale)

[State 4, roca]
type = Explod
trigger1 = pos Y = [-15,0]
anim = 6990
postype = p1
;pos = 25,0
facing = 1
;scale = 2,2
removetime = 34
ontop = 1
shadow = 0
ownpal = 1
vel = .3,0
persistent = 0
scale = const(size.xscale),const(size.yscale)

[State 5, roca]
type = Explod
trigger1 = pos Y = [-15,0]
anim = 6990
postype = p1
;pos = -25,0
removetime = 34
facing = 1
;scale = 2,2
ontop = 1
shadow = 0
ownpal = 1
vel = .4,0
persistent = 0
scale = const(size.xscale),const(size.yscale)

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 60

;======================================================
;Control ESQUELETO DEAD POOL
[Statedef 704514]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = -1

[State 0, PosFreeze]
type = PosFreeze
trigger1 = 1
value = 1

[State esqueleto]
type = Helper
;trigger1 = root,stateno = 6077
;trigger1 = root,time = 14
trigger1 = enemynear,stateno = 60779
helpertype = Normal
name = "Esqueleto DEaD PoOl"
postype = p2
pos = 0,-5
stateno = 7045140
ownpal = 1
scale = const(size.xscale),const(size.yscale)
persistent = 0

;======================================================
;ESQUELETO DEAD POOL
[Statedef 7045140]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 60343
ctrl = 0
sprpriority = -1

[State 0, PosSet]
type = PosSet
trigger1 = time < 136
x = enemynear,pos X

[State 0, VelSet]
type = VelSet
trigger1 = animelemtime(2) = 0
x = ifelse(parentdist X > 0,.2,-.2)

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 0, AngleDraw]
type = null;AngleDraw
trigger1 = 1
scale = 1.3,1.3

[State 0, VelSet]
type = VelSet
trigger1 = ParentDist X < -410 && vel X > 0
trigger2 = ParentDist X > 415  && vel X < 0
x = 0

;======================================================
;MARCADOR DE NUMERO DE VICTORIAS
[Statedef 704515]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 9999
ctrl = 0
sprpriority = -1

[State 0, fix]
type = varAdd
trigger1 = !time
var(0) = 160

[State 0, fix]
type = varAdd
triggerall = !time
trigger1 = root,var(57) = 11
var(0) = 11
[State 0, fix]
type = varAdd
triggerall = !time
trigger1 = root,var(57) = 13
var(0) = -11
[State 0, fix]
type = varAdd
triggerall = !time
trigger1 = root,var(57) = 14
trigger2 = root,var(57) = 18
var(0) = -28
[State 0, fix]
type = varAdd
triggerall = !time
trigger1 = root,var(57) = 16
var(0) = -5
[State 0, fix]
type = varAdd
triggerall = !time
trigger1 = root,var(57) = 17
var(0) = -22
[State 0, fix]
type = varAdd
triggerall = !time
trigger1 = root,var(57) = 19
var(0) = -44

;--------------------------- 1 wins
[State 0, 1]
type = Explod
trigger1 = root,var(57) = 1
trigger2 = root,var(57) = 3
trigger3 = root,var(57) = 7
trigger4 = root,var(57) = 9
triggerall = !time
anim = 6980
ID = 6980
postype = left
pos = var(0),73
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 2 wins
[State 0, 2]
type = Explod
trigger1 = root,var(57) = 2
trigger2 = root,var(57) = 4
trigger3 = root,var(57) = 6
trigger4 = root,var(57) = 8
triggerall = time = 1
postype = left
pos = 11+var(0),73
anim = 6980
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
[State 0, 2]
type = Explod
trigger1 = root,var(57) = 2
trigger2 = root,var(57) = 4
trigger3 = root,var(57) = 8
triggerall = time = 1
postype = left
pos = -11+var(0),73
anim = 6980
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 3 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 3
trigger2 = root,var(57) = 7
trigger3 = root,var(57) = 9
trigger4 = root,var(57) = 11
trigger5 = root,var(57) = 12
trigger6 = root,var(57) = 13
trigger7 = root,var(57) = 14
triggerall = time = 1
postype = left
pos = 22+var(0),73
anim = 6980
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 3
trigger2 = root,var(57) = 9
triggerall = time = 1
postype = left
pos = -22+var(0),73
anim = 6980
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 4 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 4
trigger2 = root,var(57) = 8
triggerall = time = 1
postype = left
pos = 33+var(0),73
anim = 6980
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 4
triggerall = time = 1
postype = left
pos = -33+var(0),73
anim = 6980
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 5 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 5
trigger2 = root,var(57) = 11
trigger3 = root,var(57) = 12
trigger4 = root,var(57) = 13
trigger5 = root,var(57) = 14
trigger6 = root,var(57) = 15 || root,var(57) = 16 || root,var(57) = 17 || root,var(57) = 18 || root,var(57) = 19
triggerall = time = 1
anim = 6979
postype = left
pos = -5+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 6 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 6
trigger2 = root,var(57) = 10
triggerall = time = 1
anim = 6979
postype = left
pos = -15+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 7 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 7
triggerall = time = 1
anim = 6979
postype = left
pos = -26+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 8 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 8
triggerall = time = 1
anim = 6979
postype = left
pos = -37+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 9 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 9
triggerall = time = 1
anim = 6979
postype = left
pos = -48+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 9
triggerall = time = 1
postype = left
pos = 48+var(0),73
anim = 6980
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 10 wins
[State 0, 3]
type = Explod
triggerall = root,var(57) = 10
trigger1 = time = 1
anim = 6979
postype = left
pos = 17+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 11 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 11
trigger2 = root,var(57) = 12
trigger3 = root,var(57) = 13
trigger4 = root,var(57) = 14
trigger5 = root,var(57) = 15 || root,var(57) = 16 || root,var(57) = 17 || root,var(57) = 18 || root,var(57) = 19
triggerall = time = 1
anim = 6979
postype = left
pos = -37+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 12 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 12
trigger2 = root,var(57) = 13
trigger3 = root,var(57) = 14
triggerall = time = 1
postype = left
pos = 44+var(0),73
anim = 6980
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 13 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 13
trigger2 = root,var(57) = 14
triggerall = time = 1
postype = left
pos = 66+var(0),73
anim = 6980
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 14 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 14
triggerall = time = 1
postype = left
pos = 88+var(0),73
anim = 6980
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 15 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 15 || root,var(57) = 16 || root,var(57) = 17 || root,var(57) = 18 || root,var(57) = 19
triggerall = time = 1
anim = 6979
postype = left
pos = 28+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 16 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 16 || root,var(57) = 17 || root,var(57) = 18 || root,var(57) = 19
triggerall = time = 1
anim = 6980
postype = left
pos = 55+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 17 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 17 || root,var(57) = 18 || root,var(57) = 19
triggerall = time = 1
anim = 6980
postype = left
pos = 77+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 18 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 18 || root,var(57) = 19
triggerall = time = 1
anim = 6980
postype = left
pos = 99+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 19 wins
[State 0, 3]
type = Explod
trigger1 = root,var(57) = 19
triggerall = time = 1
anim = 6980
postype = left
pos = 121+var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = .25,.25
;--------------------------- 20 wins or more
[State 0, 3]
type = Explod
trigger1 = root,var(57) >= 20
triggerall = time = 1
anim = 6978
postype = left
pos = var(0),73
ID = 6980
facing = 1
bindtime = -2
sprpriority = 5
scale = const(size.xscale),const(size.yscale)

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 10
