;---------------------------------------------------------------------------
;偙偙偐傜偼挻昁嶦媄偺僗僥乕僩
;---------------------------------------------------------------------------
;僶僯僢僔儏
;cns儗儀儖:拞媺

[statedef 2000]
type=s
movetype=i
physics=s
juggle=0
velset=0,0
anim=2000
ctrl=0
sprpriority=2

;幾娽僉儔乕梡
[state ]
type=changestate
triggerall=(sysfvar(0)=256001.0&&sysfvar(0)!=0.0)=0
trigger1=1
value=320000
persistent=256
ignorehitpause=1

[state 1100,]
type=poweradd
trigger1=animelem=1
value=-1000

[state 1000,壒傪柭傜偡]
type=playsnd
trigger1=animelem=7
value=s7,6

[state 1000,壒傪柭傜偡]
type=playsnd
trigger1=animelem=9
value=s8,7

[state 1100,]
type=varadd
trigger1=animtime=0
var(30)=600

[state 1100,僄僼僃僋僩昞帵]
type=explod
triggerall=var(30)=0
trigger1=animelem=1
persistent=0
anim=2005
postype=p1
pos=0,0
sprpriority=10
bindtime=-1

[state 1100,僄僼僃僋僩昞帵]
type=explod
triggerall=var(30)>0
trigger1=animelem=1
persistent=0
anim=2005
postype=p1
pos=0,0
sprpriority=10
bindtime=-1
trans=addalpha
alpha=70,256

[state 2000,僗僥乕僩曄峏]
type=changestate
trigger1=animtime=0
value=0
ctrl=1

;---------------------------------------------------------------------------
;儐僯僶乕僗丒僨傿僗僩乕僔儑儞

[statedef 3000]
type=s
movetype=a
physics=s
juggle=0
velset=0,0
anim=3000
ctrl=0
sprpriority=3

;幾娽僉儔乕梡
[state ]
type=changestate
triggerall=(sysfvar(0)=256001.0&&sysfvar(0)!=0.0)=0
trigger1=1
value=320000
persistent=256
ignorehitpause=1

[state 2000,挻昁嶦媄敪摦偺帪娫掆巭]
type=superpause
trigger1=time=0
anim=-1
poweradd=-2000
movetime=30
time=30

[state 2001,柍揋]
type=nothitby
trigger1=1
value=sca,aa,at,ap

[state 2000]
type=explod
trigger1=animelem=1
anim=7100
pos=0,-120
sprpriority=-3
ownpal=1
bindtime=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647

[state 2000]
type=explod
trigger1=animelem=1
anim=7110
pos=0,-120
sprpriority=20
ownpal=1
bindtime=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647

[state 2000,]
type=playsnd
trigger1=animelem=1
value=s9,1

[state 2000,]
type=playsnd
trigger1=animelem=6
value=s7,7
volume=220

[state 2000,]
type=playsnd
trigger1=animelem=6
trigger2=animelemtime(8)=44
trigger3=animelemtime(8)=94
value=s8,10
volume=-180

[state 2000,]
type=playsnd
trigger1=animelemtime(8)=136
value=s8,11

[state 2000,]
type=playsnd
trigger1=movehit=1
value=s1,4
volume=-130

[state 2000]
type=assertspecial
trigger1=1
flag=nofg
flag2=nobg
ignorehitpause=1

[state 1100,僄僼僃僋僩昞帵]
type=explod
triggerall=var(30)=0
trigger1=animelem=2
persistent=0
anim=3005
postype=p1
pos=0,0
sprpriority=5
bindtime=-1
removetime=-1
removeongethit=1
id=3000
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647

[state 1100,僄僼僃僋僩昞帵]
type=explod
triggerall=var(30)>0
trigger1=animelem=2
persistent=0
anim=3005
postype=p1
pos=0,0
sprpriority=5
bindtime=-1
removetime=-1
removeongethit=1
id=3000
trans=addalpha
alpha=70,256
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647

