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

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

[Size]
xscale           = 1 
yscale           = 1 
ground.back      = 12
ground.front     = 14
air.back         = 12
air.front        = 14
height           = 50
attack.dist      = 125
proj.attack.dist = 20 
proj.doscale     = 0  
head.pos         = -5, -77
mid.pos          = -5, -65
shadowoffset     = 0
draw.offset      = 0,0    

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

[Velocity]
walk.fwd     = 3 
walk.back    = -2.8
run.fwd      = 4.6, 0
run.back     = -4.5,-3.8
jump.neu     = 0,0 
jump.back    = 0
jump.fwd     = 0
runjump.back = 0,0 
runjump.fwd  = 0,0
airjump.neu  = 0,0
airjump.back = 0
airjump.fwd  = 0 

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

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

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


;++++++++++++++++++++++++++++++++++++++++++++

[Statedef 77]
type=A
physics=N
anim=20000
ctrl=0

[State 77, nhb]
type=nothitby
trigger1= 1
value = SCA
time= -1
ignorehitpause=1

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

[State 77]
type = bindtoroot
trigger1=1
pos= -3,0
facing=1

[State 77]
type = VarSet
trigger1 = parent,movetype = H
trigger1 = parent,stateno = [5000,5001]
trigger2 = parent,var(39) > var(0)
v = 0
value = parent,var(39)
ignorehitpause=1

[State 77]
Type = ParentVarSet
trigger1 = parent,var(39) < var(0)
V = 39
Value = var(0) 
ignorehitpause=1

[State 77]
type = ParentVarSet
triggerall = Parent,life <= 0
trigger1 = Parent,var(39) <= 0
trigger1 = var(0) <= 0
trigger2 = parent,stateno = 5151
var(40) = 656
ignorehitpause=1

[State 77]
type=varset
trigger1= Parent,Var(16) = 666
trigger2= (Parent,Var(59) != 0) && (Parent,Var(59) != 666)
trigger3 = parent,stateno != [5000,5001]
trigger3 = parent,life < (var(0)-500)
trigger3= NumEnemy = 1
var(16) = 666
ignorehitpause=1

[State 77]
type = ParentVarSet
trigger1 = Var(16) = 666
trigger1 = Parent,Var(16) != 666
trigger2 = (Parent,Var(59) != 0) && (Parent,Var(59) != 666)
var(16) = 666
ignorehitpause=1

[State 77]
type = destroyself
trigger1 = parent,stateno = 5150
trigger1 = parent,Alive = 0
ignorehitpause = 1

[State 77]
type = helper
triggerall = Root,alive = 1
triggerall = Root,stateno != 3330
triggerall = Root,stateno != 7777
triggerall = timemod = 10,0
trigger1 = ((Root,stateno = 190) && (Time > 200))
trigger2 = ((Root,stateno = 180) && (Time < 200))
trigger3 = ((Root,stateno = 170) && (Time < 100))
trigger4 = (Root,stateno != [170,190])
helpertype = normal
id = 78
pos = 3,2
postype = p1
stateno = 78
helpertype = normal
ownpal = 1
keyctrl = 0
pausemovetime = 99999
supermovetime = 99999

[State 77]
type = helper
triggerall = Root,alive = 1
triggerall = Root,stateno != 3330
triggerall = Root,stateno != 7777
triggerall = timemod = 10,0
trigger1 = ((Root,stateno = 190) && (Time > 200))
trigger2 = ((Root,stateno = 180) && (Time < 200))
trigger3 = ((Root,stateno = 170) && (Time < 100))
trigger4 = (Root,stateno != [170,190])
helpertype = normal
id = 79
pos = 3,2
postype = p1
stateno = 79
helpertype = normal
ownpal = 1
keyctrl = 0
pausemovetime = 99999
supermovetime = 99999

;+-;+;-;+;-;++;;-+;-;-;+;-+-;-+;-+;-+;-+-+;-+;-+;-+;-+;-+;+


[Statedef 78]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 3
ctrl = 0

[State 78]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State 78]
type = explod
trigger1 = time = 0
bindtime = -1
scale = 1,1
anim = 3
id = 78
sprpriority = 3
pausemovetime = 99999
supermovetime = 99999

[State 78]
type = ModifyExplod
trigger1 = 1
id = 78
scale = 1-((Time)*0.08),1-((Time)*0.08)

[State 78]
type = PalFx
trigger1 = 1
time = 1
add = -Time/1*3,-Time/1*3,-Time/1*3

[State 78]
type = removeexplod
trigger1 = Root,alive = 0
id = 78

[State 78]
type = DestroySelf
trigger1 = Root,alive = 0
Trigger2 = animtime = 0
Trigger3 = time >= 10

[Statedef 79]
type    = A
movetype= I
physics = N
velset = 0,0
anim = 4
ctrl = 0

[State 79]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State 79]
type = explod
trigger1 = time = 0
bindtime = -1
scale = 1,1
anim = 4
id = 79
sprpriority = -1
pausemovetime = 99999
supermovetime = 99999

[State 79]
type = ModifyExplod
trigger1 = 1
id = 79
scale = 1-((Time)*0.08),1-((Time)*0.08)

[State 79]
type = PalFx
trigger1 = Time = [0,15]
time = 1
add = -Time/1*3,-Time/1*3,-Time/1*3

[State 79]
type = removeexplod
trigger1 = Root,alive = 0
id = 79

[State 79]
type = DestroySelf
trigger1 = Root,alive = 0
Trigger2 = animtime = 0
Trigger3 = time >= 10

;+-;+;-;+;-;++;;-+;-;-;+;-+-;-+;-+;-+;-+-+;-+;-+;-+;-+;-+;+

[Statedef 2100]
type    = S
movetype= I
physics = S
velset = 0,0
ctrl = 0
anim = 9999

[State 2100]
type = explod
trigger1 = time = 0
anim = 97
id = 21000
pos = 0,0
sprpriority = (ifelse((random < 500),3,1))
removetime = 15
random = 20,10
pausemovetime = 99999
supermovetime = 99999
ignorehitpause = 1

[State 2100]
type = ModifyExplod
trigger1 = Time < 20
ID = 21000
scale = 1,(0.6+((time)/5.5))
ignorehitpause = 1

[State 2100]
type = PalFx
trigger1 = Time >= 0
time = 1
add = (0-(time))*12,(0-(time))*12,(0-(time))*12
ignorehitpause = 1

[state 2100]
type = destroyself
trigger1 = time >= 15
ignorehitpause = 1

;+-;+;-;+;-;++;;-+;-;-;+;-+-;-+;-+;-+;-+-+;-+;-+;-+;-+;-+;+

[Statedef 2101]
type    = S
movetype= I
physics = S
velset = 0,0
ctrl = 0
anim = 9999

[State 2101]
type = explod
trigger1 = time = 10
anim = 98
id = 2300
pos = 10,0
sprpriority = 9
ontop = 1
removetime = -1
pausemovetime = 99999
supermovetime = 99999
ignorehitpause = 1

[State 2101]
type = RemoveExplod
trigger1 = time >= 60
ignorehitpause=1

[State 2101]
type = VarAdd
trigger1 = Time < 25
v = 12
value = -1
ignorehitpause = 1

[State 2101]
type = VarAdd
trigger1 = Time = [30,32]
v = 12
value = 1
ignorehitpause = 1

[State 2101]
type = ModifyExplod
trigger1 = 1
ID = 2300
scale = 2.7+((Var(12))*0.1), 2.7+((Var(12))*0.1)
ignorehitpause = 1

[State 2101]
type = PalFx
trigger1 = time > 35
time = 1
add = (-10-(time-35)*16),(-10-(time-35)*16),(-10-(time-35)*16)
ignorehitpause = 1

[State 2101]
type = destroyself
trigger1 = time >= 60
ignorehitpause = 1

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

[Statedef 170]
type = S
ctrl = 0
anim = 190
velset = 0,0

[state 170]
type     = assertspecial
trigger1 = time = [0, 180]
flag     = roundnotover

[state 170]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[state 170]
type = AfterImage
trigger1 = time = 0
time = 1
trans = add
palbright = -100,-100,-100
palcontrast = 150,150,150
FrameGap = 4
PalAdd = -35,-35,-35
PalMul = 1,1,1
length = 15
supermovetime = 9999999
pausemovetime = 9999999

[state 170]
type=trans
trigger1= Time = [0,123]
trans=addalpha
alpha= (256-(Time)*2),256
ignorehitpause=1

[state 170]
type=trans
trigger1= Time >= 123
trans=addalpha
alpha= 0,256
ignorehitpause=1

[state 170]
type = BGPalfx
trigger1 = time < 130
time = 2
add = (IfElse(time<=20,(0-((time)*10)),-200)),(IfElse(time<=20,(0-((time)*10)),-200)),(IfElse(time<=20,(0-((time)*10)),-200))
ignorehitpause = 1

[state 170]
type = BGPalfx
trigger1 = time = [130,150]
time = 2
add = -200+((time-130)*10),-200+((time-130)*10),-200+((time-130)*10)
ignorehitpause = 1

[state 170]
type = DestroySelf
trigger1 = ishelper
ignorehitpause=1

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

[state 180]
type = AfterImage
trigger1 = time = 90
time = 1
trans = add
palbright = -100,-100,-100
palcontrast = 150,150,150
FrameGap = 4
PalAdd = -35,-35,-35
PalMul = 1,1,1
length = 15
supermovetime = 9999999
pausemovetime = 9999999

[state 180]
type     = assertspecial
trigger1 = time = [0, 300]
flag     = roundnotover

[state 180]
type     = assertspecial
trigger1 = 1
flag = nobardisplay

[state 180]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[state 180]
type = PlaySnd
trigger1 = Time = 0
value = s2, 2

[state 180]
type = PlaySnd
trigger1 = Time = 100
value = s2, 1

[state 180]
type=trans
trigger1= Time = [100,223]
trans=addalpha
alpha= (256-(Time-50)*2),256
ignorehitpause=1

[state 180]
type=trans
trigger1= Time >= 223
trans=addalpha
alpha= 0,256
ignorehitpause=1

[state 180]
type = Helper
trigger1 = Time = 0
id = 181
sprpriority = 1
pos = 0,0
postype = p1
stateno = 181

ownpal = 1

[state 180]
type = BGPalfx
trigger1 = time < 230
time = 2
add = (IfElse(time<=100,(0-((time)*2)),-200)),(IfElse(time<=100,(0-((time)*2)),-200)),(IfElse(time<=100,(0-((time)*2)),-200))
ignorehitpause = 1

[state 180]
type = BGPalfx
trigger1 = time = [230,250]
time = 2
add = -200+((time-230)*10),-200+((time-230)*10),-200+((time-230)*10)
ignorehitpause = 1

