;---------------------------------------------------------------------------
; Electric Cage
[Statedef 3000]
type    = S
movetype= A
physics = S
juggle  = 0
poweradd= 0
ctrl = 0
velset = 0,0
anim = 3000

[State 0, PosSet]
type = PosSet
trigger1 = !time
y = 0

[State 0, VarSet]
type = VarSet
trigger1 = time = 0
v = 45   ;fv = 10
value = 1

[State 0, AfterImage]
type = AfterImage
triggerall=anim=3000
trigger1 = animelem = 4
time = 2
length = 15
framegap = 4
trans = add1 ;"none","add1","sub"
PalContrast = 150,50,70

[State 0, NotHitBy]
type = NotHitBy
triggerall=anim=3000
trigger1 = time = [10,65]
value = SCA
time = 1

[State 0, NotHitBy]
type = NotHitBy
trigger1 = anim=3001
value = SCA

[State 0, SuperPause]
type = SuperPause
triggerall=anim=3000
trigger1 = AnimElem = 4
time = 50
anim = -1
sound = -1,0
pos = 9999999999999999,9999999999
movetime = 50
darken = 1
p2defmul = 1
poweradd = -1000
unhittable = 1

[State 3000, carga]
type=helper
triggerall=anim=3000
trigger1=AnimElem=4
helpertype=normal
stateno=7005
ID=7005
name="Carga"
postype=p1
pos = 3,-78
ownpal=1
persistent=0
supermovetime=9999

[State 3000, carga]
type=helper
triggerall = numhelper(7005)=0
trigger1=time >= 15
helpertype=normal
stateno=7021
ID=7021
name="hyperbg"
postype=p1
pos = 0,0
ownpal=1
persistent=0
supermovetime=9999
ignorehitpause = 1

[State 0, Helper]
type = Helper
triggerall=anim=3000
triggerall = NumHelper(3000)=0
trigger1 = AnimElem=5
helpertype = normal ;player
name = "Electric Cage"
ID = 3000
stateno = 3090
pos = 75,-75
postype = p1    ;p2,front,back,left,right
keyctrl = 0
ownpal = 1

[State 0, Width]
type = Width
trigger1 = Anim = 3000
trigger1 = AnimElemTime(3)>=0
value = 30,0

[State 0, ChangeAnim]
type = ChangeAnim
triggerall = Anim != 3001&&NumHelper(3000)
trigger1 = Helper(3000),movehit
trigger1 = AnimElemTime(6)>=0
value = 3001

[State 0, ChangeAnim]
type = ChangeAnim
triggerall = Anim != 3002&&!NumHelper(3000)
trigger1 = AnimElemTime(6)>=0
value = 3002

[State 0, PlaySnd]
type = PlaySnd
triggerall = anim = 3000
trigger1 = AnimElem = 5
value = S3,2
volume = 0
channel = 5

[State 0, PlaySnd]
type = PlaySnd
triggerall = anim = 3001
trigger1 = AnimElem = 2
value = S3,6
volume = 0
channel = 5

[State 220, 5]
type = ChangeState
triggerall = Anim = 3002&&NumHelper(3000)=0
trigger1 = AnimElemTime(6)>=0
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; Photon Array
[Statedef 3100]
type    = S
movetype= A
physics = S
juggle  = 0
poweradd= 0
ctrl = 0
velset = 0,0
anim = 3100

[State 0, PosSet]
type = PosSet
trigger1 = !time
y = 0

[State 0, VarSet]
type = VarSet
trigger1 = time = 0
v = 45   ;fv = 10
value = 1

[State 0, AfterImage]
type = AfterImage
trigger1 = animelem = 8
time = 2
length = 15
framegap = 4
trans = add1 ;"none","add1","sub"
PalContrast = 150,50,70

[State 0, NotHitBy]
type = NotHitBy
trigger1 = time = [11,66]
value = SCA
time = 1

[State 0, SuperPause]
type = SuperPause
trigger1 = AnimElem = 8
time = 50
anim = -1
sound = -1,0
pos = 9999999999999999,9999999999
movetime = 50
darken = 1
p2defmul = 1
poweradd = -1000
unhittable = 1