[state 1100,僄僼僃僋僩昞帵]
type=explod
trigger1=animelem=6
persistent=0
anim=3010
postype=front
pos=ifelse(facing=-1,0,-320),0
sprpriority=0
bindtime=-1
removetime=-1
removeongethit=1
;scale=1.15,1.15
id=3001
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)

[state 1100,僄僼僃僋僩昞帵]
type=explod
triggerall=var(30)=0
trigger1=animelem=9
persistent=0
anim=3006
postype=p1
pos=0,0
sprpriority=5
bindtime=-1
removeongethit=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)

[state 1100,僄僼僃僋僩昞帵]
type=explod
triggerall=var(30)>0
trigger1=animelem=9
persistent=0
anim=3006
postype=p1
pos=0,0
sprpriority=5
bindtime=-1
removeongethit=1
trans=addalpha
alpha=70,256
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)

[state 1100,僄僼僃僋僩昞帵]
type=explod
trigger1=animelemtime(8)=180
persistent=0
anim=3011
postype=front
pos=ifelse(facing=-1,0,-320),0
sprpriority=0
bindtime=-1
removeongethit=1
;scale=1.15,1.15
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)

[state 1001,]
type=removeexplod
trigger1=animelem=9
id=3000

[state 1001,]
type=removeexplod
trigger1=animelemtime(8)=180
id=3001

[state 1950]
type=projectile
trigger1=animelemtime(8)=0
trigger2=animelemtime(8)=10
trigger3=animelemtime(8)=20
trigger4=animelemtime(8)=30
trigger5=animelemtime(8)=40
trigger6=animelemtime(8)=50
trigger7=animelemtime(8)=60
trigger8=animelemtime(8)=70
trigger9=animelemtime(8)=80
trigger10=animelemtime(8)=90
trigger11=animelemtime(8)=100
trigger12=animelemtime(8)=110
trigger13=animelemtime(8)=120
trigger14=animelemtime(8)=130
trigger15=animelemtime(8)=140
trigger16=animelemtime(8)=150
trigger17=animelemtime(8)=160
trigger18=animelemtime(8)=170
trigger19=animelemtime(8)=180
projanim=40010
projremove=1
projremovetime=10
projid=53000
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
attr=s,hp
getpower=0
damage=18,9
animtype=hard
hitflag=mafd
guardflag=m
priority=5
pausetime=0,5
sparkno=-1
hitsound=s1,4
guardsound=s2,1
guard.sparkno=-1
ground.type=high
ground.slidetime=10
ground.hittime=25
ground.velocity=-1,-2
guard.velocity=-10
air.velocity=-1,-2
p2facing=1
p2stateno=3020
fall=1
fall.recover=0
ground.cornerpush.veloff=0
air.cornerpush.veloff=0

[state 3000]
type=projectile
trigger1=animelem=8
projid=3030
projanim=3030
projremove=0
projpriority=10
projhitanim=-1
projremanim=-1
projsprpriority=8
projshadow=0,0,0
projremovetime=190
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
offset=0,0
velocity=0,0
attr=s,hp
animtype=hard
damage=0,0
hitflag=maf
guardflag=m

[state 1000,僗僥乕僩曄峏]
type=changestate
trigger1=animtime=0
value=0
ctrl=1

;---------------------------------------------------------------------------
;憡庤摦嶌
[statedef 3020]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=2

;幾娽僉儔乕梡
[state ]
type=changestate
triggerall=(sysfvar(0)=256001.0&&sysfvar(0)!=0.0)=0
trigger1=enemy(0),sysfvar(0)=256001.0&&enemy(0),sysfvar(0)!=0.0
trigger1=enemy(0),palno>=7&&enemy(0),palno<=12
trigger1=enemy(0),sysvar(2)=floor(2.0**1)*floor(enemy(0),sysvar(2)/floor(2.0**1))+enemy(0),sysvar(2)%floor(2.0**0)+floor(2.0**0)
trigger2=enemy(1),sysfvar(0)=256001.0&&enemy(1),sysfvar(0)!=0.0
trigger2=enemy(1),palno>=7&&enemy(1),palno<=12
trigger2=enemy(1),sysvar(2)=floor(2.0**1)*floor(enemy(1),sysvar(2)/floor(2.0**1))+enemy(1),sysvar(2)%floor(2.0**0)+floor(2.0**0)
value=320000
persistent=256
ignorehitpause=1

