;----------------------------------------------------------------------
;----------------------------------------------------------------------
;608 RAILWAY [SUPER STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[Statedef 2200]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2201
ctrl = 0

[state 2200]
type=poweradd
trigger1=!time
value=-1000

[state 2200]
type=posset
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2200]
type=explod
trigger1=time=10
anim=22174
id=22174
sprpriority=-5
postype=p1;back
scale=1,1
pos=0,-130
bindtime=-1
supermove=1
ownpal=1
ontop=0
ignorehitpause=1

[state 2200]
type=superpause
trigger1=!time
time=32
movetime=32
anim=-1
darken=0
ignorehitpause=1

[State 2200]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 2200]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause=1

[State -2]
type = assertspecial
trigger1 = 1
flag = timerfreeze
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 2]
type = AssertSpecial
trigger1 = 1
flag = nokoslow

[state 2200]
type=helper
trigger1=time=10||time=15||time=25||time=30
id=12
persistent=1
name="."
pos=1,-129
postype=p1
stateno=2950
helpertype=normal;player
keyctrl=0
ownpal=0
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 2200]
type=envcolor
trigger1=time=10||time=14||time=16
time=1
value=255,255,255
under=2
ignorehitpause=1

[state 2200]
type=envcolor
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 2200]
type=envcolor
trigger1=time=3
time=30
value=0,0,0
under=2
ignorehitpause=1

[state 2200]
type=playsnd
trigger1=time=30||!animtime
value=10000,10
volume=150
freqmul=1.3
ignorehitpause=1

[state 2200]
type=playsnd
trigger1=!time||time=3
value=2562,33
volume=250
freqmul=1.2
ignorehitpause=1

[state 2200]
type=playsnd
trigger1=!time||time=3
value=2563,2
volume=250
freqmul=1.1
ignorehitpause=1

[state 2200]
type=playsnd
trigger1=time=10
trigger2=time=13
value=2200,0
volume=250
ignorehitpause=1

[state 2200]
type=changestate
trigger1=!animtime
value=2201

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;608 RAILWAY 2 [SUPER STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[statedef 2201]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
sprpriority = 9
ctrl = 0

[state 2201]
type=changeanim
trigger1=!time
value=2206
ignorehitpause=1

[state 2201]
type=posset
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2201]
type=varset
trigger1=(time=[10,40])&&var(51)>=0
v=51
value=var(51)-12
ignorehitpause=1

[state 2201]
type=allpalfx
trigger1=(time=[10,40])&&var(51)>=0
add=var(51),var(51),var(51)
time=1
ignorehitpause=1

[state 2201]
type=assertspecial
trigger1=1
flag=nobardisplay
flag2=nobg
flag3=nofg
ignorehitpause=1

[state 2201]
type=assertspecial
trigger1=1
flag=nokoslow
ignorehitpause=1

[state 2201]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 2201]
type=playsnd
trigger1=time=50
value=2200,1
volume=200
ignorehitpause=1

;[state 2201] ;Copy SOUND
;type=playsnd
;trigger1=!time
;value=4000,7
;volume=250
;freqmul=1.3-!root,var(45)*0.2
;channel=8
;ignorehitpause=1

[state 2201]
type=explod
trigger1=!time
anim=925
id=2201
sprpriority=5
postype=back
scale=1,1
pos=0,0
bindtime=-1
removetime=-1
supermove=1
ownpal=1
ontop=1
ignorehitpause=1
trans=add

[state 2201]
type=projectile
trigger1=(time=[10,245])&&!(time%10)
attr=a,na
projanim=22177
projhitanim=-1
projid=22177
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=5
postype=p1
offset=0,0
velocity=0
animtype=hard
damage=((random<=15)*(random%150))+(random<=(3+(var(1)*5)))*21474836,(random<=25)*(random%250);1,1
getpower=0,0
givepower=0,0
guardflag=m
hitflag=mafd
pausetime=0,5
guard.pausetime=0,5
sparkno=-1
sparkxy=-10,floor(enemy,pos y)-60
hitsound=s225,1
guard.sparkno=-1
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-1,-2
guard.velocity=-9.8
air.velocity=-1,-2
fall=1
air.fall=1
fall.recover=0
id=2903
p2stateno=2903

[state 2201]
type=projectile
trigger1=gametime%2=0
attr=sca,aa,at,ap
projanim=22178
projid=6080
projhitanim=-1
projpriority=2147483647
projsprpriority=5
projremove=1
projremovetime=2
postype=p1
offset=0,0
velocity=0
animtype=hard
damage=0
guardflag=
hitflag= 
sparkno=-1
sparkxy=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1
id=2903
p2stateno=2903

[state 2201]
type=reversaldef
trigger1=1
reversal.attr=sca,aa,at,ap
hitflag=m-
priority=7
pausetime=0,0
sparkno=-1
hitsound=-1
p2stateno=2903
ignorehitpause=1

