;イントロ。
[statedef 19099]
type=s
ctrl=0
velset=0,0
sprpriority=5
[state ]
type=changestate
trigger1=!ishelper&&ifelse(sysvar(0)%257000!=256006,1,floor((sysvar(3)%floor(2.0**5))/floor(2.0**4))=1)
trigger2=ishelper
trigger2=ifelse(root,sysvar(0)%257000!=256006,1,!ishelper(103000))
value=1836769491
persistent=256
ignorehitpause=1
[state ]
type=varset
triggerall=ishelper(103000)
trigger1=1
sysvar(0)=stateno
ignorehitpause=1

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



;音響。
[state ]
type=playsnd
trigger1=animelemtime(1)=0
value=s10000,9
freqmul=0.68
volume=255
channel=1
ignorehitpause=1
[state ]
type=playsnd
trigger1=animelemtime(1)=0
value=s10000,0
freqmul=0.7
volume=255
channel=2
ignorehitpause=1
[state ]
type=playsnd
trigger1=animelemtime(1)>=0&&animelemtime(1)<=239
trigger1=animelemtime(1)%15=0
value=s10000,4
freqmul=0.2+0.003*animelemtime(1)
volume=255
channel=3
ignorehitpause=1
[state ]
type=playsnd
trigger1=animelemtime(1)>=0&&animelemtime(1)<=239
trigger1=animelemtime(1)%15=5
value=s10000,4
freqmul=0.2+0.003*animelemtime(1)
volume=255
channel=4
ignorehitpause=1
[state ]
type=playsnd
trigger1=animelemtime(1)>=0&&animelemtime(1)<=239
trigger1=animelemtime(1)%15=10
value=s10000,4
freqmul=0.2+0.003*animelemtime(1)
volume=255
channel=5
ignorehitpause=1

[state ]
type=playsnd
trigger1=animelemtime(1)=240
value=s10000,1
freqmul=1.2
volume=255
channel=1
ignorehitpause=1
[state ]
type=playsnd
trigger1=animelemtime(1)=240
value=s10000,1
freqmul=0.8
volume=255
channel=2
ignorehitpause=1

[state ]
type=playsnd
trigger1=animelemtime(1)=240
value=s201,1
freqmul=1.9
ignorehitpause=1
[state ]
type=playsnd
trigger1=animelemtime(1)=240
value=s10000,22
ignorehitpause=1



;画面性質。
[state ]
type=assertspecial
trigger1=animelemtime(1)>=0&&animelemtime(8)<=-1
flag=intro
ignorehitpause=1
[state ]
type=assertspecial
trigger1=animelemtime(1)>=0&&animelemtime(1)<=239
flag=nobardisplay
ignorehitpause=1

;画面色レイヤー、下。
[state ]
type=explod
trigger1=animelemtime(1)>=240&&animelemtime(1)<=319
anim=11000
trans=addalpha
alpha=floor(256*cos((pi/2/80)*(animelemtime(1)-240))),floor(256*sin((pi/2/80)*(animelemtime(1)-240)))
scale=1,1
pos=0,0
postype=back
vel=0,0
accel=0,0
removetime=-2
sprpriority=-2147483647
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1

;画面揺らし。
[state ]
type=envshake
trigger1=animelemtime(1)>=0&&animelemtime(1)<=239
time=2
freq=180
ampl=floor((3+17*(1-cos((pi/2/240)*animelemtime(1))))*sin((pi/2/0.8123456789)*animelemtime(1)))
phase=90
ignorehitpause=1
[state ]
type=envshake
trigger1=animelemtime(1)>=240&&animelemtime(1)<=264
time=2
freq=180
ampl=floor(150*sin((pi/2/25)*(animelemtime(1)-240))*sin((pi/2/0.7)*animelemtime(1)))
phase=90
ignorehitpause=1



;トランス。
[state ]
type=trans
trigger1=animelemtime(1)>=0&&animelemtime(1)<=239
trans=addalpha
alpha=0,256
ignorehitpause=1
[state ]
type=trans
trigger1=animelemtime(1)>=240&&animelemtime(1)<=259
trans=addalpha
alpha=0,floor(256*cos((pi/2/20)*(animelemtime(1)-240)))
ignorehitpause=1
[state ]
type=trans
trigger1=animelemtime(1)>=260&&animelemtime(1)<=309
trans=addalpha
alpha=floor(256*sin((pi/2/50)*(animelemtime(1)-260))),0
ignorehitpause=1