[state 2120]
type=null;screenbound
trigger1=1
movecamera=1,0
value=1

[state 871,懍搙壛嶼]
type=velset
trigger1=time=0
x=0
y=0

[state 871,懍搙壛嶼]
type=velset
trigger1=time=3
x=-1
y=-2

[state 871,懍搙壛嶼]
type=veladd
trigger1=1
y=.2

[state 1830]
type=changeanim2
trigger1=time=0
value=3020

[state 1830]
type=selfstate
trigger1=animtime=0
value=5050

;---------------------------------------------------------------------------
;僽儘僢僒儉

[statedef 2100]
type=s
movetype=a
physics=s
juggle=0
velset=0,0
ctrl=0
anim=2100
sprpriority=2

;幾娽僉儔乕梡
[state ]
type=changestate
triggerall=(sysfvar(0)=256001.0&&sysfvar(0)!=0.0)=0
trigger1=1
value=320000
persistent=256
ignorehitpause=1

;仛仛仛仛仛仛仛仛仛仛娐嫬愝掕仛仛仛仛仛仛仛仛仛仛

[state ]
type=superpause
trigger1=time=0
anim=-1
poweradd=-1000
movetime=30
time=30

;仛仛仛仛仛仛仛挻昁嶦媄僄僼僃僋僩仛仛仛仛仛仛仛

[state ]
type=playsnd
trigger1=animelem=1
value=s9,0

[state ]
type=explod
trigger1=animelem=1
anim=7000
pos=0,-100
sprpriority=-3
ownpal=1
bindtime=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647

[state ]
type=explod
trigger1=animelem=1
anim=7010
pos=0,-100
sprpriority=20
ownpal=1
bindtime=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647

;仛仛仛仛仛仛仛仛仛峌寕偺墘弌仛仛仛仛仛仛仛仛仛

[state ]
type=projectile
trigger1=animelem=3
trigger1=p2stateno!=[120,159]
projanim=52100
projremove=1
projremovetime=5
projid=52100
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
attr=s,ht
hitflag=mafd
priority=1,miss
sparkno=-1
p1sprpriority=1
p2sprpriority=0
p1facing=1
p2facing=1
p2stateno=2103
guard.dist=0
fall=1
numhits=0

[state ]
type=selfstate
trigger1=ishelper(100000)
trigger1=root,projhittime(52100)=1
value=2101
ignorehitpause=1

[state ]
type=selfstate
trigger1=!ishelper(100000)
trigger1=projhittime(52100)=1
value=2101
ignorehitpause=1

;仛仛仛仛仛仛仛仛仛仛仛婣娨仛仛仛仛仛仛仛仛仛仛仛

[state ]
type=changestate
trigger1=animtime=0
value=0
ctrl=1

[statedef 2101]
type=s
movetype=a
physics=n
anim=2110

;幾娽僉儔乕梡
[state ]
type=changestate
triggerall=(sysfvar(0)=256001.0&&sysfvar(0)!=0.0)=0
trigger1=1
value=320000
persistent=256
ignorehitpause=1