[state 180]
type = DestroySelf
trigger1 = ishelper
ignorehitpause=1

;+++++++++++++++++++++++++++

[Statedef 181]
type = S
movetype= A
physics = N
velset = 0,0
ctrl = 0
anim = 411
sprpriority = 1

[state 181]
type = bindtoparent
trigger1=1
pos= 20,-90
facing= 1

[state 181]
type = Angleset
trigger1 = time = 0
value = 0

[state 181]
type = AngleAdd
trigger1 = time < 50
value = -30

[state 181]
type = AngleAdd
trigger1 = time > 50
value = -15

[state 181]
type = AngleDraw
trigger1 = 1

[state 181]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[state 181]
type = AfterImage
trigger1 = Time = 0
length = 15
PalBright   =  30, 30,  70
PalContrast =  50, 50, 120
PalAdd      = -10,-10,-10
PalMul      = .45,.45,.90
TimeGap  = 1
FrameGap = 2
Trans = Add
time = 150

[state 181]
type=trans
trigger1= Time = [100,223]
trans=addalpha
alpha= (256-(Time-50)*2),256
ignorehitpause=1

[state 181]
type=trans
trigger1= Time >= 223
trans=addalpha
alpha= 0,256
ignorehitpause=1

[state 181]
type = destroyself
trigger1 = Time = 250
ignorehitpause = 1

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

[Statedef 190]
type = S
ctrl = 0
anim = 190
poweradd= 1000
velset = 0,0

[State 190]
type = ChangeAnim
trigger1 = RoundState = 0
value = 190

[State 190]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = nobardisplay

[State 190]
type = SelfState
trigger1 = Time = 300
value = 0

[State 190]
type=trans
trigger1= Time < 100
trans=addalpha
alpha= 0,256
ignorehitpause=1

[State 190]
type=trans
trigger1= Time = [100,223]
trans=addalpha
alpha= (0+(Time-100)*2),256
ignorehitpause=1

[State 190]
type = BGPalfx
trigger1 = time < 230
time = 2
add = (IfElse(time<=100,(0-((time)*2)),-200)),(IfElse(time<=100,(0-((time)*2)),-200)),(IfElse(time<=100,(0-((time)*2)),-200))
ignorehitpause = 1

[State 190]
type = BGPalfx
trigger1 = time = [230,250]
time = 2
add = -200+((time-230)*10),-200+((time-230)*10),-200+((time-230)*10)
ignorehitpause = 1

[State 190]
type = PlaySnd
trigger1 = Time = 0
value = s0, 4

[State 190]
type = PlaySnd
trigger1 = Time = 50
value = s1, 8
channel = 2

[State 190]
type = DestroySelf
trigger1 = ishelper
ignorehitpause=1

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

[Statedef 195]
type = S
ctrl = 0
anim = 195
velset = 0,0
movetype = I
physics = S
sprpriority = 2

[State 195]
type = CtrlSet
trigger1 = Time = 40
value = 1

[State 195]
type = SelfState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

[State 195]
type = DestroySelf
trigger1 = ishelper
ignorehitpause=1

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

[Statedef 200]
type     = S
movetype = A
physics  = S
juggle   = 5
velset   = 0,0
ctrl     = 0
anim     = 200
poweradd = 50
sprpriority = -2
facep2 = 1

[State 200]
type = VelSET
trigger1 = time = [14,18]
x = 4

[State 200]
type = NotHitBy
trigger1 = time <= 21
value = SCA
time = 2
ignorehitpause = 1

[State 200]
type = HitDef
trigger1 = time = 19
attr = S, NA
damage = 80, 0
animtype = Hard
guardflag = HA
getpower = 25,10
givepower = 5,1
hitflag = MAFD
priority = 3, Hit
pausetime = 1, 1
sparkno = 0
guard.sparkno = 40
sparkxy = -20, -17
hitsound = s2, 5
guardsound = s0, 6
ground.type = Low
ground.slidetime = 10
ground.hittime  = 35
ground.velocity = -10,-2
airguard.velocity = -3,0
air.type = Low
air.velocity = -10,-2
air.hittime = 15
fall = 1
fall.recover = 0

[State 200]
type = PlaySnd
trigger1 = AnimElem = 4
value = 0, 0

[State 200]
type = SelfState
trigger1 = AnimTime = 0 
value = 0
ctrl = 1

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

[Statedef 210]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 30
ctrl = 0
velset = 5,0
anim = 4100
sprpriority = -1

[State 210]
type = PlaySnd
trigger1 = AnimElem = 3
value = 0, 0

[State 210]
type = HitDef
trigger1 = time = 0
attr = S, NA
animtype  = Medium
damage    = 70
guardflag = HA
getpower = 20,10
givepower = 5,1
hitflag = MAF
pausetime = 4,4
sparkno = 1
sparkxy = -10,-30
hitsound = s0, 1
guardsound = s0, 6
ground.type = Low
ground.slidetime = 12
ground.hittime  = 25
ground.velocity = -5,-3
air.velocity = -5,-3
fall = 1
fall.recover = 0

[State 210]
type = SelfState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

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

[Statedef 400]
type    = C
movetype= A
physics = C
juggle  = 5
poweradd= 50
ctrl = 0
anim = 210
sprpriority = 2

[State 400]
type = PlaySnd
trigger1 = AnimElem = 1
value = 0, 0

[State 400]
type = HitDef
trigger1 = Time = 0
attr = S, NA
damage    = 90
priority  = 3
animtype  = Hard
hitflag = MAF
guardflag = MA
getpower = 25,10
givepower = 5,1
pausetime = 5,5
sparkno = 0
sparkxy = -10,-17
hitsound = s2, 5
guardsound = s0, 6
ground.type = Low
ground.slidetime = 4
ground.hittime  = 12
ground.velocity = -2,-7
air.velocity = -2,-7
fall = 1
fall.recover = 0

[State 400]
type = SelfState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

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

[Statedef 410]
type    = C
movetype= A
physics = C
juggle  = 6
poweradd= 50
ctrl = 0
anim = 420
sprpriority = 2

[State 410]
type = PlaySnd
trigger1 = AnimElem = 2
value = 0, 0

[State 410]
type = HitDef
trigger1 = AnimElem = 4
attr = S, NA
damage    = 100
animtype  = Hard
hitflag = MAF
getpower = 25,10
givepower = 5,1
guardflag = M
pausetime = 8,8
sparkno = 1
sparkxy = -10,-65
hitsound = s0, 1
guardsound = s0, 6
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -3,-3
air.velocity = -3,-3
fall = 1
fall.recover = 0

[State 410]
type = SelfState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

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

[Statedef 1000]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 100
velset = 0,0
anim = 410
ctrl = 0
sprpriority = 2

[State 1000]
type = VelSET
trigger1 = time = [7,20]
x = 4

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

[State 1000]
type = PlaySnd
trigger1 = AnimElem = 5
trigger2 = AnimElem = 7
trigger3 = AnimElem = 9
trigger4 = AnimElem = 11
trigger5 = AnimElem = 13
trigger6 = AnimElem = 15
trigger7 = AnimElem = 17
trigger8 = AnimElem = 19
value = 0, 0

[State 1000]
type = Helper
trigger1 = AnimElem = 5
id = 10010
sprpriority = 1
pos = 0,0
postype = p1
stateno = 10010

ownpal = 1

[State 1000]
type = HitDef
trigger1 = AnimElem = 5
trigger2 = AnimElem = 7
trigger3 = AnimElem = 9
trigger4 = AnimElem = 11
trigger5 = AnimElem = 13
trigger6 = AnimElem = 15
trigger7 = AnimElem = 17
trigger8 = AnimElem = 19
attr = S, SA
damage = 20,10
animtype = hard
getpower = 25,10
givepower = 5,1
guardflag = M
hitflag = MAF
priority = 3, Hit
pausetime = 8,8
numhits = 1
sparkno = 2
sparkxy = -10,-17
hitsound   = s2,5
guardsound = s0,6
ground.type = low
ground.slidetime = 15
ground.hittime = 20
ground.velocity = 0,-3
guard.velocity = -1
airguard.velocity = -2,-2
air.velocity = 0,-3
fall = 1
fall.recover = 0
p2facing = 1

[State 1000]
type = SelfState
triggerall = Movehit
triggerall = AnimElemTime(21) = 9
trigger1 = command = "hold_x"
trigger2 = Var(59) >= 1
value = 10000

[State 1000]
type = SelfState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

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

[Statedef 10000]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 0
velset = 0,0
anim = 4100
ctrl = 0
sprpriority = 2

[State 10000]
type = HitDef
trigger1 = time = 0
attr = S, SA
damage = 30,10
animtype = hard
getpower = 50,10
givepower = 5,1
guardflag = M
hitflag = HMAF
priority = 3, Hit
pausetime = 5,5
numhits = 1
sparkno = 2
sparkxy = -10,-17
hitsound   = s2,5
guardsound = s0,6
ground.type = low
ground.slidetime = 15
ground.hittime = 20
ground.velocity = -8,-2
guard.velocity = -3
airguard.velocity = -2,-2
air.velocity = -8,-2
fall = 1
fall.recover = 0
p2facing = 1

[State 10000]
type = SelfState
triggerall = Movehit
triggerall = power >= 2000 || (powerMax < 3000) || (var(16)=666)
triggerall = (life <= lifemax / 3) || (life <= 300) || (powerMax < 3000) || (var(16)=666)
trigger1 = ((command = "hold_x") && (command = "hold_a") && (command = "hold_b"))
trigger2 = Var(59) >= 1
value = 66666

[State 10000]
type = SelfState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;+++++++++++++++++++++++++++

[Statedef 10010]
type = S
movetype= A
physics = N
velset = 0,0
ctrl = 0
anim = 411
sprpriority = 1

[State 10010]
type = bindtoparent
trigger1=1
pos= 50,-40
facing= 1

[State 10010]
type = Angleset
trigger1 = time = 0
value = 0

[State 10010]
type = AngleAdd
trigger1 = time = [0,35]
value = 30

[State 10010]
type = AngleAdd
trigger1 = time > 35
value = 15

[State 10010]
type = AngleDraw
trigger1 = 1

[State 10010]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 10010]
type = AfterImage
trigger1 = Time = 0
length = 15
PalBright   =  30, 30,  70
PalContrast =  50, 50, 120
PalAdd      = -10,-10,-10
PalMul      = .45,.45,.90
TimeGap  = 1
FrameGap = 2
Trans = Add
time = 200

[State 10010]
type = destroyself
trigger1 = parent,AnimElem = 21
trigger2 = parent,Anim != 410
trigger3 = parent,movetype = H
ignorehitpause = 1

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

