[statedef 310]
type=s
movetype=a
physics=s
ctrl=0
sprpriority=5

[state ]
type=changestate
triggerall=(sysfvar(0)=256006.0&&sysfvar(0)!=0.0)=0
trigger1=1
value=320000
persistent=256
ignorehitpause=1
[state ]
type=changestate
triggerall=ifelse(!ishelper,0,root,palno>=1&&root,palno<=6||!ishelper(100000)&&root,palno>=7&&root,palno<=12)
trigger1=1
value=320000
persistent=256
ignorehitpause=1
[state ]
type=varset
triggerall=ifelse(!ishelper,0,ishelper(100000)&&root,palno>=7&&root,palno<=12)
trigger1=1
sysvar(0)=stateno
ignorehitpause=1

[state ]
type=changeanim
trigger1=anim!=310
value=310
ignorehitpause=1



;音響。
[state ]
type=playsnd
trigger1=animelemtime(5)>=0&&animelemtime(5)<=14
trigger1=animelemtime(5)%2=0
value=s100,15
freqmul=1
channel=1
ignorehitpause=1



;画面色レイヤー、上。
[state ]
type=explod
trigger1=animelemtime(5)>=0&&animelemtime(5)<=14
trigger1=animelemtime(5)%4=0
anim=11000
trans=addalpha
alpha=0,0
scale=1,1
pos=0,0
postype=back
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483647
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=envshake
trigger1=animelemtime(5)>=0&&animelemtime(5)<=14
time=2
freq=180
ampl=(4-4*sin((pi/2/14)*animelemtime(5)))*ifelse(animelemtime(1)%2=0,1,-1)
phase=90
ignorehitpause=1



;飛び道具
[state ]
type=explod
trigger1=animelemtime(5)>=0&&animelemtime(5)<=19
anim=10210
trans=addalpha
alpha=256*cos((pi/2/20)*animelemtime(5)),256*sin((pi/2/20)*animelemtime(5))
scale=0.5*2.4*sin((pi/2/20)*animelemtime(5)),0.5*2.4*sin((pi/2/20)*animelemtime(5))
pos=30,-68
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483645
ontop=0
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
trigger1=animelemtime(5)>=0&&animelemtime(5)<=14
trigger1=animelemtime(5)%2=0
anim=10024
scale=0.6,0.6
pos=30,-68
vel=4+4*cos(sysvar(3))*cos(random),6*sin(sysvar(3))*cos(random)
accel=0,0
removetime=-2
sprpriority=2147483646
ontop=0
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
trigger1=animelemtime(5)>=0&&animelemtime(5)<=14
trigger1=animelemtime(5)%2=1
anim=10034
scale=0.6,0.6
pos=30,-68
vel=4+4*cos(sysvar(3))*cos(random),6*sin(sysvar(3))*cos(random)
accel=0,0
removetime=-2
sprpriority=2147483646
ontop=0
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=varset
trigger1=animelemtime(5)>=0&&animelemtime(5)<=14
trigger1=prevstateno!=311
var(0)=0
ignorehitpause=1
[state ]
type=changestate
trigger1=animelemtime(5)>=0&&animelemtime(5)<=14
trigger1=prevstateno!=311
value=311
ignorehitpause=1



;帰還、する。
[state ]
type=changestate
trigger1=animtime=0
value=0
ctrl=1
persistent=256
ignorehitpause=1

[statedef 311]

[state ]
type=changestate
triggerall=(sysfvar(0)=256006.0&&sysfvar(0)!=0.0)=0
trigger1=1
value=320000
persistent=256
ignorehitpause=1
[state ]
type=changestate
triggerall=ifelse(!ishelper,0,root,palno>=1&&root,palno<=6||!ishelper(100000)&&root,palno>=7&&root,palno<=12)
trigger1=1
value=320000
persistent=256
ignorehitpause=1
[state ]
type=varset
triggerall=ifelse(!ishelper,0,ishelper(100000)&&root,palno>=7&&root,palno<=12)
trigger1=1
sysvar(0)=stateno
ignorehitpause=1

[state ]
type=changestate
trigger1=var(0)<=-1
trigger2=var(0)>=10
value=310
ignorehitpause=1