[State 3000, carga]
type=helper
trigger1=AnimElem=8
helpertype=normal
stateno=7005
ID=7005
name="Carga"
postype=p1
pos = 60,-70
ownpal=1
persistent=0
supermovetime=9999

[State 3000, carga]
type=helper
trigger1=AnimElem=8
helpertype=normal
stateno=7105
ID=7005
name="2ndCarga"
postype=p1
pos = 8,-80
ownpal=1
persistent=0
supermovetime=9999

[State 3000, carga]
type=helper
triggerall = numhelper(7005)=0
trigger1=time >= 25
helpertype=normal
stateno=7021
ID=7021
name="hyperbg"
postype=p1
pos = 0,0
ownpal=1
persistent=0
supermovetime=9999
ignorehitpause = 1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem=6
value = S0,5
volume = 0
channel = -1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem=9
value = S3,8
volume = 0
channel = 5

[State 0, Width]
type = Width
trigger1 = time = [11,172]
value = 47,0

[State 0, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 9
trigger2 = AnimElem = 12
trigger3 = AnimElem = 15
trigger4 = AnimElem = 18
trigger5 = AnimElem = 21
value = S10,7
volume = 0
channel = -1

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 9
trigger2 = AnimElem = 12
trigger3 = AnimElem = 15
trigger4 = AnimElem = 18
trigger5 = AnimElem = 21
helpertype = normal ;player
name = "Photon Shot 2"
ID = 3100
stateno = 3111
pos = floor(0*const(size.xscale)),floor(-125*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 9
trigger2 = AnimElem = 12
trigger3 = AnimElem = 15
trigger4 = AnimElem = 18
trigger5 = AnimElem = 21
helpertype = normal ;player
name = "Photon Shot 3"
ID = 3100
stateno = 3112
pos = floor(-25*const(size.xscale)),floor(-120*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 9
trigger2 = AnimElem = 12
trigger3 = AnimElem = 15
trigger4 = AnimElem = 18
trigger5 = AnimElem = 21
helpertype = normal ;player
name = "Photon Shot 4"
ID = 3100
stateno = 3113
pos = floor(-45*const(size.xscale)),floor(-110*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 9
trigger2 = AnimElem = 12
trigger3 = AnimElem = 15
trigger4 = AnimElem = 18
trigger5 = AnimElem = 21
helpertype = normal ;player
name = "Photon Shot 5"
ID = 3100
stateno = 3114
pos = floor(-55*const(size.xscale)),floor(-95*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 9
trigger2 = AnimElem = 12
trigger3 = AnimElem = 15
trigger4 = AnimElem = 18
trigger5 = AnimElem = 21
helpertype = normal ;player
name = "Photon Shot 7"
ID = 3100
stateno = 3116
pos = floor(-55*const(size.xscale)),floor(-75*const(size.yscale));floor(-45*const(size.xscale)),floor(-65*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 9
trigger2 = AnimElem = 12
trigger3 = AnimElem = 15
trigger4 = AnimElem = 18
trigger5 = AnimElem = 21
helpertype = normal ;player
name = "Photon Shot 11"
ID = 3100
stateno = 3123
pos = floor(105*const(size.xscale)),floor(-100*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 9
trigger2 = AnimElem = 12
trigger3 = AnimElem = 15
trigger4 = AnimElem = 18
trigger5 = AnimElem = 21
helpertype = normal ;player
name = "Photon Shot 12"
ID = 3100
stateno = 3124
pos = floor(120*const(size.xscale)),floor(-85*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 9
trigger2 = AnimElem = 12
trigger3 = AnimElem = 15
trigger4 = AnimElem = 18
trigger5 = AnimElem = 21
helpertype = normal ;player
name = "Photon Shot 14"
ID = 3100
stateno = 3126
pos = floor(125*const(size.xscale)),floor(-70*const(size.yscale));floor(-45*const(size.xscale)),floor(-65*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 9
trigger2 = AnimElem = 12
trigger3 = AnimElem = 15
trigger4 = AnimElem = 18
trigger5 = AnimElem = 21
helpertype = normal ;player
name = "Photon Shot 18"
ID = 3100
stateno = 3133
pos = floor(115*const(size.xscale)),floor(-35*const(size.yscale));floor(-45*const(size.xscale)),floor(-65*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 9
trigger2 = AnimElem = 12
trigger3 = AnimElem = 15
trigger4 = AnimElem = 18
trigger5 = AnimElem = 21
helpertype = normal ;player
name = "Photon Shot 19"
ID = 3100
stateno = 3134
pos = floor(120*const(size.xscale)),floor(-50*const(size.yscale));floor(-45*const(size.xscale)),floor(-65*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, VarSet]
type = VarSet
trigger1 = AnimElemTime(44)>=0
v = 45   ;fv = 10
value = 0

[State 220, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; Photon Array (Air)
[StateDef 3105]
type = A
movetype= A
physics = N
juggle  = 0
velset = 0,0
ctrl = 0
anim = 3105
poweradd = 0
sprpriority = 2

[State 0, VelSet]
type = VelSet
trigger1 = Pos Y >= 0
trigger1 = Vel Y >= 0
y = 0
[State 0, VelSet]
type = VelSet
trigger1 = var(19)=1
x = 0
y = 0

[State 0, StateTypeSet]
type = StateTypeSet
trigger1 = var(19)=1
physics = N

[State 0, StateTypeSet]
type = StateTypeSet
trigger1 = var(19)=0
trigger1 = animelemtime(29)>=0
statetype = A       ;S,A,C,L
movetype = I        ;I,A,H
physics = A         ;A,C,S,N

[State 0, ChangeState]
type = ChangeState
trigger1 = var(19)=1
trigger1 = animelemtime(31)>=0
value = 1301
ctrl = 1

[State 0, VarSet]
type = VarSet
trigger1 = time = 0
v = 45   ;fv = 10
value = 1

[State 0, AfterImage]
type = AfterImage
trigger1 = animelem = 8
time = 2
length = 15
framegap = 4
trans = add1 ;"none","add1","sub"
PalContrast = 150,50,70

[State 0, NotHitBy]
type = NotHitBy
trigger1 = time = [6,61]
value = SCA
time = 1

[State 0, SuperPause]
type = SuperPause
trigger1 = AnimElem = 4
time = 50
anim = -1
sound = -1,0
pos = 9999999999999999,9999999999
movetime = 50
darken = 1
p2defmul = 1
poweradd = -1000
unhittable = 1

[State 3000, carga]
type=helper
trigger1=AnimElem=4
helpertype=normal
stateno=7005
ID=7005
name="Carga"
postype=p1
pos = 22,-57
ownpal=1
persistent=0
supermovetime=9999

[State 3000, carga]
type=helper
triggerall = numhelper(7005)=0
trigger1=time >= 10
helpertype=normal
stateno=7021
ID=7021
name="hyperbg"
postype=p1
pos = 0,0
ownpal=1
persistent=0
supermovetime=9999
ignorehitpause = 1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem=2
value = S0,5
volume = 0
channel = -1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem=5
value = S3,8
volume = 0
channel = 5

[State 0, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 5
trigger2 = AnimElem = 8
trigger3 = AnimElem = 11
trigger4 = AnimElem = 14
trigger5 = AnimElem = 17
value = S10,7
volume = 0
channel = -1

[State 0, Width]
type = Width
trigger1 = time = [6,127]
value = 25,0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 5
trigger2 = AnimElem = 8
trigger3 = AnimElem = 11
trigger4 = AnimElem = 14
trigger5 = AnimElem = 17
helpertype = normal ;player
name = "Photon Shot 20"
ID = 3105
stateno = 3135
pos = floor(75*const(size.xscale)),floor(-40*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 5
trigger2 = AnimElem = 8
trigger3 = AnimElem = 11
trigger4 = AnimElem = 14
trigger5 = AnimElem = 17
helpertype = normal ;player
name = "Photon Shot 19"
ID = 3105
stateno = 3134
pos = floor(65*const(size.xscale)),floor(-25*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 5
trigger2 = AnimElem = 8
trigger3 = AnimElem = 11
trigger4 = AnimElem = 14
trigger5 = AnimElem = 17
helpertype = normal ;player
name = "Photon Shot 18"
ID = 3105
stateno = 3133
pos = floor(55*const(size.xscale)),floor(-15*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 5
trigger2 = AnimElem = 8
trigger3 = AnimElem = 11
trigger4 = AnimElem = 14
trigger5 = AnimElem = 17
helpertype = normal ;player
name = "Photon Shot 17"
ID = 3105
stateno = 3132
pos = floor(45*const(size.xscale)),floor(-5*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 5
trigger2 = AnimElem = 8
trigger3 = AnimElem = 11
trigger4 = AnimElem = 14
trigger5 = AnimElem = 17
helpertype = normal ;player
name = "Photon Shot 16"
ID = 3105
stateno = 3131
pos = floor(30*const(size.xscale)),floor(5*const(size.yscale))
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 0, VarSet]
type = VarSet
trigger1 = AnimElemTime(31)>=0
v = 45    ;fv = 10
value = 0

[State 0, CtrlSet]
type = CtrlSet
trigger1 = AnimElemTime(31)=0
value = 1

;---------------------------------------------------------------------------
; Sphere Flame
[Statedef 3200]
type    = S
movetype= A
physics = S
juggle  = 0
poweradd= 0
ctrl = 0
velset = 0,0
anim = 3200

[State 0, PosSet]
type = PosSet
trigger1 = !time
y = 0

[State 0, VarSet]
type = VarSet
trigger1 = time = 0
v = 45   ;fv = 10
value = 1

[State 0, AfterImage]
type = AfterImage
triggerall=anim=3100
trigger1 = animelem = 4
time = 2
length = 15
framegap = 4
trans = add1 ;"none","add1","sub"
PalContrast = 150,50,70

[State 0, NotHitBy]
type = NotHitBy
trigger1 = time <= 55
value = SCA
time = 1

[State 0, SuperPause]
type = SuperPause
trigger1 = time = 1
time = 50
anim = -1
sound = -1,0
pos = 9999999999999999,9999999999
movetime = 50
darken = 1
p2defmul = 1
poweradd = -1000
unhittable = 1

[State 3000, carga]
type=helper
trigger1=time=1
helpertype=normal
stateno=7005
ID=7005
name="Carga"
postype=p1
pos = 14,-82
ownpal=1
persistent=0
supermovetime=9999

[State 3000, carga]
type=helper
triggerall = numhelper(7005)=0
trigger1=time >= 10
helpertype=normal
stateno=7021
ID=7021
name="hyperbg"
postype=p1
pos = 0,0
ownpal=1
persistent=0
supermovetime=9999
ignorehitpause = 1

[State 0, Helper]
type = Helper
triggerall = NumHelper(3200)=0
trigger1 = AnimElem=28
helpertype = normal ;player
name = "Sphere Flame"
ID = 3200
stateno = 3290
pos = 73,-176
postype = p1    ;p2,front,back,left,right
keyctrl = 0
ownpal = 1

[State 0, PlaySnd]
type = PlaySnd
triggerall = anim = 3200
trigger1 = AnimElem = 28
value = S3,2
volume = 0
channel = 5

[State 0, Width]
type = Width
trigger1 = Anim = 3200
trigger1 = AnimElemTime(26)>=0
value = 25,0

[State 0, ChangeAnim]
type = ChangeAnim
triggerall = numhelper(3200)=0
trigger1 = Anim != 3201
trigger1 = AnimElemTime(29)>=0
value = 3201

[State 220, 5]
type = ChangeState
triggerall = NumHelper(3200)=0
trigger1 = anim = 3201
trigger1 = AnimTime = 0
value = 0
ctrl = 1