[Statedef 66666]
type    = S
movetype= A
physics = S
juggle  = 0
poweradd= -2000
velset = 0,0
anim = 665
ctrl = 0
sprpriority = 2

[State 66666]
type = AssertSpecial
trigger1 = 1
flag = NoBG
flag2 = NoFG
flag3 = nobardisplay

[State 66666]
type = superpause
trigger1 = time = 0
time = 300
anim = s9999
sound = s2,3
pos = 15, -30
movetime = 300
darken = 0
ignorehitpause = 1

[State 66666]
type = Helper
trigger1 = time = 1
pos = 0,-30
postype = p1
stateno = 2101

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type = ChangeAnim
trigger1 = time = 20
value = 666

[State 66666]
type = PlaySnd
trigger1 = time = 127
value = 1, 5

[State 66666]
type = PlaySnd
trigger1 = time = 20
value = 1, 9
channel = 2

[State 66666]
type = PlaySnd
trigger1 = time = 127
value = 1, 10
channel = 2

[State 66666]
type = PlaySnd
trigger1 = time = 290
value = 1, 11
channel = 2

[State 66666]
type = Explod
trigger1 = time = 20
anim = 700
ID = 713
pos = 160, 230
postype = Back
scale = 1.8,0.4
sprpriority = -9
ontop = 0
ignorehitpause = 1
removetime = -1
ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type = Explod
trigger1 = time = 20
anim = 667
ID = 667
pos = 160, 0
postype = Back
scale = 1.5,1.5
sprpriority = -100
ontop = 0
ignorehitpause = 1
removetime = -1
ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type = RemoveExplod
trigger1 = Time = 300
ignorehitpause=1

[State 66666]
type = Explod
trigger1 = time = 20
anim = 421
ID = 421
pos = 0, -30
postype = P2
scale = 1,1
sprpriority = -2
ontop = 0
ignorehitpause = 1
removetime = 280
ownpal = 1
Facing = -1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type = Helper
trigger1 = time < 280 
trigger1 = time%20 = 0 
pos = 0,0
postype = p2
stateno = 6666

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type = Helper
trigger1 = Time = [20,290]
trigger1 = Time%6 = 0
id = 6661
sprpriority = 1
pos = 0,0
stateno = 6661

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type = Helper
trigger1 = Time = [20,290]
trigger1 = Time%6 = 0
id = 6662
sprpriority = 1
pos = 0,0
stateno = 6662

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type = Helper
trigger1 = Time = [20,290]
trigger1 = Time%6 = 0
id = 6668
sprpriority = 1
pos = 0,0
stateno = 6668

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type = Helper
trigger1 = Time = [127,250]
trigger1 = Time%6 = 0
id = 6663
sprpriority = 1
pos = 0,0
stateno = 6663

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type=helper
trigger1 = time = 130
trigger2 = time = 140
trigger3 = time = 150
trigger4 = time = 160
trigger5 = time = 170
trigger6 = time = 180
trigger7 = time = 190
trigger8 = time = 200
trigger9 = time = 210
trigger10 = time = 220
trigger11 = time = 230
stateno=6667
ID=6667
pos = 0,0
postype = p2
ownpal = 1
Facing = -1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type=helper
trigger1 = time = 285
stateno=6664
ID=6664
pos = 0,0
postype = p2
ownpal = 1
Facing = -1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type=helper
trigger1 = time = 290
stateno=6665
ID=6665
pos = 0,0
postype = p2
ownpal = 1
Facing = -1
supermovetime = 99999
pausemovetime = 99999

[State 66666]
type = SelfState
trigger1 = Time >= 320
value = 0
ctrl = 1

;+-+--+-+--++-+-+-

[Statedef 6661]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = 3

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

[State 6661]
type = Explod
trigger1 = time = 0
anim = 668
ID = 668
pos = 160, 200
postype = Back
scale = 0,0
sprpriority = -10
ontop = 0
ignorehitpause = 1
removetime = 20
Random = 300, 50
supermovetime = 99999
pausemovetime = 99999

[State 6661]
type = ModifyExplod
trigger1 = 1
ID = 668
scale = 1.5-((time)*0.075) , 1.5+((Time)*0.075)
ignorehitpause = 1

[State 6661]
type = Palfx
trigger1 = 1
time = 2
add = -Time*10,-Time*10,-Time*10
ignorehitpause = 1

[State 6661]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1

;+-+--+-+--++-+-+-

[Statedef 6662]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = 3

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

[State 6662]
type = Explod
trigger1 = time = 0
anim = 668
ID = 668
pos = 160, 270
postype = Back
scale = 0,0
sprpriority = 10
ontop = 1
ignorehitpause = 1
removetime = 20
Random = 300, 50
supermovetime = 99999
pausemovetime = 99999

[State 6662]
type = ModifyExplod
trigger1 = 1
ID = 668
scale = 2-((time)*0.1) , 2+((Time)*0.1)
ignorehitpause = 1

[State 6662]
type = Palfx
trigger1 = 1
time = 2
add = -Time*10,-Time*10,-Time*10
ignorehitpause = 1

[State 6662]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1

;+-+--+-+--++-+-+-

[Statedef 6663]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = 3

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

[State 6663]
type = Explod
trigger1 = time = 0
anim = 669
ID = 669
pos = 160, 230
postype = Back
scale = 0,0
sprpriority = 4
ontop = 1
ignorehitpause = 1
removetime = 20
Random = 300, 60
supermovetime = 99999
pausemovetime = 99999

[State 6663]
type = Explod
trigger1 = time = 0
anim = 669
ID = 669
pos = 0, 80
postype = P2
scale = 0,0
sprpriority = 4
ontop = 1
ignorehitpause = 1
removetime = 20
Random = 30, 30
supermovetime = 99999
pausemovetime = 99999

[State 6663]
type = ModifyExplod
trigger1 = 1
ID = 669
scale = 2-((time)*0.1) , 2+((Time)*0.1)
ignorehitpause = 1

[State 6663]
type = Palfx
trigger1 = 1
time = 2
add = Time*10,-Time*10,-Time*10
ignorehitpause = 1

[State 6663]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1


;--------------------------------------------------------------------------
[Statedef 6664]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = 2

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

[State 6664]
type = PosSet
trigger1 = time = 0
y = 0

[State 6664]
type = PlaySnd
trigger1 = time = 10
value = 0, 4
channel = 1

[State 6664]
type=helper
trigger1 = time = 10
trigger2 = time = 20
stateno=776
ID=776
pos = 0,-80
ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 6664]
type=helper
trigger1 = time = 10
trigger2 = time = 15
trigger3 = time = 20
trigger4 = time = 25
stateno=774
ID=774
pos = 0,-80
ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 6664]
type=helper
trigger1 = time = 10
trigger2 = time = 15
trigger3 = time = 20
trigger4 = time = 25
stateno=775
ID=775
pos = 0,-80
ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 6664]
type=helper
trigger1 = time = 5
trigger2 = time = 10
trigger3 = time = 15
trigger4 = time = 20
stateno=777
ID=777
pos = 0,-80
ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 6664]
type=helper
trigger1 = time = 10
trigger2 = time = 15
trigger3 = time = 20
trigger4 = time = 25
trigger5 = time = 30
trigger6 = time = 35
trigger7 = time = 40
trigger8 = time = 45
stateno=778
ID=778
pos = 0,-80
ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 6664]
type = DestroySelf
trigger1 = time >= 50
ignorehitpause=1

;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 6665]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 671
sprpriority = 2

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

[State 6665]
type = HitDef
trigger1 = Time = 0
attr = S, HA 
animtype  = Hard
damage    = 350,350
getpower = 0,0
givepower = -1000,0
priority  = 2
guardflag =
hitflag = HMAFD
pausetime = 10,10
sparkno = 2
sparkxy = -10,-15
hitsound   = s0,2
guardsound = s0,2
ground.type = Low
ground.slidetime = 300
ground.hittime  = 300
ground.velocity = -8,-8
air.velocity = -8,-8
air.fall = 1
fall.animtype = Hard
fall.recover = 0
fall = 1
envshake.time=6
envshake.freq=180
envshake.ampl=8

[State 6665]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1

;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 6666]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = 3

[State 6666]
type = PosSet
trigger1 = time = 0
y = 0

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

[State 6666]
type = Explod
trigger1 = time = 0
anim = 700
ID = 714
pos = 160, 230
postype = Back
scale = 0,0
sprpriority = -8
ontop = 0
ignorehitpause = 1
removetime = 32
supermovetime = 99999
pausemovetime = 99999

[State 6666]
type = ModifyExplod
trigger1 = time <= 20
ID = 714
scale = ((time)*0.09) , ((Time)*0.02)
ignorehitpause = 1

[State 6666]
type = ModifyExplod
trigger1 = time > 20
ID = 714
scale = 1.8 , 0.4
ignorehitpause = 1

[State 6666]
type = DestroySelf
trigger1 = time >= 32
ignorehitpause=1

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

[Statedef 6667]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 671
sprpriority = 2

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

[State 6667]
type = HitDef
trigger1 = Time = 0
attr = S, HA 
animtype  = Hard
damage    = 20,20
getpower = 0,0
givepower = -100,0
priority  = 2
guardflag =
hitflag = HMAFD
pausetime = 10,10
sparkno = 2
sparkxy = -10,-15
hitsound   = s0,2
guardsound = s0,2
ground.type = Low
ground.slidetime = 300
ground.hittime  = 300
ground.velocity = -3,-3
air.velocity = -3,-3
air.fall = 1
fall.animtype = Hard
fall.recover = 0
fall = 1
envshake.time=10
envshake.freq=180
envshake.ampl=8
Kill = 0

[State 6667]
type = DestroySelf
trigger1 = time >= 10
ignorehitpause=1

;+-+--+-+--++-+-+-

[Statedef 6668]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = 3

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

[State 6668]
type = Explod
trigger1 = time = 0
anim = 668
ID = 668
pos = 160, 230
postype = Back
scale = 0,0
sprpriority = -50
ontop = 0
ignorehitpause = 1
removetime = 20
Random = 300, 100
supermovetime = 99999
pausemovetime = 99999

[State 6668]
type = ModifyExplod
trigger1 = 1
ID = 668
scale = 1-((time)*0.05) , 1+((Time)*0.05)
ignorehitpause = 1

[State 6668]
type = Palfx
trigger1 = 1
time = 2
add = -Time*10,-Time*10,-Time*10
ignorehitpause = 1

[State 6668]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1

;+-+--+-+--++-+-+-

[Statedef 1100]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= -300
velset = -4,0
anim = 400
ctrl = 0
sprpriority = 2
facep2 = 1

[State 1100]
type = NotHitBy
trigger1 = time < 30
value = SCA
time = 1