;光の弾の中に黒いアメジスト。
[state ]
type=explod
trigger1=animelemtime(1)=0
id=190
anim=10820
scale=3,3
pos=0,-50
vel=0,0
accel=0,0
removetime=270
sprpriority=3
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1
[state ]
type=modifyexplod
trigger1=animelemtime(1)>=0&&animelemtime(1)<=179
id=190
pos=0,-150+floor((-50+150)*sin((pi/2/180)*animelemtime(1)))
postype=p1
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(1)=0
id=191
anim=10811
scale=0.3,0.3
pos=0,-50
vel=0,0
accel=0,0
removetime=180
sprpriority=2147483642
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1
[state ]
type=modifyexplod
trigger1=animelemtime(1)>=0&&animelemtime(1)<=179
id=191
pos=0,-150+floor((-50+150)*sin((pi/2/180)*animelemtime(1)))
postype=p1
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(1)=180
anim=10810
scale=0.3,0.3
pos=0,-50
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483642
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1



;雷。
[state ]
type=explod
trigger1=animelemtime(1)=0
anim=10790
scale=0.5,0.5
pos=0,-50
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483643
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(1)=30
anim=10790
facing=-1
scale=0.5,0.5
pos=0,-50
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483643
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(1)=60
anim=10790
facing=-1
vfacing=-1
scale=0.5,0.5
pos=0,-50
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483643
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(1)=90
anim=10790
vfacing=-1
scale=0.5,0.5
pos=0,-50
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483643
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(1)=120
anim=10790
scale=0.5,0.5
pos=0,-50
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483643
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(1)=150
anim=10790
facing=-1
scale=0.8,0.8
pos=0,-50
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483643
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(1)=180
anim=10790
facing=-1
vfacing=-1
scale=0.8,0.8
pos=0,-50
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483643
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1



;雷ランダム配置。
[state ]
type=explod
trigger1=animelemtime(1)=240
trigger2=animelemtime(1)=260
anim=10780
scale=0.8,0.8
pos=0,-50
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483643
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1



;落雷。
[state ]
type=explod
trigger1=animelemtime(1)=240
trigger2=animelemtime(1)=260
anim=10800
scale=1,2
pos=0,0
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483643
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1



;ギザギザ。
[state ]
type=explod
trigger1=animelemtime(1)=240
anim=10880
scale=0.7,0.7
pos=0,-50
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483645
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(1)=240
trigger2=animelemtime(1)=250
anim=10891
scale=1,1
pos=0,-50
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483644
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1



;魔法陣減算。
[state ]
type=explod
trigger1=animelemtime(1)=240-60
anim=10840
scale=0.6,0.6
pos=0,0
vel=0,0
accel=0,0
removetime=-2
sprpriority=4
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(1)=240
anim=10850
scale=0.8,0.8
pos=0,0
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483646
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1
[state ]
type=explod
trigger1=animelemtime(1)>=240&&animelemtime(1)<=269
trigger1=animelemtime(1)%10=0
anim=10860
scale=1,1
pos=0,50
random=6,2
vel=0,0
accel=0,0
removetime=-2
sprpriority=2147483647
ontop=0
pausemovetime=2147483647*var(54)
supermovetime=2147483647*var(54)
ignorehitpause=1



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


[Begin Action 190]
800, 3, 0, 0, 315
800, 4, 0, 0, 4
800, 5, 0, 0, 4
800, 6, 0, 0, 5
800, 7, 0, 0, 5
800, 8, 0, 0, 5
800, 9, 0, 0, 5
Loopstart
0, 0, 0, 0, 6
0, 1, 0, 0, 6
0, 2, 0, 0, 6
0, 3, 0, 0, 6
0, 4, 0, 0, 6
0, 5, 0, 0, 6
0, 6, 0, 0, 6
0, 7, 0, 0, 6