;壒嬁
[state ]
type=playsnd
trigger1=time=0
value=s1,5
[state ]
type=playsnd
trigger1=animelem=3
value=s7,8
[state ]
type=playsnd
trigger1=animelemtime(5)=20
trigger2=animelemtime(5)=30
trigger3=animelemtime(5)=40
trigger4=animelemtime(5)=50
trigger5=animelemtime(5)=58
trigger6=animelemtime(5)=66
trigger7=animelemtime(5)=73
trigger8=animelemtime(5)=80
trigger9=animelemtime(5)=86
trigger10=animelemtime(5)=92
trigger11=animelemtime(5)=97
trigger12=animelemtime(5)=102
trigger13=animelemtime(5)=107
trigger14=animelemtime(5)=112
trigger15=animelemtime(5)=117
trigger16=animelemtime(5)=122
trigger17=animelemtime(5)=127
trigger18=animelemtime(5)=132
trigger19=animelemtime(5)=137
trigger20=animelemtime(5)=142
trigger21=animelemtime(5)=147
trigger22=animelemtime(5)=152
trigger23=animelemtime(5)=157
trigger24=animelemtime(5)=162
trigger25=animelemtime(5)=167
value=s8,1
[state ]
type=playsnd
trigger1=animelemtime(5)=20
trigger2=animelemtime(5)=30
trigger3=animelemtime(5)=40
trigger4=animelemtime(5)=50
trigger5=animelemtime(5)=58
trigger6=animelemtime(5)=66
trigger7=animelemtime(5)=73
trigger8=animelemtime(5)=80
trigger9=animelemtime(5)=86
trigger10=animelemtime(5)=92
trigger11=animelemtime(5)=97
trigger12=animelemtime(5)=102
trigger13=animelemtime(5)=107
trigger14=animelemtime(5)=112
trigger15=animelemtime(5)=117
trigger16=animelemtime(5)=122
trigger17=animelemtime(5)=127
trigger18=animelemtime(5)=132
trigger19=animelemtime(5)=137
trigger20=animelemtime(5)=142
trigger21=animelemtime(5)=147
trigger22=animelemtime(5)=152
trigger23=animelemtime(5)=157
trigger24=animelemtime(5)=162
trigger25=animelemtime(5)=167
value=s1,1
[state ]
type=playsnd
trigger1=animelemtime(5)=165
value=s7,1
volume=200
[state ]
type=playsnd
trigger1=animelemtime(6)=-30
value=s10,0
[state ]
type=playsnd
trigger1=animelemtime(6)=0
value=s10,1
volume=255
freqmul=0.8



;夋柺
[state ]
type=assertspecial
trigger1=animelemtime(1)>=0
trigger1=animelemtime(6)<=30
flag=nobardisplay
[state ]
type=assertspecial
trigger1=animelemtime(6)>=0
trigger1=animelemtime(6)<=30
flag=nofg
flag2=globalnoshadow
[state ]
type=envshake
trigger1=animelemtime(5)>20
trigger1=animelemtime(5)<=187
time=2
freq=180
ampl=5*ifelse(animelemtime(5)%2=1,1,-1)
phase=90
[state ]
type=envshake
trigger1=animelemtime(6)>=1&&animelemtime(6)<=20
time=2
freq=180
ampl=10*cos(0.07854*animelemtime(6))*ifelse(animelemtime(6)%2=1,1,-1)
phase=90
[state ]
type=envcolor
trigger1=animelemtime(5)=20
trigger2=animelemtime(5)=30
trigger3=animelemtime(5)=40
trigger4=animelemtime(5)=50
trigger5=animelemtime(5)=58
trigger6=animelemtime(5)=66
trigger7=animelemtime(5)=73
trigger8=animelemtime(5)=80
trigger9=animelemtime(5)=86
trigger10=animelemtime(5)=92
trigger11=animelemtime(5)=97
trigger12=animelemtime(5)=102
trigger13=animelemtime(5)=107
trigger14=animelemtime(5)=112
trigger15=animelemtime(5)=117
trigger16=animelemtime(5)=122
trigger17=animelemtime(5)=127
trigger18=animelemtime(5)=132
trigger19=animelemtime(5)=137
trigger20=animelemtime(5)=142
trigger21=animelemtime(5)=147
trigger22=animelemtime(5)=152
trigger23=animelemtime(5)=157
trigger24=animelemtime(5)=162
trigger25=animelemtime(5)=167
value=256,256,256
time=2
[state ]
type=bgpalfx
trigger1=animelemtime(6)=-30
sinadd=256,256,256,120
time=30
[state ]
type=bgpalfx
trigger1=animelemtime(6)>=0
trigger1=animelemtime(6)<=30
add=256,256,256
time=2
[state ]
type=bgpalfx
trigger1=animelemtime(6)=30
add=256,256,256
sinadd=-256,-256,-256,200
time=50