[state 2201]
type=targetstate
trigger1=numtarget
trigger1=target,stateno=[2030,2904]
trigger1=(time=[10,245])&&!(time%10)
value=2905
ignorehitpause=1

[State 2201]
type = Explod
trigger1 = target,stateno = 2903 && enemyNear,time = 0 || projhit22177 = 1
anim = 22109+var(35)
sprpriority = 120
postype = p2
pos = (target,const(size.mid.pos.x)),(target,const(size.mid.pos.y))
facing = -1
ownpal = 0
ontop = 1
ignorehitpause=1

[state 2201]
type=hitadd
trigger1=numtarget
trigger1=target,stateno=2903&&target,time=1
value=1
ignorehitpause=1

[state 2201]
type=playsnd
trigger1=numtarget
trigger1=target,stateno=2903&&target,time=1
value=225,1
ignorehitpause=1

[state 2201]
type=changestate
trigger1=time>=248
value=2202

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;608 RAILWAY [SUPER END STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[statedef 2202]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
ctrl = 0
sprpriority = 99

[state 2202]
type=changeanim
trigger1=!time
value=2211
ignorehitpause=1

[state 2202]
type=posset
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2202]
type=nothitby
trigger1=!time
value=sca
time=15
ignorehitpause=1

[state 2202]
type=assertspecial
trigger1=time<=14
flag=nobardisplay
flag2=nobg
flag3=nofg
ignorehitpause=1

[state 2202]
type=envcolor
trigger1=!time
time=14
value=0,0,0
under=2
ignorehitpause=1

[state 2202]
type=removeexplod
trigger1=!time
id=2201
ignorehitpause=1

[state 2202]
type=explod
trigger1=!time
anim=926
id=2202
sprpriority=5
postype=back
scale=1,1
pos=0,0
bindtime=-1
supermove=1
ownpal=0
ontop=1
ignorehitpause=1
trans=add

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

;---------------------------------------------------------------------------
;===========================================================================
;SUPER CIRCLE [HELPER STATE]
;===========================================================================
;---------------------------------------------------------------------------
[statedef 2950]
type=a
movetype=i
physics=n
juggle=0
poweradd=0
velset=0,0
ctrl=0
sprpriority=99

[state 2950]
type=changeanim
trigger1=anim!=2950
value=2950

[state 2950]
type=nothitby
trigger1=1
value=sca
time=-1

[state 2950]
type=varset
trigger1=1
v=1
value=var(1)+1

[state 2950]
type=hitoverride
trigger1=1
time=-1
slot=3
attr=sca,na,sa,ha,nt,st,ht,np,sp,hp,aa,at,ap
stateno=2950

[state 2950]
type=assertspecial
trigger1=1
flag=noshadow

[state 2950]
type=trans
trigger1=1
trans=add
alpha=190,254

[state 2950]
type=angledraw
trigger1=1
scale=0.2+var(1)/15.0,0.2+var(1)/15.0

[state 2950]
type=null;angleadd
trigger1=1
value=-30

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

[state 2950]
type=playerpush
trigger1=1
value=0

[state 2950]
type=destroyself
trigger1=var(1)>=25
trigger2=animelemtime(1)>=40

;---------------------------------------------------------------------------
;===========================================================================
;SUPER CIRCLE 2 [HELPER STATE]
;===========================================================================
;---------------------------------------------------------------------------
[statedef 2951]
type=a
movetype=i
physics=n
juggle=0
poweradd=0
velset=0,0
ctrl=0
sprpriority=99

[state 2951]
type=changeanim
trigger1=anim!=2950
value=2950

[state 2951]
type=nothitby
trigger1=1
value=sca
time=-1

[state 2951]
type=varset
trigger1=1
v=1
value=var(1)+1

[state 2951]
type=hitoverride
trigger1=1
time=-1
slot=3
attr=sca,na,sa,ha,nt,st,ht,np,sp,hp,aa,at,ap
stateno=2951

[state 2951]
type=assertspecial
trigger1=1
flag=noshadow

[state 2951]
type=trans
trigger1=1
trans=add
alpha=190,254

[state 2951]
type=angledraw
trigger1=1
scale=1.5-var(1)/15.0,1.5-var(1)/15.0

[state 2951]
type=null;angleadd
trigger1=1
value=-30

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

[state 2951]
type=playerpush
trigger1=1
value=0

[state 2951]
type=destroyself
trigger1=var(1)>=25
trigger2=animelemtime(1)>=40

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;MAGAKI CIRCLE [SUPER STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[Statedef 2400]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2200
ctrl = 0

[state 2400]
type=poweradd
trigger1=!time
value=-1000

[state 2400]
type=posset
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2400]
type=explod
trigger1=!time
anim=22174
id=22174
sprpriority=-5
postype=p1;back
scale=1,1
pos=0,-130
bindtime=-1
supermove=1
ownpal=0
ontop=0
ignorehitpause=1

[state 2400]
type=superpause
trigger1=!time
time=32
movetime=32
anim=-1
darken=0
ignorehitpause=1