[State 1100]
type = VelSET
trigger1 = time = [0,15]
x = -2

[State 1100]
type = VelSET
trigger1 = time = [20,45]
x = 15

[State 1100]
type = PlaySnd
trigger1 = AnimElem = 3
value = 1, 0

[State 1100]
type = PlaySnd
trigger1 = AnimElem = 5
value = 0, 7

[State 1100]
type = HitDef
trigger1 = Time = 0
attr = S, HA
damage = 200,50
animtype = hard
getpower = 150,30
givepower = -75,-15
guardflag = M
hitflag = MAF
priority = 3, Hit
pausetime = 1,1
numhits = 1
sparkno = 2
sparkxy = -10,-17
hitsound   = s2,5
guardsound = S0,6
ground.type = low
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -1.5,-9
guard.velocity = -10
airguard.velocity = -3,-5
air.velocity = -1.5,-9
fall = 1
fall.recover = 0
p2facing = 1

[State 1100]
type=helper
trigger1 = Time = [20,45]
trigger1 = Time%2 = 0
stateno=1101
ID=1101
pos = 90, -43
ownpal = 1

[State 1100]
type=helper
trigger1 = Time = 20
stateno=1102
ID=1102
pos = 60, -43
ownpal = 1

[State 1100]
type = AfterImage
trigger1 = var(18) <= 0
trigger1 = time = 20
time = 30
trans = add
palbright = 1,1,1
palcontrast = 200,200,200
FrameGap = 3
PalAdd = -40,-40,-40
PalMul = 1,1,1
length = 10
pausemovetime = 999999

[State 1100]
type = SelfState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;++++++++++++++++++++++++++++++++++++

[Statedef 1101]
type = S
movetype= A
physics = N
velset = 0,0
ctrl = 0
anim = 9999
sprpriority = 4

[State 1101]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 1101]
type = Explod
trigger1 = time = 0
anim = 1102
ID = 1102
pos = 0, 0
scale = 0,0
sprpriority = 3
ontop = 0
ignorehitpause = 1
removetime = 10

[State 1101]
type = Explod
trigger1 = time = 0
anim = 1103
ID = 1102
pos = 0, 0
scale = 0,0
sprpriority = 1
ontop = 0
ignorehitpause = 1
removetime = 10

[State 1101]
type = ModifyExplod
trigger1 = 1
ID = 1102
scale = ((Time)*0.07) ,((Time)*0.07)
ignorehitpause = 1

[State 1101]
type = Palfx
trigger1 = 1
time = 2
add = 100-((time)*35),100-((time)*35),100-((time)*20)
ignorehitpause = 1

[State 1101]
type = DestroySelf
trigger1 = time >= 10
ignorehitpause=1

;++++++++++++++++++++++++++++++++++++

[Statedef 1102]
type = S
movetype= A
physics = N
velset = 0,0
ctrl = 0
anim = 9999
sprpriority = 4

[State 1102]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 1102]
type = bindtoparent
trigger1=1
pos= 60,-43
facing=1

[State 1102]
type = Explod
trigger1 = time = 0
anim = 1101
ID = 1101
pos = 0, 0
postype = p1
bindtime = 500
scale = 0.1,0.4
sprpriority = 3
ontop = 0
removetime = 25

[State 1102]
type = ModifyExplod
trigger1 = 1
ID = 1101
scale = 0.1+((Time)*0.04) , 0.4

[State 1102]
type = Palfx
trigger1 = 1
time = 2
add = -5-((time)*10),-5-((time)*10),-5-((time)*5)
ignorehitpause = 1

[State 1102]
type = RemoveExplod
trigger1 = time >= 25
trigger2 = parent,stateno != 1100
ignorehitpause=1

[State 1102]
type = DestroySelf
trigger1 = time >= 25
trigger2 = parent,stateno != 1100
ignorehitpause=1

;++++++++++++++++++++++++++++++++++++

[Statedef 555]
type    = S
movetype= I
physics = S
juggle  = 4
poweradd= 0
velset = 0,0
anim = 99
ctrl = 0
sprpriority = 2

[State 555]
type = powerAdd
trigger1 = Time = 30
value = -500

[State 555]
type = helper
trigger1 = time%5 = 0
trigger1 = time <= 30
helpertype = normal
stateno = 2100
id = 2100
pos = 0,0
postype = p1
ownpal = 1
keyctrl = 0
sprpriority = 3
pausemovetime = 9999

[State 555]
type = NotHitBy
trigger1 = time = [29,31]
value = SCA
time = 1

[State 555]
type=varadd
trigger1= time = 30
var(18)=800
ignorehitpause=1

[State 555]
type = PlaySnd
trigger1 = Time = 30
value = 1, 7
channel = 2

[State 555]
type = ChangeAnim
trigger1 = Time = 30
value = 100

[State 555]
type = Helper
trigger1 = time = 30
pos = 0,-30
postype = p1
stateno = 2101

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 555]
type = SelfState
trigger1 = time >= 60
value = 0
ctrl = 1


;---------------------------------------------------------------------------
[Statedef 700]
type     = S
movetype = I
physics  = S
ctrl     = 0
velset   = 0,0
anim     = 99
sprpriority = 2

[State 700]
type = PowerAdd
trigger1 = 1
value = 8

[State 700]
type = helper
trigger1 = time%5 = 0
helpertype = normal
stateno = 2100
id = 2100
pos = 0,0
postype = p1
ownpal = 1
keyctrl = 0
sprpriority = 3
pausemovetime = 9999

[State 700]
type = SelfState
trigger1 = command != "hold_a"
trigger1 = Var(59) != 1
trigger2 = power >= 3000
trigger3 = (power = powerMax)
value = 0
ctrl = 1

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

[Statedef 770]
type    = S
movetype= I
physics = S
juggle  = 4
poweradd= 0
velset = 0,0
anim = 99
ctrl = 0
sprpriority = 2

[State 770]
type = NotHitBy
trigger1 = time = [39,41]
value = SCA
time = 1

[State 770]
type = ChangeAnim
trigger1 = Time = 40
value = 100

[State 770]
type = helper
trigger1 = time%5 = 0
trigger1 = time <= 40
helpertype = normal
stateno = 2100
id = 2100
pos = 0,0
postype = p1
ownpal = 1
keyctrl = 0
sprpriority = 3
pausemovetime = 9999

[State 770]
type = Helper
trigger1 = time = 40
pos = 0,-30
postype = p1
stateno = 2101

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 770]
type = superpause
trigger1 = time = 40
time = 30
anim = s9999
sound = s2,3
pos = 15, -30
movetime = 0
darken = 0
ignorehitpause = 1

[State 770]
type = PlaySnd
trigger1 = Time = 41
value = 1, 3
channel = 2

[State 770]
type = Helper
trigger1 = time = 41
id = 771
sprpriority = 4
pos = 0,0
postype = p2
stateno = 771

ownpal = 1

[State 770]
type = SelfState
trigger1 = time >= 200
value = 0
ctrl = 1

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

[Statedef 771]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = 2

[State 771]
type = powerAdd
trigger1 = Time = 0
value = -500

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

[State 771]
type = PlaySnd
trigger1 = time = 0
value = 0, 3
channel = 1

[State 771]
type = PlaySnd
trigger1 = time = 80
value = 0, 4
channel = 1

[State 771]
type = PosSet
trigger1 = time = 0
y = 0

[State 771]
type=helper
trigger1 = time = 0
stateno=772
ID=772
pos = 0,0
ownpal = 1

[State 771]
type=helper
trigger1 = time = 0
stateno=773
ID=773
pos = 0,-40
ownpal = 1

[State 771]
type=helper
trigger1 = time = 4
stateno=773
ID=773
pos = 0,-70
ownpal = 1

[State 771]
type=helper
trigger1 = time = 8
stateno=773
ID=773
pos = 0,-100
ownpal = 1

[State 771]
type=helper
trigger1 = time = 12
stateno=773
ID=773
pos = 0,-130
ownpal = 1

[State 771]
type=helper
trigger1 = time = 80
stateno=779
ID=779
pos = 0,0
ownpal = 1

[State 771]
type=helper
trigger1 = time = 80
trigger2 = time = 90
stateno=776
ID=776
pos = 0,-80
ownpal = 1

[State 771]
type=helper
trigger1 = time = 80
trigger2 = time = 85
trigger3 = time = 90
trigger4 = time = 95
stateno=774
ID=774
pos = 0,-80
ownpal = 1

[State 771]
type=helper
trigger1 = time = 80
trigger2 = time = 85
trigger3 = time = 90
trigger4 = time = 95
stateno=775
ID=775
pos = 0,-80
ownpal = 1

[State 771]
type=helper
trigger1 = time = 75
trigger2 = time = 80
trigger3 = time = 85
trigger4 = time = 90
stateno=777
ID=777
pos = 0,-80
ownpal = 1

[State 771]
type=helper
trigger1 = time = 80
trigger2 = time = 85
trigger3 = time = 90
trigger4 = time = 95
trigger5 = time = 100
trigger6 = time = 105
trigger7 = time = 110
trigger8 = time = 115
stateno=778
ID=778
pos = 0,-80
ownpal = 1

[State 771]
type = Explod
trigger1 = time = 0
anim = 713
ID = 713
pos = 0, 0
scale = 0,0
sprpriority = -9
ontop = 0
ignorehitpause = 1
removetime = 90
ownpal = 1

[State 771]
type = ModifyExplod
trigger1 = Time = [0,30]
ID = 713
scale = ((time)*0.03) , ((Time)*0.0066)
ignorehitpause = 1

[State 771]
type = ModifyExplod
trigger1 = Time = [31,60]
ID = 713
scale = 0.9 , 0.2
ignorehitpause = 1

[State 771]
type = ModifyExplod
trigger1 = Time = [61,90]
ID = 713
scale = (0.9-(time-60)*0.03) , (0.2-(time-60)*0.0066)
ignorehitpause = 1

[State 771]
type = Explod
trigger1 = time = 0
anim = 701
ID = 701
pos = 0, 0
scale = 1,0
sprpriority = 2
ontop = 0
ignorehitpause = 1
removetime = 30

[State 771]
type = ModifyExplod
trigger1 = Time = [0,30]
ID = 701
scale = 1 , ((Time)*0.033)
ignorehitpause = 1

[State 771]
type = Explod
trigger1 = time = 0
anim = 702
ID = 702
pos = -30, 0
scale = 1,0
sprpriority = 2
ontop = 0
ignorehitpause = 1
removetime = 30

[State 771]
type = ModifyExplod
trigger1 = Time = [0,30]
ID = 702
scale = ((Time)*0.033) , ((Time)*0.033)
ignorehitpause = 1