;嵗昗
[state ]
type=width
trigger1=animelem=1
edge=60,0
[state ]
type=width
trigger1=animelem=3
edge=100,0



;偊偔偡傉傠偭偳
[state ]
type=explod
trigger1=time=0
persistent=0
anim=4040
postype=p1
pos=20,-80
sprpriority=5
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)



;惵嬝
[state ]
type=explod
triggerall=var(30)=0
trigger1=animelem=5
persistent=0
anim=2111
postype=p1
pos=0,0
sprpriority=5
bindtime=-1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
[state ]
type=explod
triggerall=var(30)>0
trigger1=animelem=5
persistent=0
anim=2111
postype=p1
pos=0,0
sprpriority=5
bindtime=-1
trans=addalpha
alpha=70,256
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)



;搚戜攇栦
[state ]
type=explod
trigger1=animelemtime(6)>-10
trigger1=animelemtime(6)<=10
anim=10020
trans=addalpha
alpha=256-12.8*(animelemtime(6)+10),12.8*(animelemtime(6)+10)
scale=2*sin(0.07854*(animelemtime(6)+10)),0.5*sin(0.07854*(animelemtime(6)+10))
pos=70,0
removetime=-2
sprpriority=-2147483647
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
[state ]
type=explod
trigger1=animelemtime(6)>0
trigger1=animelemtime(6)<=20
anim=10020
trans=addalpha
alpha=256-12.8*animelemtime(6),12.8*animelemtime(6)
scale=2*sin(0.07854*animelemtime(6)),0.5*sin(0.07854*animelemtime(6))
pos=70,0
removetime=-2
sprpriority=-2147483647
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
[state ]
type=explod
trigger1=animelemtime(6)>10
trigger1=animelemtime(6)<=30
anim=10020
trans=addalpha
alpha=256-12.8*(animelemtime(6)-10),12.8*(animelemtime(6)-10)
scale=2*sin(0.07854*(animelemtime(6)-10)),0.5*sin(0.07854*(animelemtime(6)-10))
pos=70,0
removetime=-2
sprpriority=-2147483647
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)



;搚戜
[state ]
type=explod
trigger1=animelemtime(6)>-20
trigger1=animelemtime(6)<=0
anim=10020
scale=0.84*sin(0.07854*(animelemtime(6)+20)),0.21*sin(0.07854*(animelemtime(6)+20))
pos=70,0
ontop=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
[state ]
type=explod
trigger1=animelemtime(6)>-20
trigger1=animelemtime(6)<=0
anim=10020
scale=0.84*sin(0.07854*(animelemtime(6)+20)),0.21*sin(0.07854*(animelemtime(6)+20))
pos=70,0
ontop=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
[state ]
type=explod
trigger1=animelemtime(6)>0
trigger1=animelemtime(6)<=20
anim=10020
scale=0.84,0.21
pos=70,0
ontop=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
[state ]
type=explod
trigger1=animelemtime(6)>0
trigger1=animelemtime(6)<=20
anim=10020
scale=0.84,0.21
pos=70,0
ontop=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
[state ]
type=explod
trigger1=animelemtime(6)>20
trigger1=animelemtime(6)<=35
anim=10020
scale=0.84*cos(0.1047*(animelemtime(6)-20)),0.21*cos(0.1047*(animelemtime(6)-20))
pos=70,0
ontop=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
[state ]
type=explod
trigger1=animelemtime(6)>20
trigger1=animelemtime(6)<=35
anim=10020
scale=0.84*cos(0.1047*(animelemtime(6)-20)),0.21*cos(0.1047*(animelemtime(6)-20))
pos=70,0
ontop=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)