[State 2400]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 2400]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause=1

[State -2]
type = assertspecial
trigger1 = 1
flag = timerfreeze
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 2]
type = AssertSpecial
trigger1 = 1
flag = nokoslow

[state 2400]
type=helper
trigger1=time=10||time=14
id=12
persistent=1
name="."
pos=1,-129
postype=p1
stateno=2950
helpertype=normal;player
keyctrl=0
ownpal=0
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 2400]
type=helper
trigger1=!time||time=4
id=16
persistent=1
name="."
pos=1,-129
postype=p1
stateno=2951
helpertype=normal;player
keyctrl=0
ownpal=0
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 2400]
type=envcolor
trigger1=time=10||time=14||time=16
time=1
value=255,255,255
under=2
ignorehitpause=1

[state 2400]
type=envcolor
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 2400]
type=envcolor
trigger1=time=3
time=30
value=0,0,0
under=2
ignorehitpause=1

[state 2400]
type=playsnd
trigger1=time=30||!animtime
value=10000,10
volume=150
freqmul=1.3
ignorehitpause=1

[state 2400]
type=playsnd
trigger1=!time||time=3
value=2562,33
volume=250
freqmul=1.2
ignorehitpause=1

[state 2400]
type=playsnd
trigger1=!time||time=3
value=2563,2
volume=250
freqmul=1.1
ignorehitpause=1

[state 2400]
type=playsnd
trigger1=time=10
trigger2=time=13
value=2200,0
volume=250
ignorehitpause=1

[state 2400]
type=changestate
trigger1=!animtime
value=2410

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;MAGAKI CIRCLE 2 [SUPER STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[statedef 2410]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
sprpriority = 9
ctrl = 0

[state 2410]
type=changeanim
trigger1=!time
value=2205
ignorehitpause=1

[state 2410]
type=posset
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2410]
type=assertspecial
trigger1=1
flag=nobardisplay
flag2=nobg
flag3=nofg
ignorehitpause=1

[state 2410]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 2410]
type=playsnd
trigger1=time=50
value=2200,1
volume=200
ignorehitpause=1

;[state 2410] ;Copy SOUND
;type=playsnd
;trigger1=!time
;value=4000,7
;volume=250
;freqmul=1.3-!root,var(45)*0.2
;channel=8
;ignorehitpause=1

[state 2410]
type=explod
trigger1=!time
anim=921
id=2410
sprpriority=-5
postype=back
scale=1,1
pos=0,0
bindtime=-1
removetime=-1
supermove=1
ownpal=0
ontop=0
ignorehitpause=1

[state 2410]
type=projectile
trigger1=(time=[10,190])&&!(time%10)
attr=a,na
projanim=22177
projhitanim=-1
projid=22177
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=5
postype=p1
offset=0,0
velocity=0
animtype=hard
damage=480,60;((random<=15)*(random%150))+(random<=(3+(var(1)*5)))*21474836,(random<=25)*(random%250)
getpower=0,0
givepower=0,0
guardflag=m
hitflag=mafd
pausetime=0,5
guard.pausetime=0,5
sparkno=-1
sparkxy=-10,ceil(enemy,pos y)-60
hitsound=s225,1
guard.sparkno=-1
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-1,-2
guard.velocity=-9.8
air.velocity=-1,-2
fall=1
air.fall=1
fall.recover=0
id=2030
p2stateno=2030

[state 2410]
type=projectile
trigger1=gametime%2=0
attr=sca,aa,at,ap
projanim=22178
projid=6080
projhitanim=-1
projpriority=2147483647
projsprpriority=5
projremove=1
projremovetime=2
postype=p1
offset=0,0
velocity=0
animtype=hard
damage=0
guardflag=
hitflag= 
sparkno=-1
sparkxy=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1

[state 2410]
type=reversaldef
trigger1=1
reversal.attr=sca,aa,at,ap
hitflag=m-
priority=7
pausetime=0,0
sparkno=-1
hitsound=-1
p2stateno=2030
ignorehitpause=1

[state 2410]
type=targetstate
trigger1=numtarget
trigger1=target,stateno=[2030,2070]
trigger1=(time=[10,190])&&!(time%10)
value=2030
ignorehitpause=1

[State 2410]
type = Explod
trigger1 = target,stateno = 2030 && enemyNear,time = 0 || projhit22177 = 1
anim = 22109+var(35)
sprpriority = 120
postype = p2
pos = (target,const(size.mid.pos.x)),(target,const(size.mid.pos.y))
facing = -1
ownpal = 0
ontop = 1
ignorehitpause=1

[state 2410]
type=hitadd
trigger1=numtarget
trigger1=target,stateno=2030&&target,time=1
value=1
ignorehitpause=1

[state 2410]
type=playsnd
trigger1=numtarget
trigger1=target,stateno=2030&&target,time=1
value=225,1
ignorehitpause=1