[state ]
type=projectile
trigger1=animelemtime(5)%2=0
trigger1=var(0)=0
projanim=40060
projhitanim=ifelse(sysvar(3)%18>=0&&sysvar(3)%18<=9,10190+sysvar(3)%18,70190-10+sysvar(3)%18)
projremanim=-1
projscale=0.7-0.07*var(0),0.7-0.07*var(0)
offset=30-(-6-6*cos(sysvar(3))-0.9*var(0))*var(0)-0.5*0.9*var(0)*(var(0)+1),-68-6-6*sin(sysvar(3))*var(0)
velocity=-6-6*cos(sysvar(3))-0.9*var(0),6*sin(sysvar(3))
accel=0.9,0
projremove=1
projremovetime=100
projsprpriority=2147483600
projedgebound=99999
projstagebound=99999
projheightbound=-99999,99999
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
attr=s,np
hitflag=mafd
guardflag=m
affectteam=e
animtype=hard
air.animtype=back
fall.animtype=back
priority=2,hit
damage=4,2
getpower=20,10
givepower=0,5
hitsound=s300,1
guardsound=s300,1
pausetime=5,10
guard.pausetime=5,10
ground.type=high
air.type=high
ground.slidetime=10
guard.slidetime=10
ground.hittime=10
air.hittime=10
guard.ctrltime=10
airguard.ctrltime=10
ground.velocity=-4
guard.velocity=-4
air.velocity=-4,-3.5
airguard.velocity=-4,-3.5
fall=0
air.fall=1
kill=1
guard.kill=0
fall.kill=1
p2stateno=302
ignorehitpause=1
[state ]
type=projectile
trigger1=animelemtime(5)%2=1
trigger1=var(0)=0
projanim=40060
projhitanim=ifelse(sysvar(3)%18>=0&&sysvar(3)%18<=9,10180+sysvar(3)%18,70180-10+sysvar(3)%18)
projremanim=-1
projscale=0.7-0.07*var(0),0.7-0.07*var(0)
offset=30-(-6-6*cos(sysvar(3))-0.9*var(0))*var(0)-0.5*0.9*var(0)*(var(0)+1),-68-6-6*sin(sysvar(3))*var(0)
velocity=-6-6*cos(sysvar(3))-0.9*var(0),6*sin(sysvar(3))
accel=0.9,0
projremove=1
projremovetime=100
projsprpriority=2147483600
projedgebound=99999
projstagebound=99999
projheightbound=-99999,99999
pausemovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
supermovetime=2147483647*ifelse(!ishelper,0,root,palno>=10&&root,palno<=12)
attr=s,np
hitflag=mafd
guardflag=m
affectteam=e
animtype=hard
air.animtype=back
fall.animtype=back
priority=2,hit
damage=4,2
getpower=20,10
givepower=0,5
hitsound=s300,1
guardsound=s300,1
pausetime=5,10
guard.pausetime=5,10
ground.type=high
air.type=high
ground.slidetime=10
guard.slidetime=10
ground.hittime=10
air.hittime=10
guard.ctrltime=10
airguard.ctrltime=10
ground.velocity=-4
guard.velocity=-4
air.velocity=-4,-3.5
airguard.velocity=-4,-3.5
fall=0
air.fall=1
kill=1
guard.kill=0
fall.kill=1
p2stateno=302
ignorehitpause=1

[state ]
type=varset
trigger1=var(0)>=0&&var(0)<=4
var(1)=10025+var(0)
ignorehitpause=1
[state ]
type=varset
trigger1=var(0)>=5&&var(0)<=9
var(1)=70020-5+var(0)
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(5)%2=0
anim=var(1)
scale=0.7-0.07*var(0),0.7-0.07*var(0)
pos=30-(-6-6*cos(sysvar(3))-0.9*var(0))*var(0)-0.5*0.9*var(0)*(var(0)+1),-68-6-6*sin(sysvar(3))*var(0)
vel=-6-6*cos(sysvar(3))-0.9*var(0),6*sin(sysvar(3))
accel=0.9,0
removetime=-2
sprpriority=2147483647
ontop=0
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=varset
trigger1=var(0)>=0&&var(0)<=4
var(1)=10035+var(0)
ignorehitpause=1
[state ]
type=varset
trigger1=var(0)>=5&&var(0)<=9
var(1)=70030-5+var(0)
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(5)%2=1
anim=var(1)
scale=0.7-0.07*var(0),0.7-0.07*var(0)
pos=30-(-6-6*cos(sysvar(3))-0.9*var(0))*var(0)-0.5*0.9*var(0)*(var(0)+1),-68-6-6*sin(sysvar(3))*var(0)
vel=-6-6*cos(sysvar(3))-0.9*var(0),6*sin(sysvar(3))
accel=0.9,0
removetime=-2
sprpriority=2147483647
ontop=0
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=varadd
trigger1=1
var(0)=1
ignorehitpause=1
[state ]
type=changestate
trigger1=var(0)>=1&&var(0)<=10
value=stateno
persistent=256
ignorehitpause=1