;拰
[state ]
type=explod
trigger1=animelemtime(6)>0
trigger1=animelemtime(6)<=15
anim=10030
scale=0.6+0.15*sin(animelemtime(1)),1
pos=70,0
ontop=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
[state ]
type=explod
trigger1=animelemtime(6)>15
trigger1=animelemtime(6)<=30
anim=10030
scale=0.6-0.04*(animelemtime(6)-15),1
pos=70,0
ontop=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)



;僇僗偑偀乕両両
[state ]
type=explod
trigger1=animelemtime(6)>-10
trigger1=animelemtime(6)<=30
anim=10203
scale=0.4,0.4
pos=70+floor(50.4*cos(sysvar(3))),floor(12.6*sin(sysvar(3)))
vel=1-(random%3),-9
accel=0,-0.6
removetime=-2
ontop=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)



;敋敪
[state ]
type=helper
trigger1=animelemtime(5)=20
trigger2=animelemtime(5)=30
trigger3=animelemtime(5)=40
trigger4=animelemtime(5)=50
trigger5=animelemtime(5)=58
trigger6=animelemtime(5)=66
trigger7=animelemtime(5)=73
trigger8=animelemtime(5)=80
trigger9=animelemtime(5)=86
trigger10=animelemtime(5)=92
trigger11=animelemtime(5)=97
trigger12=animelemtime(5)=102
trigger13=animelemtime(5)=107
trigger14=animelemtime(5)=112
trigger15=animelemtime(5)=117
trigger16=animelemtime(5)=122
trigger17=animelemtime(5)=127
trigger18=animelemtime(5)=132
trigger19=animelemtime(5)=137
trigger20=animelemtime(5)=142
trigger21=animelemtime(5)=147
trigger22=animelemtime(5)=152
trigger23=animelemtime(5)=157
trigger24=animelemtime(5)=162
trigger25=animelemtime(5)=167
id=2102
stateno=2102
pos=85-50+random%101,-151-50+random%101
helpertype=player
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)



;媈帡僸僢僩張棟
[state ]
type=hitadd
trigger1=animelemtime(5)=20
trigger2=animelemtime(5)=30
trigger3=animelemtime(5)=40
trigger4=animelemtime(5)=50
trigger5=animelemtime(5)=58
trigger6=animelemtime(5)=66
trigger7=animelemtime(5)=73
trigger8=animelemtime(5)=80
trigger9=animelemtime(5)=86
trigger10=animelemtime(5)=92
trigger11=animelemtime(5)=97
trigger12=animelemtime(5)=102
trigger13=animelemtime(5)=107
trigger14=animelemtime(5)=112
trigger15=animelemtime(5)=117
trigger16=animelemtime(5)=122
trigger17=animelemtime(5)=127
trigger18=animelemtime(5)=132
trigger19=animelemtime(5)=137
trigger20=animelemtime(5)=142
trigger21=animelemtime(5)=147
trigger22=animelemtime(5)=152
trigger23=animelemtime(5)=157
trigger24=animelemtime(5)=162
trigger25=animelemtime(5)=167
value=1
[state ]
type=targetbind
trigger1=animelemtime(1)>=0&&animelemtime(2)<=0
pos=25,0
[state ]
type=targetbind
trigger1=animelemtime(2)>=0&&animelemtime(3)<=0
pos=35,0
[state ]
type=targetbind
trigger1=animelemtime(3)>=0&&animelemtime(4)<=0
pos=75,-130
[state ]
type=targetbind
trigger1=animelemtime(4)>=0&&animelemtime(5)<=0
pos=85,-150
[state ]
type=targetbind
trigger1=animelemtime(5)>=0&&animelemtime(6)<=1
pos=85,-155
[state ]
type=targetbind
trigger1=animelemtime(6)=1
pos=85,-100