[State 771]
type = Explod
trigger1 = time = 0
anim = 703
ID = 703
pos = -60, 0
scale = 1,0
sprpriority = 2
ontop = 0
ignorehitpause = 1
removetime = 30

[State 771]
type = ModifyExplod
trigger1 = Time = [0,30]
ID = 703
scale = ((Time)*0.033) , ((Time)*0.033)
ignorehitpause = 1

[State 771]
type = Explod
trigger1 = time = 0
anim = 704
ID = 704
pos = 30, 0
scale = 1,0
sprpriority = 2
ontop = 0
ignorehitpause = 1
removetime = 30

[State 771]
type = ModifyExplod
trigger1 = Time = [0,30]
ID = 704
scale = ((Time)*0.033) , ((Time)*0.033)
ignorehitpause = 1

[State 771]
type = Explod
trigger1 = time = 0
anim = 705
ID = 705
pos = 60, 0
scale = 1,0
sprpriority = 2
ontop = 0
ignorehitpause = 1
removetime = 30

[State 771]
type = ModifyExplod
trigger1 = Time = [0,30]
ID = 705
scale = ((Time)*0.033) , ((Time)*0.033)
ignorehitpause = 1

[State 771]
type = Explod
trigger1 = time =65
anim = 706
ID = 706
pos = 0, -300
scale = 1,0
sprpriority = 2
ontop = 0
ignorehitpause = 1
removetime = 30

[State 771]
type = ModifyExplod
trigger1 = Time = [65,95]
ID = 706
scale = ((Time-65)*0.033) , ((Time-65)*0.033)
ignorehitpause = 1

[State 771]
type = Explod
trigger1 = time = 65
anim = 707
ID = 707
pos = -80, -300
scale = 1,0
sprpriority = 2
ontop = 0
ignorehitpause = 1
removetime = 30

[State 771]
type = ModifyExplod
trigger1 = Time = [65,95]
ID = 707
scale = ((Time-65)*0.033) , ((Time-65)*0.033)
ignorehitpause = 1

[State 771]
type = Explod
trigger1 = time = 65
anim = 708
ID = 708
pos = -160, -300
scale = 1,0
sprpriority = 2
ontop = 0
ignorehitpause = 1
removetime = 30

[State 771]
type = ModifyExplod
trigger1 = Time = [65,95]
ID = 708
scale = ((Time-65)*0.033) , ((Time-65)*0.033)
ignorehitpause = 1

[State 771]
type = Explod
trigger1 = time = 65
anim = 709
ID = 709
pos = 80, -300
scale = 1,0
sprpriority = -8
ontop = 0
ignorehitpause = 1
removetime = 30

[State 771]
type = ModifyExplod
trigger1 = Time = [65,95]
ID = 709
scale = ((Time-65)*0.033) , ((Time-65)*0.033)
ignorehitpause = 1

[State 771]
type = Explod
trigger1 = time = 65
anim = 710
ID = 710
pos = 160, -300
scale = 1,0
sprpriority = -8
ontop = 0
ignorehitpause = 1
removetime = 30

[State 771]
type = ModifyExplod
trigger1 = Time = [65,95]
ID = 710
scale = ((Time-65)*0.033) , ((Time-65)*0.033)
ignorehitpause = 1

[State 771]
type = Palfx
trigger1 = time > 65
time = 2
add = (IfElse(time>80,(-((time-80)*12)),0)),(IfElse(time>80,(-((time-80)*12)),0)),(IfElse(time>80,(-((time-80)*12)),0))
ignorehitpause = 1

[State 771]
type = Palfx
trigger1 = time <31
time = 2
add = (IfElse(time>10,(-((time-10)*12)),0)),(IfElse(time>10,(-((time-10)*12)),0)),(IfElse(time>10,(-((time-10)*12)),0))
ignorehitpause = 1

[State 771]
type = BGPalfx
trigger1 = time < 150
time = 2
add = (IfElse(time<=20,(0-((time)*5)),-100)),(IfElse(time<=20,(0-((time)*5)),-100)),(IfElse(time<=20,(0-((time)*5)),-100))
ignorehitpause = 1

[State 771]
type = BGPalfx
trigger1 = time >= 150
time = 2
add = -100+((time-150)*5),-100+((time-150)*5),-100+((time-150)*5)
ignorehitpause = 1

[State 771]
type = DestroySelf
trigger1 = time >= 170
ignorehitpause=1

;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 772]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 714
sprpriority = 2

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

[State 772]
type = HitDef
trigger1 = Time = 0
attr = S, HA 
animtype  = Hard
damage    = 80,80
getpower = 0,0
givepower = -150,0
priority  = 2
guardflag =
hitflag = HMAFD
pausetime = 0,1
sparkno = 2
sparkxy = -10,-15
hitsound   = s0,0
guardsound = s0,0
ground.type = Low
ground.slidetime = 300
ground.hittime  = 300
ground.velocity = 0,-14
air.velocity = 0,-14
air.fall = 1
fall.animtype = Hard
fall.recover = 0
fall = 1

[State 772]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1

;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 773]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = 2

[State 773]
type = Explod
trigger1 = time = 0
anim = 711
ID = 711
pos = 0, 0
scale = 0.3,0.3
sprpriority = 1
ontop = 0
ignorehitpause = 1
removetime = 30

[State 773]
type = Explod
trigger1 = time = 0
anim = 712
ID = 711
pos = 0, 0
scale = 0.2,0.2
sprpriority = 3
ontop = 0
ignorehitpause = 1
removetime = 30

[State 773]
type = ModifyExplod
trigger1 = 1
ID = 711
scale = (0.2-(Time)*0.013) , 0.2
ignorehitpause = 1

[State 773]
type = Palfx
trigger1 = 1
time = 2
add = -255,255-((time)*10),-255+((time)*10)
ignorehitpause = 1

[State 773]
type = DestroySelf
trigger1 = time >= 30
ignorehitpause=1

;++++++++++++++++++++++++++++++++++++

[Statedef 774]
type = S
movetype= A
physics = N
velset = 0,0
ctrl = 0
anim = 711
sprpriority = 10

[State 774]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 774]
type = Angleset
trigger1 = NumHelper(774) = 1
trigger1 = time = 0
value = 10

[State 774]
type = Angleset
trigger1 = NumHelper(774) = 2
trigger1 = time = 0
value = -30

[State 774]
type = Angleset
trigger1 = NumHelper(774) = 3
trigger1 = time = 0
value = 30

[State 774]
type = Angleset
trigger1 = NumHelper(774) = 4
trigger1 = time = 0
value = -10

[State 774]
type = AngleDraw
trigger1 = time < 20
scale = (time)*0.05 , 0.6

[State 774]
type = AngleDraw
trigger1 = time >= 20
scale = 1 , 0.6

[State 774]
type=trans
trigger1= 1
trans=addalpha
alpha= 256-((time)*10),256
ignorehitpause=1

[State 774]
type = Palfx
trigger1 = 1
time = 2
add = 255,-255,-255
ignorehitpause = 1

[State 774]
type = DestroySelf
trigger1 = time >= 25
ignorehitpause=1

;++++++++++++++++++++++++++++++++++++

[Statedef 775]
type = S
movetype= A
physics = N
velset = 0,0
ctrl = 0
anim = 712
sprpriority = -10

[State 775]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 775]
type = Angleset
trigger1 = NumHelper(775) = 1
trigger1 = time = 0
value = 10

[State 775]
type = Angleset
trigger1 = NumHelper(775) = 2
trigger1 = time = 0
value = -30

[State 775]
type = Angleset
trigger1 = NumHelper(775) = 3
trigger1 = time = 0
value = 30

[State 775]
type = Angleset
trigger1 = NumHelper(775) = 4
trigger1 = time = 0
value = -10

[State 775]
type = AngleDraw
trigger1 = time < 20
scale = (time)*0.05 , 0.6

[State 775]
type = AngleDraw
trigger1 = time >= 20
scale = 1 , 0.6

[State 775]
type=trans
trigger1= 1
trans=addalpha
alpha= 256-((time)*10),256
ignorehitpause=1

[State 775]
type = Palfx
trigger1 = 1
time = 2
add = 255,-255,-255
ignorehitpause = 1

[State 775]
type = DestroySelf
trigger1 = time >= 25
ignorehitpause=1

;++++++++++++++++++++++++++++++++++++

[Statedef 776]
type = S
movetype= A
physics = N
velset = 0,0
ctrl = 0
anim = 9999
sprpriority = 4

[State 776]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 776]
type = Explod
trigger1 = time = 0
anim = 700
ID = 700
pos = 0, 0
scale = 0,0
sprpriority = -9
ontop = 0
ignorehitpause = 1
removetime = 50

[State 776]
type = ModifyExplod
trigger1 = Time = [0,20]
ID = 700
scale = (0.4+(time)*0.02) , (0.4+(Time)*0.02)
ignorehitpause = 1

[State 776]
type = ModifyExplod
trigger1 = Time = [21,30]
ID = 700
scale = 0.8 , 0.8
ignorehitpause = 1

[State 776]
type = ModifyExplod
trigger1 = Time = [31,50]
ID = 700
scale = (0.8-(time-30)*0.04) , (0.8-(time-30)*0.04)
ignorehitpause = 1

[State 776]
type = Palfx
trigger1 = time > 40
time = 2
add = 0-((time-40)*10),0-((time-40)*10),0-((time-40)*10)
ignorehitpause = 1

[State 776]
type = DestroySelf
trigger1 = time >= 50
ignorehitpause=1

;++++++++++++++++++++++++++++++++++++

[Statedef 777]
type = S
movetype= A
physics = N
velset = 0,0
ctrl = 0
anim = 715
sprpriority = 10

[State 777]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 777]
type = Angleset
trigger1 = NumHelper(777) = 1
trigger1 = time = 0
value = 10

[State 777]
type = Angleset
trigger1 = NumHelper(777) = 2
trigger1 = time = 0
value = -30

[State 777]
type = Angleset
trigger1 = NumHelper(777) = 3
trigger1 = time = 0
value = 30

[State 777]
type = Angleset
trigger1 = NumHelper(777) = 4
trigger1 = time = 0
value = -10

[State 777]
type = AngleDraw
trigger1 = 1
scale = (time)*0.04 , 1+(time)*0.035

[State 777]
type=trans
trigger1= 1
trans=addalpha
alpha= 256-((time)*10),256
ignorehitpause=1

[State 777]
type = Palfx
trigger1 = 1
time = 2
add = 0-((time)*10),0-((time)*10),0-((time)*3)
ignorehitpause = 1

[State 777]
type = DestroySelf
trigger1 = time >= 25
ignorehitpause=1

;++++++++++++++++++++++++++++++++++++

