
[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)<=17
trigger1=animelemtime(5)%5=0
value=s300,1
channel=1
ignorehitpause=1
[state ]
type=playsnd
trigger1=animelemtime(5)>=0&&animelemtime(5)<=17
trigger1=animelemtime(5)%5=0
value=s10000,2
channel=2
ignorehitpause=1



;画面色レイヤー、上。
[state ]
type=explod
trigger1=animelemtime(5)>=0&&animelemtime(5)<=17
trigger1=animelemtime(5)%5=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)<=17
time=2
freq=180
ampl=(4-4*sin((pi/2/18)*animelemtime(5)))*ifelse(animelemtime(1)%2=0,1,-1)
phase=90
ignorehitpause=1


;鎖の大きさ。
[state ]
type=varset
trigger1=1
var(1)=15
ignorehitpause=1
[state ]
type=varset
trigger1=1
var(2)=500
ignorehitpause=1



;鎖いっこ01。
[state ]
type=explod
trigger1=animelemtime(5)=0
anim=10310
scale=0.3,0.3
pos=40,-68
vel=0,0
accel=0,0
removetime=-2
sprpriority=2
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)<=9
anim=ifelse(sysvar(3)%18>=0&&sysvar(3)%18<=9,10190+sysvar(3)%18,70190-10+sysvar(3)%18)
scale=0.6,0.6
pos=40,-68
vel=0,0
accel=0,0
removetime=-2
sprpriority=3
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)<=9
anim=10034
scale=0.6,0.6
pos=40,-68
vel=8*cos(random)*cos(sysvar(3)),5*cos(random)*sin(sysvar(3))
accel=0,0
removetime=-2
sprpriority=4
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)<=19
anim=90404
scale=0.01*var(1),0.01*var(1)
pos=40+(2*var(1)*(animelemtime(5)-0)+0.001*var(2))*cos(-pi*20/180),-68+(2*var(1)*(animelemtime(5)-0)+0.001*var(2))*sin(-pi*20/180)
vel=0.001*var(2)*cos(-pi*20/180),0.001*var(2)*sin(-pi*20/180)
accel=0,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=explod
trigger1=animelemtime(5)>=0&&animelemtime(5)<=19
anim=90414
scale=0.01*var(1),0.01*var(1)
pos=40+(var(1)+2*var(1)*(animelemtime(5)-0)+0.001*var(2))*cos(-pi*20/180),-68+(var(1)+2*var(1)*(animelemtime(5)-0)+0.001*var(2))*sin(-pi*20/180)
vel=0.001*var(2)*cos(-pi*20/180),0.001*var(2)*sin(-pi*20/180)
accel=0,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=explod
trigger1=animelemtime(5)>=0&&animelemtime(5)<=19
anim=10024
scale=0.7,0.7
pos=40+(2*var(1)*(animelemtime(5)-0)+0.001*var(2))*cos(-pi*20/180),-68+(2*var(1)*(animelemtime(5)-0)+0.001*var(2))*sin(-pi*20/180)
vel=-6*cos(-pi*20/180.0+(-(random%101)+50)/180.0),-6*sin(-pi*20/180.0+(-((random**2)%101)+50)/180.0)
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)<=19
anim=10034
scale=0.7,0.7
pos=40+(var(1)+2*var(1)*(animelemtime(5)-0)+0.001*var(2))*cos(-pi*20/180),-68+(var(1)+2*var(1)*(animelemtime(5)-0)+0.001*var(2))*sin(-pi*20/180)
vel=-6*cos(-pi*20/180.0+(-(random%101)+50)/180.0),-6*sin(-pi*20/180.0+(-((random**2)%101)+50)/180.0)
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=projectile
trigger1=animelemtime(5)>=0&&animelemtime(5)<=19
projanim=40060
projhitanim=ifelse(sysvar(3)%18>=0&&sysvar(3)%18<=9,10180+sysvar(3)%18,70180-10+sysvar(3)%18)
projremanim=-1
projscale=1,1
offset=40+(var(1)*(animelemtime(5)-0)+var(2))*cos(-pi*20/180),-68+(var(1)*(animelemtime(5)-0)+var(2))*sin(-pi*20/180)
velocity=0.001*var(2)*cos(-pi*20/180),0.001*var(2)*sin(-pi*20/180)
accel=0,0
projremove=1
projremovetime=40
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=s100,4
guardsound=s100,4
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
envshake.time=10
envshake.freq=180
envshake.ampl=6
envshake.phase=0
p2stateno=302
ignorehitpause=1