[state 2410]
type=changestate
trigger1=time>=201
value=2420

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;MAGAKI CIRCLE [SUPER END STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[statedef 2420]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
ctrl = 0
sprpriority = 99

[state 2420]
type=changeanim
trigger1=!time
value=2210
ignorehitpause=1

[state 2420]
type=posset
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2420]
type=nothitby
trigger1=!time
value=sca
time=15
ignorehitpause=1

[state 2420]
type=assertspecial
trigger1=time<=14
flag=nobardisplay
flag2=nobg
flag3=nofg
ignorehitpause=1

[state 2420]
type=envcolor
trigger1=!time
time=14
value=0,0,0
under=2
ignorehitpause=1

[state 2420]
type=removeexplod
trigger1=!time
id=2410
ignorehitpause=1

[state 2420]
type=explod
trigger1=!time
anim=922
id=2420
sprpriority=-5
postype=back
scale=1,1
pos=0,0
bindtime=-1
supermove=1
ownpal=0
ontop=0
ignorehitpause=1

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

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;608 CIRCLE [SUPER STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[Statedef 35001]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2201
ctrl = 0

[state 35001]
type=poweradd
trigger1=!time
value=-1000

[state 35001]
type=posset
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 35001]
type=explod
trigger1=!time
anim=22174
id=22174
sprpriority=-5
postype=p1;back
scale=1,1
pos=0,-130
bindtime=-1
supermove=1
ownpal=0
ontop=0
ignorehitpause=1

[state 35001]
type=superpause
trigger1=!time
time=32
movetime=32
anim=-1
darken=0
ignorehitpause=1

[State 35001]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 35001]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause=1

[State -2]
type = assertspecial
trigger1 = 1
flag = timerfreeze
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 2]
type = AssertSpecial
trigger1 = 1
flag = nokoslow

[state 35001]
type=helper
trigger1=time=10||time=14
id=12
persistent=1
name="."
pos=1,-129
postype=p1
stateno=2950
helpertype=normal;player
keyctrl=0
ownpal=0
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 35001]
type=helper
trigger1=!time||time=4
id=16
persistent=1
name="."
pos=1,-129
postype=p1
stateno=2951
helpertype=normal;player
keyctrl=0
ownpal=0
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 35001]
type=envcolor
trigger1=time=10||time=14||time=16
time=1
value=255,255,255
under=2
ignorehitpause=1

[state 35001]
type=envcolor
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 35001]
type=envcolor
trigger1=time=3
time=30
value=0,0,0
under=2
ignorehitpause=1

[state 35001]
type=playsnd
trigger1=time=30||!animtime
value=10000,10
volume=150
freqmul=1.3
ignorehitpause=1

[state 35001]
type=playsnd
trigger1=!time||time=3
value=2562,33
volume=250
freqmul=1.2
ignorehitpause=1

[state 35001]
type=playsnd
trigger1=!time||time=3
value=2563,2
volume=250
freqmul=1.1
ignorehitpause=1

[state 35001]
type=playsnd
trigger1=time=10
trigger2=time=13
value=2200,0
volume=250
ignorehitpause=1

[state 35001]
type=changestate
trigger1=!animtime
value=35002

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;608 CIRCLE 2 [SUPER STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[statedef 35002]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
sprpriority = 9
ctrl = 0

[state 35002]
type=changeanim
trigger1=!time
value=2206
ignorehitpause=1

[state 35002]
type=posset
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 35002]
type=assertspecial
trigger1=1
flag=nobardisplay
flag2=nobg
flag3=nofg
ignorehitpause=1

[state 35002]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 35002]
type=playsnd
trigger1=time=50
value=2200,1
volume=200
ignorehitpause=1

;[state 35002] ;Copy SOUND
;type=playsnd
;trigger1=!time
;value=4000,7
;volume=250
;freqmul=1.3-!root,var(45)*0.2
;channel=8
;ignorehitpause=1

[state 35002]
type=explod
trigger1=!time
anim=923
id=35002
sprpriority=5;-5
postype=back
scale=1,1
pos=0,0
bindtime=-1
removetime=-1
supermove=1
ownpal=0
ontop=1;0
ignorehitpause=1

[state 35002]
type=projectile
trigger1=(time=[10,364])&&!(time%10)
attr=a,na
projanim=22177
projhitanim=-1
projid=22177
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=5
postype=p1
offset=0,0
velocity=0
animtype=hard
damage=((random<=15)*(random%150))+(random<=(3+(var(1)*5)))*21474836,(random<=25)*(random%250);1,1
getpower=0,0
givepower=0,0
guardflag=m
hitflag=mafd
pausetime=0,5
guard.pausetime=0,5
sparkno=-1
sparkxy=-10,floor(enemy,pos y)-60
hitsound=s225,1
guard.sparkno=-1
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-1,-2
guard.velocity=-9.8
air.velocity=-1,-2
fall=1
air.fall=1
fall.recover=0
id=2903
p2stateno=2903