[Statedef 778]
type = S
movetype= A
physics = N
velset = 0,0
ctrl = 0
anim = 9999
sprpriority = 4

[State 778]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 778]
type = Explod
trigger1 = time = 0
anim = 716
ID = 716
pos = 0, 0
scale = 0.3,0.3
sprpriority = 4
ontop = 0
ignorehitpause = 1
removetime = 32
Random = 200, 200

[State 778]
type = Palfx
trigger1 = 1
time = 2
add = 0-((time)*8),0-((time)*8),0-((time)*8)
ignorehitpause = 1

[State 778]
type = DestroySelf
trigger1 = time >= 32
ignorehitpause=1

;++++++++++++++++++++++++++++++++++++

[Statedef 779]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 717
sprpriority = 2

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

[State 779]
type = HitDef
trigger1 = Time = 0
trigger2 = Time = 2
trigger3 = Time = 4
trigger4 = Time = 6
attr = S, HA 
animtype  = Light
damage    = 15,15
getpower = 0,0
givepower = -40,0
priority  = 2
guardflag =
hitflag = HMAFD
pausetime = 0,1
sparkno = 2
sparkxy = -10,-15
hitsound   = s0,2
guardsound = s0,2
ground.type = Low
ground.slidetime = 30
ground.hittime  = 30
ground.velocity = 4,0
air.velocity = 4,0
air.fall = 1
fall.animtype = Hard
fall.recover = 0
fall = 1

[State 779]
type = HitDef
trigger1 = Time = 8
attr = S, HA 
animtype  = Light
damage    = 15,15
getpower = 0,0
givepower = -40,0
priority  = 2
guardflag =
hitflag = HMAFD
pausetime = 0,1
sparkno = 2
sparkxy = -10,-15
hitsound   = s0,2
guardsound = s0,2
ground.type = Low
ground.slidetime = 30
ground.hittime  = 30
ground.velocity = 4,0
air.velocity = 4,0
air.fall = 0
fall.animtype = Hard
fall.recover = 1
fall = 0

[State 779]
type = DestroySelf
trigger1 = time >= 15
ignorehitpause=1

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

[Statedef 880]
type    = S
movetype= I
physics = S
juggle  = 4
poweradd= 0
velset = 0,0
anim = 99
ctrl = 0
sprpriority = 2

[State 880]
type = NotHitBy
trigger1 = time = [39,41]
value = SCA
time = 1

[State 880]
type = ChangeAnim
trigger1 = Time = 40
value = 100

[State 880]
type = helper
trigger1 = time%5 = 0
trigger1 = time <= 40
helpertype = normal
stateno = 2100
id = 2100
pos = 0,0
postype = p1
ownpal = 1
keyctrl = 0
sprpriority = 3
pausemovetime = 9999

[State 880]
type = Helper
trigger1 = time = 40
pos = 0,-30
postype = p1
stateno = 2101

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 880]
type = superpause
trigger1 = time = 40
time = 30
anim = s9999
sound = s2,3
pos = 15, -30
movetime = 0
darken = 0
ignorehitpause = 1

[State 880]
type = PlaySnd
trigger1 = Time = 41
value = 1, 9
channel = 2

[State 880]
type = Helper
trigger1 = time = 41
id = 881
sprpriority = 4
pos = 0,0
postype = p2
stateno = 881

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 880]
type = SelfState
trigger1 = time >= 400
value = 0
ctrl = 1

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

[Statedef 881]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 888
sprpriority = -9

[State 881]
type = powerAdd
trigger1 = Time = 0
value = -1000

[State 881]
type = AngleDraw
trigger1 = 1
scale = 0.5,0.5

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

[State 881]
type = PlaySnd
trigger1 = time = 0
value = 0, 8
channel = 1

[State 881]
type = PosSet
trigger1 = time = 0
y = -80

[State 881]
type=trans
trigger1= Time <= 123
trans=addalpha
alpha= ((Time)*2),256
ignorehitpause=1

[State 881]
type = Palfx
trigger1 = time <= 150
trigger2 = time >= 300
time = 2
add = 123+(Time),123+(Time),123+(Time)
ignorehitpause = 1

[State 881]
type = BGPalfx
trigger1 = time < 330
time = 2
add = (IfElse(time<=20,(0-((time)*5)),-100)),(IfElse(time<=20,(0-((time)*5)),-100)),(IfElse(time<=20,(0-((time)*5)),-100))
ignorehitpause = 1

[State 881]
type = BGPalfx
trigger1 = time >= 330
time = 2
add = -100+((time-330)*5),-100+((time-330)*5),-100+((time-330)*5)
ignorehitpause = 1

[State 881]
type=trans
trigger1= Time = [300,350]
trans=addalpha
alpha= (256-(Time-300)*5),256
ignorehitpause=1

[State 881]
type=trans
trigger1= Time >= 350
trans=addalpha
alpha= 0,256
ignorehitpause=1

[State 881]
type = Helper
trigger1 = Time = [150,320]
trigger1 = Time%20 = 0
id = 882
sprpriority = 1
pos = 0,100
stateno = 882

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 881]
type = Helper
trigger1 = Time = [150,320]
trigger1 = Time%8 = 0
id = 883
sprpriority = 1
pos = 0,80
stateno = 883

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 881]
type = Explod
trigger1 = time = [150,320]
trigger1 = time%3 = 0
anim = 889
ID = 889
pos = 0, 100
scale = 0.5,0.5
sprpriority = 4
ontop = 0
ignorehitpause = 1
removetime = 30
Random = 200, 0
vel = 0, -4
ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 881]
type = DestroySelf
trigger1 = time >= 350
ignorehitpause=1

;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 882]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 890
sprpriority = 3

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

[State 882]
type = PosSet
trigger1 = time = 0
y = 0

[State 882]
type = HitDef
trigger1 = Time = 0
attr = S, HA 
animtype  = Hard
damage    = 80,80
getpower = 0,0
givepower = -200,0
priority  = 2
guardflag =
hitflag = HMAFD
pausetime = 0,1
sparkno = 2
sparkxy = -10,-15
hitsound   = s0,2
guardsound = s0,2
ground.type = Low
ground.slidetime = 300
ground.hittime  = 300
ground.velocity = 0,-5
air.velocity = 0,-5
air.fall = 1
fall.animtype = Hard
fall.recover = 0
fall = 1

[State 882]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1

;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 883]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = 3

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

[State 883]
type = Explod
trigger1 = time = 0
anim = 670
ID = 670
pos = 0, 0
scale = 1,1
sprpriority = 5
ontop = 0
ignorehitpause = 1
removetime = 20
Random = 180, 40
vel = 0, 0
supermovetime = 99999
pausemovetime = 99999

[State 883]
type = Palfx
trigger1 = 1
time = 2
add = 100-(Time)*17,100-(Time)*17,100-(Time)*17
ignorehitpause = 1

[State 883]
type = ModifyExplod
trigger1 = 1
ID = 670
scale = (1.5+(Time)*0.05) , (1.5+(Time)*0.05) 
ignorehitpause = 1

[State 883]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1

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

[Statedef 990]
type    = S
movetype= I
physics = S
juggle  = 4
poweradd= 0
velset = 0,0
anim = 99
ctrl = 0
sprpriority = 2

[State 990]
type = NotHitBy
trigger1 = time = [49,51]
trigger2 = FrontEdgeDist < -10
trigger3 = FrontEdgeDist > 330
value = SCA
time = 1

[State 990]
type = ChangeAnim
trigger1 = Time = 60
value = 100

[State 990]
type = helper
trigger1 = time%5 = 0
trigger1 = time <= 60
helpertype = normal
stateno = 2100
id = 2100
pos = 0,0
postype = p1
ownpal = 1
keyctrl = 0
sprpriority = 3
pausemovetime = 9999

[State 990]
type = Helper
trigger1 = time = 60
pos = 0,-30
postype = p1
stateno = 2101

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 990]
type = superpause
trigger1 = time = 60
time = 30
anim = s9999
sound = s2,3
pos = 15, -30
movetime = 0
darken = 0
ignorehitpause = 1

[State 990]
type = PlaySnd
trigger1 = Time = 61
value = 1, 4
channel = 2

[State 990]
type = Helper
trigger1 = time = 61
id = 991
sprpriority = 4
pos = (p2dist x)-100,-30
postype = p1
stateno = 991

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 990]
type = AfterImage
triggerall = time >= 348
trigger1 = FrontEdgeDist < -10
trigger2 = FrontEdgeDist > 330
time = 1
trans = add
palbright = -100,-100,-100
palcontrast = 150,150,150
FrameGap = 4
PalAdd = -35,-35,-35
PalMul = 1,1,1
length = 15
supermovetime = 9999999
pausemovetime = 9999999

[State 990]
type = SelfState
triggerall = time >= 349
trigger1 = FrontEdgeDist < -10
trigger2 = FrontEdgeDist > 330
value = 7777
ctrl = 0

[State 990]
type = SelfState
trigger1 = time >= 350
value = 0
ctrl = 1

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

[Statedef 991]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = -9

[State 991]
type = PosSet
trigger1 = time = 0
y = -30

[State 991]
type = powerAdd
trigger1 = Time = 0
value = -2000

[State 991]
type=assertspecial
trigger1= Time < 250
flag=NoBG
flag2=NoFG

[State 991]
type = PlaySnd
trigger1 = time%80 = 0
value = 1, 6
volume = 500

[State 991]
type = Explod
trigger1 = time = 0
anim = 990
ID = 990
pos = 0, 0
postype = back
scale = 1.2,1.2
sprpriority = -100
ontop = 0
ignorehitpause = 1
removetime = 250
bindtime = -1
supermovetime = 99999
pausemovetime = 99999

[State 991]
type = BGPalfx
trigger1 = time < 250
time = 2
add = (IfElse(time<=20,(0-((time)*5)),-100)),(IfElse(time<=20,(0-((time)*5)),-100)),(IfElse(time<=20,(0-((time)*5)),-100))
ignorehitpause = 1

[State 991]
type = BGPalfx
trigger1 = time >= 250
time = 2
add = -100+((time-250)*5),-100+((time-250)*5),-100+((time-250)*5)
ignorehitpause = 1

[State 991]
type = Helper
trigger1 = Time = 10
id = 992
pos = 0,0
stateno = 992

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 991]
type = explod
trigger1 = time = 0
bindtime = -1
scale = 1,1
anim = 993
id = 993
sprpriority = -1
pausemovetime = 99999
supermovetime = 99999

[State 991]
type = explod
trigger1 = time = 0
bindtime = -1
scale = 1,1
anim = 994
id = 993
sprpriority = -1
pausemovetime = 99999
supermovetime = 99999

[State 991]
type = ModifyExplod
trigger1 = Time <= 10
id = 993
scale = ((Time)*0.1),((Time)*0.1)