;鎖いっこ02。
[state ]
type=explod
trigger1=(animelemtime(5)+2)=0
anim=10310
scale=0.3,0.3
pos=40,-68
vel=0,0
accel=0,0
removetime=-2
sprpriority=2
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)+2)>=0&&(animelemtime(5)+2)<=9
anim=ifelse(sysvar(3)%18>=0&&sysvar(3)%18<=9,10190+sysvar(3)%18,70190-10+sysvar(3)%18)
scale=0.6,0.6
pos=40,-68
vel=0,0
accel=0,0
removetime=-2
sprpriority=3
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)+2)>=0&&(animelemtime(5)+2)<=9
anim=10034
scale=0.6,0.6
pos=40,-68
vel=8*cos(random)*cos(sysvar(3)),5*cos(random)*sin(sysvar(3))
accel=0,0
removetime=-2
sprpriority=4
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)+2)>=0&&(animelemtime(5)+2)<=19
anim=90405
scale=0.01*var(1),0.01*var(1)
pos=40+(2*var(1)*((animelemtime(5)+2)-0)+0.001*var(2))*cos(-pi*10/180),-68+(2*var(1)*((animelemtime(5)+2)-0)+0.001*var(2))*sin(-pi*10/180)
vel=0.001*var(2)*cos(-pi*10/180),0.001*var(2)*sin(-pi*10/180)
accel=0,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=explod
trigger1=(animelemtime(5)+2)>=0&&(animelemtime(5)+2)<=19
anim=90415
scale=0.01*var(1),0.01*var(1)
pos=40+(var(1)+2*var(1)*((animelemtime(5)+2)-0)+0.001*var(2))*cos(-pi*10/180),-68+(var(1)+2*var(1)*((animelemtime(5)+2)-0)+0.001*var(2))*sin(-pi*10/180)
vel=0.001*var(2)*cos(-pi*10/180),0.001*var(2)*sin(-pi*10/180)
accel=0,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=explod
trigger1=(animelemtime(5)+2)>=0&&(animelemtime(5)+2)<=19
anim=10024
scale=0.7,0.7
pos=40+(2*var(1)*((animelemtime(5)+2)-0)+0.001*var(2))*cos(-pi*10/180),-68+(2*var(1)*((animelemtime(5)+2)-0)+0.001*var(2))*sin(-pi*10/180)
vel=-6*cos(-pi*10/180.0+(-(random%101)+50)/180.0),-6*sin(-pi*10/180.0+(-((random**2)%101)+50)/180.0)
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)+2)>=0&&(animelemtime(5)+2)<=19
anim=10034
scale=0.7,0.7
pos=40+(var(1)+2*var(1)*((animelemtime(5)+2)-0)+0.001*var(2))*cos(-pi*10/180),-68+(var(1)+2*var(1)*((animelemtime(5)+2)-0)+0.001*var(2))*sin(-pi*10/180)
vel=-6*cos(-pi*10/180.0+(-(random%101)+50)/180.0),-6*sin(-pi*10/180.0+(-((random**2)%101)+50)/180.0)
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=projectile
trigger1=(animelemtime(5)+2)>=0&&(animelemtime(5)+2)<=19
projanim=40060
projhitanim=ifelse(sysvar(3)%18>=0&&sysvar(3)%18<=9,10180+sysvar(3)%18,70180-10+sysvar(3)%18)
projremanim=-1
projscale=1,1
offset=40+(var(1)*((animelemtime(5)+2)-0)+var(2))*cos(-pi*10/180),-68+(var(1)*((animelemtime(5)+2)-0)+var(2))*sin(-pi*10/180)
velocity=0.001*var(2)*cos(-pi*10/180),0.001*var(2)*sin(-pi*10/180)
accel=0,0
projremove=1
projremovetime=40
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=s100,4
guardsound=s100,4
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
envshake.time=10
envshake.freq=180
envshake.ampl=6
envshake.phase=0
p2stateno=302
ignorehitpause=1