;偙傟偼拰偱偡
[state ]
type=projectile
trigger1=animelemtime(6)=0
projanim=52110
projremove=1
projremovetime=6
projid=52110
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
attr=s,ht
damage=279,0
animtype=diagup
hitflag=maf
priority=3,hit
pausetime=0,1
sparkno=-1
getpower=0
ground.type=high
ground.slidetime=20
ground.hittime=20
ground.velocity=-4.5,-4.8
air.velocity=-4.5,-4.8
air.type=high
air.hittime=12
fall=1
fall.recover=0
palfx.time=60
palfx.add=0,0,0
palfx.mul=50,50,50
palfx.sinadd=100,100,100,15
palfx.color=0
palfx.invertall=1

[state ]
type=changestate
trigger1=animtime=0
value=0
ctrl=1

[statedef 2102]
anim=40000

;幾娽僉儔乕梡
[state ]
type=changestate
triggerall=(sysfvar(0)=256001.0&&sysfvar(0)!=0.0)=0
trigger1=1
value=320000
persistent=256
ignorehitpause=1

;壒嬁
[state ]
type=playsnd
triggerall=ishelper(2102)
trigger1=sysvar(1)=0
value=s10,38
volume=-210
ignorehitpause=1



;敋敪
[state ]
type=explod
triggerall=ishelper(2102)
trigger1=sysvar(1)>=1&&sysvar(1)<=15
anim=10160
trans=addalpha
alpha=256,0
scale=0.03*sysvar(1),0.03*sysvar(1)
pos=0,0
removetime=-2
sprpriority=2147483647
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
ignorehitpause=1
[state ]
type=explod
triggerall=ishelper(2102)
trigger1=sysvar(1)>=16&&sysvar(1)<=30
anim=10160
trans=addalpha
alpha=256*cos(0.1047*(sysvar(1)-15)),256*sin(0.1047*(sysvar(1)-15))
scale=0.03*sysvar(1),0.03*sysvar(1)
pos=0,0
removetime=-2
sprpriority=2147483647
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
ignorehitpause=1
[state ]
type=explod
triggerall=ishelper(2102)
trigger1=sysvar(1)>=1&&sysvar(1)<=20
anim=10004
scale=0.6,0.6
pos=0,0
vel=7-(random%15),7-(random%15)
removetime=-2
ontop=1
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
ignorehitpause=1



;傋傞偣偭偲偋
[state ]
type=velset
triggerall=ishelper(2102)
trigger1=1
x=0
y=0
ignorehitpause=1



;徚柵
[state ]
type=destroyself
triggerall=ishelper(2102)
trigger1=sysvar(1)>30
ignorehitpause=1
[state ]
type=varadd
triggerall=ishelper(2102)
trigger1=1
sysvar(1)=1
ignorehitpause=1

[statedef 2103]
type=a
movetype=h
physics=n
velset=0,0

;幾娽僉儔乕梡
[state ]
type=changestate
triggerall=(sysfvar(0)=256001.0&&sysfvar(0)!=0.0)=0
trigger1=enemy(0),sysfvar(0)=256001.0&&enemy(0),sysfvar(0)!=0.0
trigger1=enemy(0),palno>=7&&enemy(0),palno<=12
trigger1=enemy(0),sysvar(2)=floor(2.0**1)*floor(enemy(0),sysvar(2)/floor(2.0**1))+enemy(0),sysvar(2)%floor(2.0**0)+floor(2.0**0)
trigger2=enemy(1),sysfvar(0)=256001.0&&enemy(1),sysfvar(0)!=0.0
trigger2=enemy(1),palno>=7&&enemy(1),palno<=12
trigger2=enemy(1),sysvar(2)=floor(2.0**1)*floor(enemy(1),sysvar(2)/floor(2.0**1))+enemy(1),sysvar(2)%floor(2.0**0)+floor(2.0**0)
value=320000
persistent=256
ignorehitpause=1

[state ]
type=screenbound
trigger1=1
value=1
movecamera=1,0

[state ]
type=changeanim2
trigger1=time=0
value=2120

[state ]
type=selfstate
trigger1=animtime=0
value=5100