[State 991]
type = DestroySelf
trigger1 = time >= 270
ignorehitpause=1

;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 992]
type    = S
movetype= A
physics = N
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = 3

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

[State 992]
type = PosSet
trigger1 = time = 0
y = -30

[State 992]
type = VelSet
trigger1 = time <= 20
x =10
y =-1

[State 992]
type = VelAdd
trigger1 = time = [20,40]
x =-0.25
y =-0.3

[State 992]
type = VelAdd
trigger1 = time = [40,60]
x =-0.25
y =0.3

[State 992]
type = VelSet
trigger1 = time = [60,100]
x =-10
y =1

[State 992]
type = VelAdd
trigger1 = time = [100,120]
x =0.25
y =0.3

[State 992]
type = VelAdd
trigger1 = time = [120,140]
x =0.25
y =-0.3

[State 992]
type = VelSet
trigger1 = time >= 140
x =10
y =-1

[State 992]
type = Helper
trigger1 = Time < 212
trigger1 = Time%8 = 0
id = 993
pos = 0,0
postype = p1
stateno = 993

ownpal = 1
Facing = -1
supermovetime = 99999
pausemovetime = 99999

[State 992]
type = Helper
trigger1 = Time%10 = 0
trigger2 = Time = 0
id = 994
pos = 0,0
postype = p1
stateno = 994

ownpal = 1
Facing = -1
supermovetime = 99999
pausemovetime = 99999

[State 992]
type = DestroySelf
trigger1 = time >= 220
ignorehitpause=1

;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 993]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 991
sprpriority = 3

[State 993]
type = Palfx
trigger1 = 1
time = 2
add = (IfElse(time<=10,-255,255)),-255,-255
ignorehitpause = 1

[State 993]
type = bindtoparent
trigger1 = Time <= 10
pos= 0,0

[State 993]
type = AngleDraw
trigger1 = 1
scale = 0.6-((time)*0.06),0.6-((time)*0.06)

[State 993]
type = AngleAdd
trigger1 = time < 50
value = 20

[State 993]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 993]
type = AfterImage
trigger1 = Time = 0
length = 15
PalBright   =  250, 30,  30
PalContrast =  250, 0, 0
PalAdd      = -10,-10,-10
PalMul      = .9,.4,.4
TimeGap  = 1
FrameGap = 2
Trans = Add
time = 50

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

[State 993]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1


;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 994]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 992
sprpriority = 3

[State 994]
type = bindtoparent
trigger1=1
pos= 0,0

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

[State 994]
type = HitDef
trigger1 = Time = 0
attr = S, HA 
animtype  = Hard
damage    = 100,100
getpower = 0,0
givepower = -500,0
priority  = 2
guardflag =
hitflag = HMAFD
pausetime = 0,1
sparkno = 2
sparkxy = -10,-15
hitsound   = s0,2
guardsound = s0,2
ground.type = Low
ground.slidetime = 300
ground.hittime  = 300
ground.velocity = 4,-4
air.velocity = 4,-4
air.fall = 1
fall.animtype = Hard
fall.recover = 0
fall = 1

[State 994]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1

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

[Statedef 3330]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 0
velset = 0,0
anim = 190
ctrl = 0
sprpriority = 2

[State 3330]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 3330]
type = AfterImage
trigger1 = time = 0
time = 1
trans = add
palbright = -100,-100,-100
palcontrast = 150,150,150
FrameGap = 4
PalAdd = -35,-35,-35
PalMul = 1,1,1
length = 15
supermovetime = 9999999
pausemovetime = 9999999

[State 3330]
type=trans
trigger1 = Time < 64
trans=addalpha
alpha= 256-((Time)*4),256
ignorehitpause=1

[State 3330]
type=trans
trigger1= Time >= 64 
trans=addalpha
alpha= 0,256
ignorehitpause=1

[State 3330]
type = Helper
trigger1 = time = 80
pos = 0,-30
postype = p1
stateno = 2101

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 3330]
type = superpause
trigger1 = time = 80
time = 240
anim = s9999
sound = s2,3
pos = 15, -30
movetime = 120
darken = 0
ignorehitpause = 1

[State 3330]
type = Helper
trigger1 = time = 120
id = 3331
sprpriority = 4
pos = 160,-120
postype = Back
stateno = 3331

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 3330]
type = SelfState
triggerall = Time > 120
trigger1 = NumHelper(3331) = 0
trigger2 = Helper(3331),stateno != 3331
value = 7777
ctrl = 0

[State 3330]
type=varset
trigger1= 1
var(17) = 2000
ignorehitpause=1

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

[Statedef 3331]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 9999
sprpriority = 3

[State 3331]
type = powerAdd
trigger1 = Time = 0
value = -3000

[State 3331]
type=assertspecial
trigger1= Time < 400
flag=NoBG
flag2=NoFG
flag3 = nobardisplay

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

[State 3331]
type = PlaySnd
trigger1 = time = 54
value = 3, 1

[State 3331]
type = PlaySnd
trigger1 = time = 58
value = 3, 2
channel = 1

[State 3331]
type = PlaySnd
trigger1 = time = 159
value = 3, 3
channel = 1

[State 3331]
type = PlaySnd
trigger1 = time = 162
value = 3, 5

[State 3331]
type = PlaySnd
trigger1 = time = 200
value = 3, 6

[State 3331]
type = PlaySnd
trigger1 = time = 200
trigger2 = time = 260
value = 1, 6
volume = 500

[State 3331]
type = PlaySnd
trigger1 = time = 20
value = 1, 8
volume = 500
channel = 2

[State 3331]
type = Explod
trigger1 = time = 0
anim = 333
ID = 333
pos = 0, 0
postype = back
scale = 1,1
sprpriority = 999999
ontop = 1
ignorehitpause = 1
removetime = 200
bindtime = -1
supermovetime = 99999
pausemovetime = 99999

[State 3331]
type = Explod
trigger1 = time = 0
anim = 337
ID = 337
pos = 160, 120
postype = back
scale = 5,5
sprpriority = 999998
ontop = 0
ignorehitpause = 1
removetime = 200
bindtime = -1
supermovetime = 99999
pausemovetime = 99999

[State 3331]
type = allPalfx
trigger1 = time = [168,200]
time = 2
add = 255,255,255
ignorehitpause = 1

[State 3331]
type = allPalfx
trigger1 = time = [200,220]
time = 2
add = (255-((time-200)*12.5)),(255-((time-200)*12.5)),(255-((time-200)*12.5))
ignorehitpause = 1

[State 3331]
type = Explod
trigger1 = time = 200
anim = 334
ID = 334
pos = 0, 0
postype = back
scale = 1,1
sprpriority = -999998
ontop = 0
ignorehitpause = 1
removetime = 42
bindtime = -1
supermovetime = 99999
pausemovetime = 99999

[State 3331]
type = Explod
trigger1 = time = 200
anim = 338
ID = 338
pos = 160, 120
postype = back
scale = 5,5
sprpriority = -999999
ontop = 0
ignorehitpause = 1
removetime = 42
bindtime = -1
supermovetime = 99999
pausemovetime = 99999

[State 3331]
type = Helper
trigger1 = time%5 = 0
trigger1 = time = [215,240]
id = 3332
sprpriority = 4
pos = 160,-120
postype = Back
stateno = 3332

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 3331]
type = Helper
trigger1 = time%5 = 0
trigger1 = time = [215,240]
id = 3333
sprpriority = 4
pos = 160,-120
postype = Back
stateno = 3333

ownpal = 1
supermovetime = 99999
pausemovetime = 99999

[State 3331]
type = DestroySelf
trigger1 = time >= 260
ignorehitpause=1

;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 3332]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 335
sprpriority = 3

[State 3332]
type = bindtoparent
trigger1=1
pos= 0,0

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

[State 3332]
type = HitDef
trigger1 = Time = 0
attr = S, HA 
animtype  = Hard
damage    = 150,150
getpower = 0,0
givepower = -10000,0
priority  = 2
guardflag =
hitflag = HMAFD
pausetime = 0,1
sparkno = 2
sparkxy = -10,-15
hitsound   = s0,2
guardsound = s0,2
ground.type = Low
ground.slidetime = 300
ground.hittime  = 300
ground.velocity = 2,-2
air.velocity = 2,-2
air.fall = 1
fall.animtype = Hard
fall.recover = 0
fall = 1

[State 3332]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1

;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 3333]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0
anim = 336
sprpriority = 3

[State 3333]
type = bindtoparent
trigger1=1
pos= 0,0

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

[State 3333]
type = HitDef
trigger1 = Time = 0
attr = S, HA 
animtype  = Hard
damage    = 150,150
getpower = 0,0
givepower = -10000,0
priority  = 2
guardflag =
hitflag = HMAFD
pausetime = 0,1
sparkno = 2
sparkxy = -10,-15
hitsound   = s0,2
guardsound = s0,2
ground.type = Low
ground.slidetime = 300
ground.hittime  = 300
ground.velocity = -2,-2
air.velocity = -2,-2
air.fall = 1
fall.animtype = Hard
fall.recover = 0
fall = 1

[State 3333]
type = DestroySelf
trigger1 = time >= 20
ignorehitpause=1

;+-++-+-+-+-+-+-+-+--++-+--+-+

[Statedef 7777]
type    = S
movetype= I
physics = S
ctrl = 0
anim = 190
poweradd= 0
velset = 0,0

[State 7777]
type=trans
trigger1= 1
trans=addalpha
alpha= ((Time)*4),256
ignorehitpause=1

[State 7777]
type = DestroySelf
trigger1 = ishelper
ignorehitpause=1

[State 7777]
type = AfterImage
trigger1 = Time = 64
time = (var(18))
trans = add
palbright = -100,-100,-100
palcontrast = 150,150,150
FrameGap = 4
PalAdd = -35,-35,-35
PalMul = 1,1,1
length = 15
supermovetime = 9999999
pausemovetime = 9999999

[State 7777]
type = SelfState
trigger1 = Time = 64
value = 0
ctrl = 1

;---------------------------------------------------------------------------
[Statedef -2]
;---------------------------------------------------------------------------

[State -2,donothitmebeforefight]
type=varset
trigger1= stateno = 0
trigger1= !ctrl
var(16) = 333
ignorehitpause=1

[State -2,anticheapo]
type=varset
trigger1= roundstate<2
trigger1= gethitvar(damage)
trigger2= Var(16) != 0 && Var(16) != 333 && Var(16) != 555
trigger3= (Var(59) != 0) && (Var(59) != 666)
trigger4= (gethitvar(damage)) && (var(16)) = 333
trigger5= Var(1) <= -500
trigger6= gethitvar(damage) > 666
trigger7= var(39) < ((Helper(77),var(0))-500)
trigger8 = stateno != [5000,5001]
trigger8 = life < (var(39)-500)
var(16) = 666
ignorehitpause=1