;鎖いっこ03。
[state ]
type=explod
trigger1=(animelemtime(5)+4)=0
anim=10310
scale=0.3,0.3
pos=40,-68
vel=0,0
accel=0,0
removetime=-2
sprpriority=2
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)+4)>=0&&(animelemtime(5)+4)<=9
anim=ifelse(sysvar(3)%18>=0&&sysvar(3)%18<=9,10190+sysvar(3)%18,70190-10+sysvar(3)%18)
scale=0.6,0.6
pos=40,-68
vel=0,0
accel=0,0
removetime=-2
sprpriority=3
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)+4)>=0&&(animelemtime(5)+4)<=9
anim=10034
scale=0.6,0.6
pos=40,-68
vel=8*cos(random)*cos(sysvar(3)),5*cos(random)*sin(sysvar(3))
accel=0,0
removetime=-2
sprpriority=4
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)+4)>=0&&(animelemtime(5)+4)<=19
anim=10400
scale=0.01*var(1),0.01*var(1)
pos=40+(2*var(1)*((animelemtime(5)+4)-0)+0.001*var(2))*cos(pi*0/180),-68+(2*var(1)*((animelemtime(5)+4)-0)+0.001*var(2))*sin(pi*0/180)
vel=0.001*var(2)*cos(pi*0/180),0.001*var(2)*sin(pi*0/180)
accel=0,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=explod
trigger1=(animelemtime(5)+4)>=0&&(animelemtime(5)+4)<=19
anim=10410
scale=0.01*var(1),0.01*var(1)
pos=40+(var(1)+2*var(1)*((animelemtime(5)+4)-0)+0.001*var(2))*cos(pi*0/180),-68+(var(1)+2*var(1)*((animelemtime(5)+4)-0)+0.001*var(2))*sin(pi*0/180)
vel=0.001*var(2)*cos(pi*0/180),0.001*var(2)*sin(pi*0/180)
accel=0,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=explod
trigger1=(animelemtime(5)+4)>=0&&(animelemtime(5)+4)<=19
anim=10024
scale=0.7,0.7
pos=40+(2*var(1)*((animelemtime(5)+4)-0)+0.001*var(2))*cos(pi*0/180),-68+(2*var(1)*((animelemtime(5)+4)-0)+0.001*var(2))*sin(pi*0/180)
vel=-6*cos(pi*0/180.0+(-(random%101)+50)/180.0),-6*sin(pi*0/180.0+(-((random**2)%101)+50)/180.0)
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)+4)>=0&&(animelemtime(5)+4)<=19
anim=10034
scale=0.7,0.7
pos=40+(var(1)+2*var(1)*((animelemtime(5)+4)-0)+0.001*var(2))*cos(pi*0/180),-68+(var(1)+2*var(1)*((animelemtime(5)+4)-0)+0.001*var(2))*sin(pi*0/180)
vel=-6*cos(pi*0/180.0+(-(random%101)+50)/180.0),-6*sin(pi*0/180.0+(-((random**2)%101)+50)/180.0)
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=projectile
trigger1=(animelemtime(5)+4)>=0&&(animelemtime(5)+4)<=19
projanim=40060
projhitanim=ifelse(sysvar(3)%18>=0&&sysvar(3)%18<=9,10180+sysvar(3)%18,70180-10+sysvar(3)%18)
projremanim=-1
projscale=1,1
offset=40+(var(1)*((animelemtime(5)+4)-0)+var(2))*cos(pi*0/180),-68+(var(1)*((animelemtime(5)+4)-0)+var(2))*sin(pi*0/180)
velocity=0.001*var(2)*cos(pi*0/180),0.001*var(2)*sin(pi*0/180)
accel=0,0
projremove=1
projremovetime=40
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=s100,4
guardsound=s100,4
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
envshake.time=10
envshake.freq=180
envshake.ampl=6
envshake.phase=0
p2stateno=302
ignorehitpause=1



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