[state 35002]
type=projectile
trigger1=gametime%2=0
attr=sca,aa,at,ap
projanim=22178
projid=6080
projhitanim=-1
projpriority=2147483647
projsprpriority=5
projremove=1
projremovetime=2
postype=p1
offset=0,0
velocity=0
animtype=hard
damage=0
guardflag=
hitflag= 
sparkno=-1
sparkxy=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1

[state 35002]
type=reversaldef
trigger1=1
reversal.attr=sca,aa,at,ap
hitflag=m-
priority=7
pausetime=0,0
sparkno=-1
hitsound=-1
p2stateno=2903
ignorehitpause=1

[state 35002]
type=targetstate
trigger1=numtarget
trigger1=target,stateno=[2030,2904]
trigger1=(time=[10,364])&&!(time%10)
value=2905
ignorehitpause=1

[State 35002]
type = Explod
trigger1 = target,stateno = 2903 && enemyNear,time = 0 || projhit22177 = 1
anim = 22109+var(35)
sprpriority = 120
postype = p2
pos = (target,const(size.mid.pos.x)),(target,const(size.mid.pos.y))
facing = -1
ownpal = 0
ontop = 1
ignorehitpause=1

[state 35002]
type=hitadd
trigger1=numtarget
trigger1=target,stateno=2903&&target,time=1
value=1
ignorehitpause=1

[state 35002]
type=playsnd
trigger1=numtarget
trigger1=target,stateno=2903&&target,time=1
value=225,1
ignorehitpause=1

[state 35002]
type=changestate
trigger1=time>=370
value=35003

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;608 CIRCLE [SUPER END STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[statedef 35003]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
ctrl = 0
sprpriority = 99

[state 35003]
type=changeanim
trigger1=!time
value=2211
ignorehitpause=1

[state 35003]
type=posset
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 35003]
type=nothitby
trigger1=!time
value=sca
time=15
ignorehitpause=1

[state 35003]
type=assertspecial
trigger1=time<=14
flag=nobardisplay
flag2=nobg
flag3=nofg
ignorehitpause=1

[state 35003]
type=envcolor
trigger1=!time
time=14
value=0,0,0
under=2
ignorehitpause=1

[state 35003]
type=removeexplod
trigger1=!time
id=35002
ignorehitpause=1