[State -2,donothitmebeforefight]
type=varset
trigger1= ctrl
trigger1= Var(16) != 666
var(16) = 555
ignorehitpause=1

[State -2,anticheapo]
type=varset
trigger1= roundstate>2 && alive
trigger1= p2life > 0
trigger2= var(39)>lifemax
trigger3= var(16)=666
var(39)=lifemax
ignorehitpause=1

[State -2, RealBody]
type=helper
trigger1 = numhelper(77) = 0
trigger1 = Alive = 1
helpertype=normal
stateno=77
ID=77
postype = p1
pausemovetime=9999999
supermovetime=9999999

[State -2, damage]
type=varset
trigger1= var(18) <= 0
trigger1= (gethitvar(damage)) && stateno = [5000,5001]
var(37)= -gethitvar(damage) / ifelse(gethitvar(hitcount)<=1, 1.3, (1.3+(gethitvar(hitcount)*0.1)))
ignorehitpause=1

[State -2, damage]
type=varset
trigger1= var(18) > 0
trigger1= (gethitvar(damage)) && stateno = [5000,5001]
var(37)= -gethitvar(damage) / ifelse(gethitvar(hitcount)<=1, 1.5, (1.5+(gethitvar(hitcount)*0.2)))
ignorehitpause=1

[State -2]
type=varset
trigger1= var(37) = [-300,-500]
var(37)= -300
ignorehitpause=1

[State -2]
type=varadd
trigger1 = var(37) >= -500
trigger2 = var(3) = 1
var(1)= var(37)
ignorehitpause=1

[State -2]
type=lifeadd
trigger1 = var(1) <= -666
value= 6666
ignorehitpause=1

[State -2]
type=varset
trigger1= var(37) < -500
trigger2= var(3) = 1
var(37)= 0
ignorehitpause=1

[State -2]
type=lifeadd
trigger1= var(1) <= -400
trigger1= var(3) = 0
value= -(var(37))
ignorehitpause=1

[State -2]
type=varset
trigger1 = var(1) <= -400
var(3)= 1
ignorehitpause=1

[State -2]
type=varset
trigger1 = stateno != [5000,5001]
var(1)= 0
ignorehitpause=1

[State -2]
type=varset
trigger1 = stateno != [5000,5001]
var(3)= 0
ignorehitpause=1

[State -2]
type=varset
trigger1= var(39)<life
var(39)=life
ignorehitpause=1

[State -2, damage]
type=varadd
trigger1=var(37)
var(39)=var(37)
ignorehitpause=1

[State -2]
type=varset
trigger1 = var(39)<0
var(39)=0
ignorehitpause=1

[State -2]
type=lifeset
trigger1= 1
value=var(39)
ignorehitpause=1

[State -2, damage]
type=varset
trigger1=1
var(37)=0
ignorehitpause=1

[State -2,NotDeath]
type=assertspecial
triggerall = (var(39) > 0) || (Helper(77),var(0) > 0) || (Var(16) = 666) || (Helper(77),var(16) = 666) || (numHelper(77) != 1)
trigger1 = (Numpartner = 0) || (partner,life > 0)
trigger1 = (enemy,life > 0)
trigger2 = var(4) != stateno
trigger3 = life <= 0
trigger4 = MoveReversed
trigger5 = gethitvar(damage) >= life
flag=noko
ignorehitpause=1

[State -2, NodamageWhenReverse]
type=lifeadd
trigger1= (gethitvar(damage)) && (stateno != [5000,5001]) && (stateno != [120,153])
value = (gethitvar(damage))
ignorehitpause=1

[State -2]
type = CtrlSet
value = 1
triggerall = Var(59) >= 1
triggerall = (stateno = 700)
trigger1 = (p2bodydist X > 150) && (p2movetype = H) && (power > 1000)
trigger1 = (life >= lifemax / 3)
trigger2 = (enemy,movetype = A)
trigger3 = inguarddist
trigger4 = p2bodydist X <= 150
trigger4 = (p2stateno != [5100,5200]) && (life >= lifemax / 3)
trigger5 = (p2bodydist X > 150) && (p2movetype = H) && (power > 1500)
trigger5 = (life < lifemax / 3)
trigger6 = (p2movetype = I) && (life >= lifemax / 3) && (power >= 500)
trigger7 = (p2movetype = I) && (life < lifemax / 3) && (power >= 1500) && (p2stateno != [5100,5200])
ignorehitpause=1

[State -2, AI]
Type = VarSet
trigger1 = ctrl = 1
trigger1 = var(13) = 1
V = 13
Value = 0
ignorehitpause=1

[State -2, AI]
Type = VarSet
trigger1 = (life > lifemax / 3)
trigger1 = var(14) = 1
V = 14
Value = 0
ignorehitpause=1

[State -2]
type = VarSet
triggerall = Var(59) >= 1
trigger1 = Alive = 0
trigger2 = Life <= 0
trigger3 = RoundState > 2
trigger4 = Win >= 1
trigger5 = WinKO >= 1
trigger6 = WinTime >= 1
ignorehitpause = 1
var(59) = 0

[State -2]
type = SelfState
trigger1 = Anim != 5150
trigger1 = stateno != 6565
trigger1 = alive = 0
trigger1 = HitShakeOver
trigger1 = statetype != A
value = 5150
ctrl = 0
ignorehitpause=1

[State -2]
type = DestroySelf
triggerall = ishelper
trigger1 = stateno = 0
trigger2 = movetype = H
ignorehitpause=1

[State -2]
type=helper
trigger1 = numhelper(5152) <= 5
trigger1 = Alive = 0
trigger1 = Var(2) != 50
helpertype=normal
stateno=5152
ID=5152
pos = 0,0
ownpal = 1
ignorehitpause=1

[State -2]
type=helper
trigger1 = numhelper(5152) = 1
trigger1 = Alive = 0
trigger1 = Var(2) != 50
helpertype=normal
stateno=5153
ID=5153
pos = 0,0
ownpal = 1
ignorehitpause=1
pausemovetime = 99999
supermovetime = 99999

[State -2]
type = VarSet
trigger1 = numhelper(5152) >= 5
var(2) = 50
ignorehitpause=1

[State -2, Override]
type = HitOverride
attr = SCA,SA,HA,SP,HP,NA,NP,AA,AP
trigger1 = (stateno != [120,153])
stateno = 5000
time = 1
ignorehitpause=1

[State -2]
type = screenbound
trigger1 = StateNo = 990
trigger2 = NumHelper(3331) != 0
value = 0

[State -2]
type = poweradd
triggerall = power < 3000
trigger1 = time%4 = 0
value = ifelse((life < lifemax / 3),5,1)
ignorehitpause=1

[State -2]
type = poweradd
triggerall = power > 3000
trigger1 = time%2 = 0
value = -1
ignorehitpause=1

[State -2]
type = poweradd
trigger1 = GetHitVar(damage) > 0
value = (GetHitVar(damage)*2)
ignorehitpause=1

[state -2, Velset]
type = HitFallSet
trigger1 = HitFall
value = 0
ignorehitpause = 1

[State -2 , 7]
type = SelfState
triggerall = stateno != 6565
trigger1 = GetHitVar(isbound)
trigger2 = statetype = A
trigger3 = Pos Y < 0
trigger4 = Pos Y > 0
trigger5 = movetype = H
trigger5 = stateno != [5000,5001]
trigger5 = stateno != [120,153]
trigger5 = stateno != [50000,50003]
trigger6 = var(4) != stateno
trigger7 = MoveReversed
;trigger8 = vel Y < 0
value = 6565
ignorehitpause = 1

[State -2, bind]
type = PosSet
triggerall = stateno != 6565
trigger1 = Pos Y < 0
trigger2 = Pos Y > 0
y = 0
ignorehitpause=1

[state -2, Velset]
type = velset
triggerall = 1
trigger1 = vel y != 0
y = 666
ignorehitpause=1

[state -2, Velset]
type = NotHitBy
trigger1 = 1
value = ,NT,ST,HT,AT
time = -1
ignorehitpause=1

[state -2, Velset]
type = NotHitBy
trigger1 = statetype = A
trigger2 = GetHitVar(isbound) = 1
trigger3 = Pos Y != 0
trigger4 = (numhelper(77777)=1)
trigger5 = stateno = 6565
trigger6 = (var(16)=666)
trigger7 = roundstate > 2
value = SCA
time = 1
ignorehitpause = 1

[State -2]
type = AssertSpecial
trigger1 = numhelper(77777)=1
flag = nojugglecheck
flag2 = unguardable
ignorehitpause=1

[State -2]
type = Varadd
trigger1 = var(18) > 0
trigger1 = time%1 = 0
var(18) = -1
ignorehitpause=1

[State -2]
type = AfterImage
trigger1 = (var(18)) = 1
time = 1
trans = add
palbright = -100,-100,-100
palcontrast = 150,150,150
FrameGap = 4
PalAdd = -35,-35,-35
PalMul = 1,1,1
length = 15
supermovetime = 9999999
pausemovetime = 9999999

[State -2]
type = AfterImage
trigger1 = time >= 30
trigger1 = stateno = 555
time = (var(18))
trans = add
palbright = -100,-100,-100
palcontrast = 150,150,150
FrameGap = 4
PalAdd = -35,-35,-35
PalMul = 1,1,1
length = 15
supermovetime = 9999999
pausemovetime = 9999999

[State -2]
type = Varadd
trigger1 = gametime%1 = 0
var(17) = -1
ignorehitpause=1

[State -2]
type = Varadd
trigger1 = movetype = H || (stateno = 151) || (stateno = 153)
trigger1 = gametime%1 = 0
var(19) = 1
ignorehitpause=1

[State -2]
type = VarSet
trigger1 = movetype != H && (stateno != 151) && (stateno != 153)
var(19) = 0
ignorehitpause=1

[State -2]
type = CtrlSet
triggerall = var(18) > 0
triggerall = Alive = 1
triggerall = statetype != A
triggerall = (stateno != 120) && (stateno != 130) && (stateno != 131) && (stateno != 150) && (stateno != 152)
triggerall = movetype = H || (stateno = 151) || (stateno = 153)
triggerall = (stateno != 5150) 
triggerall = var(3) = 0
trigger1 = var(19) >= 13
trigger2 = time > 13
value = 1
ignorehitpause=1

;---------------------------------------------------------------------------
[Statedef -3]
;---------------------------------------------------------------------------

[State -3,ReverseProtection]
type = VarSet
trigger1 = 1
var(4) = stateno
ignorehitpause=1