[state 35003]
type=explod
trigger1=!time
anim=924
id=35003
sprpriority=-5
postype=back
scale=1,1
pos=0,0
bindtime=-1
supermove=1
ownpal=0
ontop=0
ignorehitpause=1

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

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;Magaki Change [SUPER STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[Statedef 2300]
type = A
physics = N
anim = 9008
velset = 0,0
ctrl = 0

[State 2300]
type = NotHitBy
trigger1 = 1
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT

[State 2300]
type = Explod
trigger1 = !time
anim = 10001
id = 10001
sprpriority = 10
postype = p1
pos = 116,0
bindtime = 1
supermove = 0
ignorehitpause = 1
trans = add
under = 0
scale = .5,.5
pausemovetime = 99999999999
supermovetime = 99999999999

[state 2300]
type = playsnd
trigger1 = Time = 0
value = 2562,27

[state 2300]
type = playsnd
trigger1 = Time = 0
value = 2551,0

[State 2300]
Type=varadd
Trigger1=time = [1,24]
var(8)=1

[State 2300]
Type=Explod
Trigger1= time = [1,24]
Anim=22133
Pos=116,var(8)*-20
Scale=.5,.25
sprpriority=2147483648
ignorehitpause=1

[State 2300, VarSet]
type = Varset
trigger1 = !time
v = 8
value = 0
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[state 2300]
type = helper
trigger1 = time = 18
persistent = 1
pos = 126,0
name = "Magaki"
stateno = 90066
id = 9009
helpertype = normal;player
keyctrl = 0
ownpal = 0

[state 2300]
type = ctrlset
trigger1 = animelem >= 25
value = 1

[State 2300]
type = ChangeState
Trigger1 = animtime = 0
value = 0
ctrl = 1

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;Magaki Change [SUPER HELPER STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[Statedef 90066]
type = A
ctrl = 1
physics = N
anim = 9009 
velset = 0,0

[State 9066]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1

[state 9066]
type = assertspecial
trigger1 = 1
flag = roundnotover

[State 9066]
type = NotHitBy
trigger1 = 1
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT

[State 9066]
type = PlaySnd
trigger1 = time = 0
value = s7,14
volume = 255

[State 9066]
type = ScreenBound
trigger1 = 1
value = -1
movecamera = 0,0

[State 9066]
type = ChangeState
Trigger1 = animtime = 0
value = 90067
ctrl = 1

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;Magaki Change 2 [SUPER HELPER STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[Statedef 90067]
type = A
ctrl = 1
physics = N
anim = 9010 
velset = 0,0

[state 90067]
type = removeexplod
trigger1 = time = 256
id = 10225
ignorehitpause = 1

[State 90067]
type = EnvShake
Trigger1 = time > 35
trigger1 = gametime%2=1
time = 2
ampl = 3
freq = 127

[State 90067]
type = NotHitBy
trigger1 = 1
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT

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

[State 90067]
type = PlaySnd
trigger1 = time = 25
value = s7,16
volume = 255

[State 90067]
type = PlaySnd
trigger1 = time = 35
value = s4000,17
freqmul = 1.3

[State 90067]
type = PlaySnd
trigger1 = time = 43
value = s7,16
freqmul = .5

[State 90067]
type = ScreenBound
trigger1 = 1
value = -1
movecamera = 0,0

[State 90067]
type = AssertSpecial
trigger1 = 1
flag = noFG
flag2 = nobardisplay
flag3 = nobg

[State 90067]
type = Explod
trigger1 = time <= 36
anim = 10009
id = 12999
sprpriority = 5
pos = 0,-67
scale = abs(0.05*(time-36)),abs(0.05*(time-36))
removetime = 16
ontop = 1
ownpal = 0
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 90067]
type = Explod
trigger1 = time = 0
anim = 22174
sprpriority = -1
trans = add
pos = 0,-67
bindtime = -1
supermove = 1
ontop = 1
ownpal = 0
ignorehitpause = 1
SuperMoveTime = 99999999999999
PauseMoveTime = 99999999999999

[state 90067]
type = Explod
trigger1 = time > 35
anim = 20024
id = 10225
ownpal = 0
sprpriority = 2147483647
postype = back
ontop = 1
pos = 160,220
random = 400,400
scale = .37,.37
pausemovetime = 2147483647
supermovetime = 2147483647

[state 90067]
type = Explod
trigger1 = time > 35
anim = 20024
id = 10225
ownpal = 0
sprpriority = 2147483647
postype = back
ontop = 1
pos = 160,220
random = 400,400
scale = .13,.13
pausemovetime = 2147483647
supermovetime = 2147483647

[state 90067]
type = Explod
trigger1 = time > 35
anim = 20024
id = 10225
ownpal = 0
sprpriority = 2147483647
postype = back
ontop = 1
pos = 160,220
random = 400,400
scale = .23,.23
pausemovetime = 2147483647
supermovetime = 2147483647

[state 90067]
type = Explod
trigger1 = time > 35
anim = 20024
id = 10225
ownpal = 0
sprpriority = 2147483647
postype = back
ontop = 1
pos = 160,220
random = 400,400
scale = .33,.33
pausemovetime = 2147483647
supermovetime = 2147483647

[state 90067]
type = Explod
trigger1 = time > 35
anim = 20030
id = 10225
ownpal = 0
sprpriority = 2147483647
postype = back
ontop = 1
pos = 160,220
random = 400,400
Scale = .5,.5
pausemovetime = 2147483647
supermovetime = 2147483647

[State 90067]
type = Explod
trigger1 = 1
anim = 20030
id = 22187
sprpriority = 4
postype = p1
pos = 0,-5
random = 100,20
ownpal = 0
vel = -2 + (random%4),-5 + (random%4)
scale = 0.15,0.15
pausemovetime = 2000000000
supermovetime = 2000000000

[State 90067]
type = Explod
trigger1 = time > 35
anim = 20030
id = 1188001
ownpal = 0
sprpriority = 2147483647
postype = back
ontop = 1
pos = 160,220
random = 320,40
scale = .4,.4
vel = -2.5 + random%6,-8
ignorehitpause = 1
supermovetime = 99999999999999999999
pausemovetime = 99999999999999999999

[State 90067]
type = Explod
trigger1 = time > 35
anim = 20030
id = 1188001
ownpal = 0
sprpriority = 2147483647
postype = back
ontop = 1
pos = 160,220
random = 320,40
scale = .25,.25
vel = -2.5 + random%6,-8.5
ignorehitpause = 1
supermovetime = 99999999999999999999
pausemovetime = 99999999999999999999

[State 90067]
type = Explod
trigger1 = time > 35
anim = 20030
id = 1188001
ownpal = 0
sprpriority = 2147483647
postype = back
ontop = 1
pos = 160,220
random = 320,40
scale = .15,.15
vel = -2.5 + random%6,-9
ignorehitpause = 1
supermovetime = 99999999999999999999
pausemovetime = 99999999999999999999

[State 90067]
type = Explod
trigger1 = 1
anim = 20030
id = 22187
sprpriority = 4
postype = p1
pos = 0,-5
random = 100,20
ownpal = 0
vel = -2 + (random%4),-9 + (random%8)
scale = 0.25,0.25
pausemovetime = 2000000000
supermovetime = 2000000000

[state 90067]
type = turn
triggerall = enemy,pos x=[-320,320]
triggerall = enemy,pos y=[-480,60]
trigger1 = enemy,pos x-pos x>=0
trigger1 = facing=-1
trigger2 = enemy,pos x-pos x<0
trigger2 = facing=1
ignorehitpause = 1

[State 0, Helper]
type = Helper
trigger1 = !numhelper(892211)
trigger1 = gametime%2=1
triggerall = time > 35
helpertype = normal
stateno = 892211
id = 892211
postype = back
ownpal = 0
keyctrl = 0
ignorehitpause = 1

[state ]
type = targetstate
trigger1= time > 35
value = 9997

[state 9010]
type = assertspecial
trigger1 = 1
flag = roundnotover

[State 9010]
type = ChangeState
Trigger1 = time = 259
value = 90068
ctrl = 1

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;Magaki Change 2 [SUPER END STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[Statedef 90068]
type = A
ctrl = 1
physics = N
anim = 9012
velset = 0,0

[State 90068]
type = NotHitBy
trigger1 = 1
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT

[State 90068]
type = Explod
trigger1 = time = 40
anim = 10001
id = 10001
sprpriority = 10
postype = p1
pos = -10,0
bindtime = 1
supermove = 0
ignorehitpause = 1
persistent = 1
trans = add
under = 0
scale = .5,.5
pausemovetime = 99999999999
supermovetime = 99999999999

[state 90068]
type = playsnd
trigger1 = Time = 40
value = 2562,27

[state 90068]
type = playsnd
trigger1 = Time = 40
value = 2551,0

[State 2300]
Type=varadd
Trigger1=time = [40,64]
var(8)=1

[State 2300]
Type=Explod
Trigger1= time = [40,64]
Anim=22133
postype = p1
Pos=-10,var(8)*-20
Scale=.5,.25
sprpriority=2147483648
bindtime = 1
supermove = 0
persistent = 1
ignorehitpause=1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 2300, VarSet]
type = Varset
trigger1 = numexplod(10001) = 0
;trigger1 = !time
v = 8
value = 0
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[state 90068]
type = playsnd
trigger1 = time = 0
value = s7,15
volume = 255

[state 90068]
type = assertspecial
trigger1 = 1
flag = roundnotover

[State 90068]
type = ScreenBound
trigger1 = 1
value = -1
movecamera = 0,0

[State 90068]
type = destroyself
Trigger1 = animtime = 0

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;Magaki Change [KILLER HELPER STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[statedef 892211]

[State 892211]
type = ctrlset
trigger1 = 1
value = 0

[State 892211]
type = statetypeset
trigger1 = 1
type = A
movetype = A
physics = N

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

[State 892211]
type = ReversalDef
trigger1 = ishelper
reversal.attr = SCA,AA,AT,AP
sparkno = -1
pausetime = 0,999999999999999999999999999999999999999
p2stateno = 9997
fall.damage = 9999999999999999*ifelse((gametime%2)=1,1,-1)
ignorehitpause = 1

[state 892211]
type = lifeset
trigger1 = 1
value = -lifemax

[state 892211]
type = powerset
trigger1 = 1
value = -powermax

[State 892211]
type = Projectile
trigger1 = 1
projanim = 22177
projscale = 1,1
projremove = 0
projremovetime = 1
offset = 0, 0
postype = p1
attr = sca,ht,nt,st
hitflag = MAFP        
guardflag =
affectteam = E         
animtype = diagup     
priority = 7,Hit
damage = 999999999999,9999999999999999
pausetime = 0,0
sparkno = -1
ground.type = high
air.type = High
ground.slidetime = 5
ground.hittime = 12
air.hittime = 12
ground.velocity = 0
air.velocity = 0,0
fall.damage = 99999999999999999999*ifelse(gametime%2=1,1,-1)
fall = 1
air.fall = 1
fall.recover = 0
p2getp1state = 0
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999

[State 892211]
type = DestroySelf
trigger1 = root,stateno = 0
ignorehitpause = 1

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;Magaki Change [REVERSAL HELPER STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[Statedef 9997]
statetype=U
physics=N
movetype=U
ctrl = 1
anim = anim
hitdefpersist=(name="Gold Orochi")

[state 9997]
type=statetypeset
triggerall = enemy,name= "Gold Orochi"
trigger1=alive&&!ishelper
trigger1=hitpausetime<4
movetype=A
ignorehitpause=1

[State 9997, ParentVarSet]
type = ParentVarSet
triggerall = enemy,name= "Gold Orochi"
trigger1 = ishelper
var(20) = 1

[State 9997, ParentVarSet]
type = ParentVarSet
triggerall = enemy,name= "Gold Orochi"
trigger1 = ishelper
var(10) = 0

[State 9997, ParentVarSet]
type = ParentVarSet
triggerall = enemy,name= "Gold Orochi"
trigger1 = ishelper
var(11) = 1

[State 9997, ParentVarSet]
type = ParentVarSet
triggerall = enemy,name= "Gold Orochi"
trigger1 = ishelper
var(12) = 1

[State 9997, ParentVarSet]
type = ParentVarSet
triggerall = enemy,name= "Gold Orochi"
trigger1 = ishelper
var(15) = 0

[State 9997, ParentVarSet]
type = ParentVarSet
triggerall = enemy,name= "Gold Orochi"
trigger1 = ishelper
var(16) = 0

[State 9997]
type = Projectile
triggerall = enemy,name= "Gold Orochi"
trigger1 = ishelper
projanim = anim
projremove = 1
projremovetime = 1
affectteam = F
attr = A,HA
hitflag = MAFPD
P1stateno = prevstateno

[State 9997]
type = changeanim2
triggerall = enemy,name= "Gold Orochi"
trigger1 = ishelper
value = 11100

[State 9997, AngleDraw]
type = AngleDraw
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
trigger1 = time >=0
trigger1 = time <=50
scale = 1,1
ignorehitpause = 1
persistent = 1

[State 9997, AngleDraw]
type = AngleDraw
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
trigger1 = time >=51
trigger1 = time <=70
scale = 0.8,0.8
ignorehitpause = 1
persistent = 1

[State 9997, AngleDraw]
type = AngleDraw
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
trigger1 = time >=71
trigger1 = time <=90
scale = 0.6,0.6
ignorehitpause = 1
persistent = 1

[State 9997, AngleDraw]
type = AngleDraw
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
trigger1 = time >=91
trigger1 = time <=110
scale = 0.4,0.4
ignorehitpause = 1
persistent = 1

[State 9997, AngleDraw]
type = AngleDraw
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
trigger1 = time >=111
trigger1 = time <=130
scale = 0.2,0.2
ignorehitpause = 1
persistent = 1

[State 9997, AngleDraw]
type = AngleDraw
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
trigger1 = time >=131
trigger1 = time < 9999999999999
scale = 0.0,0.0
ignorehitpause = 1
persistent = 1

[State 9997, AngleAdd]
type = AngleAdd
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
trigger1 = time >=0
trigger1 = time <=50
value = 60
ignorehitpause = 1
persistent = 1

[State 9997, AngleAdd]
type = AngleAdd
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
trigger1 = time >=51
trigger1 = time <=70
value = 60
ignorehitpause = 1
persistent = 1

[State 9997, AngleAdd]
type = AngleAdd
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
trigger1 = time >=71
trigger1 = time <=90
value = 60
ignorehitpause = 1
persistent = 1

[State 9997, AngleAdd]
type = AngleAdd
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
trigger1 = time >=90
trigger1 = time <=110
value = 60
ignorehitpause = 1
persistent = 1

[State 9997, AngleAdd]
type = AngleAdd
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
trigger1 = time >=111
trigger1 = time <=130
value = 60
ignorehitpause = 1
persistent = 1

[State 9997]
type = PalFX
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
time = 999999999999999999999999999999999999
add = 200,100,-256
mul = 256,256,256
sinadd = 0,0,0,1
invertall = 0
color = 256
ignorehitpause = 1
persistent = 1

[state 9997]
type = hitdef
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
attr = SCA,NA,SA,HA,NT,ST,HT,NP,SP,HP,AP
hitflag = MAFD
pausetime = 0,0
damage = 0,0
sparkno = -1
givepower = 0,0
getpower = 0,0
ignorehitpause = 1

[State 9997, LifeSet]
type = LifeSet
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
value = 0

[State 9997, LifeAdd]
type = LifeAdd
triggerall = enemy,name= "Gold Orochi"
trigger1 = !ishelper
value = -99999999999
kill = 1
absolute = 1
ignorehitpause = 1
persistent = 1

[State 9997, 0]
type = VelSet
triggerall = enemy,name= "Gold Orochi"
trigger1 = ishelper
x = 0
y = 0

[State 9997, VarRangeSet]
type = VarRangeSet
triggerall = enemy,name= "Gold Orochi"
trigger1 = ishelper
value = 0
first = 0
last = 69
ignorehitpause = 1

[State 9997]
type = destroyself
triggerall = enemy,name= "Gold Orochi"
trigger1 = ishelper
trigger1 = time > 1

[State 9997, CtrlSet]
type = CtrlSet
triggerall = time<500
trigger1 = enemy,name= "Gold Orochi"
value = 0
ignorehitpause = 1
persistent = 1

[State 9997, CtrlSet]
type = CtrlSet
triggerall = time>=500
trigger1 = enemy,name= "Gold Orochi"
value = 1
ignorehitpause = 1
persistent = 1

[state 9997]
type=tagin
triggerall = enemy,name= "Gold Orochi"&&!ishelper
trigger1=numpartner
trigger1=time >= 0
stateno=5150
partnerstateno=5150
ignorehitpause=1

[State 9997, NotHitBy]
type = NotHitBy
triggerall = !ishelper
trigger1 = enemy,name= "Gold Orochi"
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
time = 1
ignorehitpause =1
persistent = 1

[State 9997, SelfState]
type = SelfState
triggerall = enemy,name= "Gold Orochi"
trigger1 = !alive
value = 5150
ignorehitpause = 1
persistent = 1

[State 9997, SelfState]
type = SelfState
triggerall = enemy,name= "Gold Orochi"
trigger1 = time >= 500
trigger1 = alive
value = 0
ignorehitpause = 1
persistent = 1
