;======================
;---------|Supers|--------------
;=======================
;Energy Shield start
[Statedef 2010]
type 		= S
movetype		= A
physics		= S
juggle	    	= 1
anim    		= 2010
velset		= 0,0
ctrl		= 0
poweradd		= -1000
facep2		= 0
hitdefpersist	= 0
movehitpersist	= 0
hitcountpersist	= 0
sprpriority	= 2

[State 0: PosSet]
type                    = PosSet
trigger1                = !Time
y                       = 0

;---------------

[State 0, ]
type                    = PlaySnd
trigger1                = !time
value                   = 900, 0

[State 0: BGPalFX]
type                    = BGPalFX
trigger1                = !Time
time                    = 50
add                     = -100,-100,-100
mul                     = 256,256,256


[State 0:       Pause]
type                    = Pause
trigger1                = !Time
time                    = 50
movetime                = 50

[State 0:       EnvShake]
type 			        = EnvShake
Triggerall              = Time < 50
trigger1 		        = gametime%4
time 			        = 5
freq 			        = 70
ampl 			        = 7

[State 0, ]
type                    = PlaySnd
trigger1                = !time
value                   = 3001, 0






[State 0, Explod]
type = Explod
trigger1 = AnimElem = 1
anim = 8400
ID = 8400
pos = -17,-66
postype = p1
bindtime = -1
removetime = -2
supermovetime = 999
scale = 1,1
ontop = 1
shadow = 0,0,0
ownpal = 1
removeongethit = 1
ignorehitpause = 1
pausemovetime = 999

[State 0:       RemoveExplod]
type                    = RemoveExplod
trigger1                = Time = 50
ID                      = 6000
;---------------



[State 0:       PlaySND]
type                    = PlaySnd
trigger1                = !Time
value                   = 210, 7
channel		            = 21
Loop                    = 1
Persistent              = 0

[State 0:       Screen Flash]
type                    = EnvColor
trigger1                = !Time
value                   = 255,255,255
time                    = 2
under                   = 0

[State 0:       GroundWaves]
type                    = Explod
trigger1                = !Time
anim                    = 8110
ID                      = 7011
pos                     = 0,5
postype                 = p1
scale                   = 1, 1
removetime              = -1
bindtime                = -1
sprpriority             = 4
pausemovetime           = 999
ownpal                  = 1
removeongethit          = 1


[State 0:       Elec]
type                    = Explod
trigger1                = !Time
anim                    = 7040
ID                      = 7011
pos                     = -5,10
bindtime                = -1
scale                   = 1, 1
removetime              = -1
bindtime                = -1
pausemovetime           = 999
sprpriority             = 4
ownpal                  = 1
removeongethit          = 1

[State 0: Helper]
type                    = Helper
trigger1                = time = 0
helpertype              = normal
ID                      = 8000
pos                     = ifelse(random>500,3,ifelse(random>500,-5,15)),0
postype                 = p1
facing                  = 1
stateno                 = 8000
ownpal                  = 1
size.xscale             = .8
size.yscale             = 1.0
supermovetime = 999
pausemovetime = 999


[State 0: 	PalFX]
type			        = PalFX
trigger1		        = GameTime%45 = 0
time			        = 20
add			            = 85,85,85
mul			            = 256,256,256
sinadd		            = 85,85,85,25
invertall		        = 0
color			        = 256





;---------------



[State 0, ]
type                    = ChangeState
trigger1                = !AnimTime
value                   = 2011
ctrl                    = 0



;---------------------------------------------------------------------------
;Energy Shield
[Statedef 2011]
type 		        = S
movetype		        = I
physics		        = S
juggle	    	        = 1
anim    		        = 2011
velset		        = 0,0
ctrl		        = 0
poweradd		        = 0
facep2		        = 0
hitdefpersist	        = 0
movehitpersist	        = 0
hitcountpersist	        = 0
sprpriority	        = 2

;---------------

[State 0: RemoveExplod]
type                    = RemoveExplod
trigger1                = !Time
ID                      = 7036

[State 0:       EnvShake]
type 			        = EnvShake
Triggerall              = AnimElem = 1, > 0 && AnimElem = 2, < 0
trigger1 		        = gametime%4
time 			        = 5
freq 			        = 70
ampl 			        = 7

[State 0: 	BGPalFX]
type			        = BGPalFX
trigger1                = !Time
time			        = 100
add			            = 0,0,0
mul			            = 154,154,154
sinadd		            = 85,85,85,25
invertall		        = 0
color			        = 256

;---------------

[State 0:       PlaySND]
type                    = PlaySnd
trigger1                = !Time
value                   = 3000, 1
channel	                = -1

[State 0:       PlaySND]
type                    = PlaySnd
trigger1                = !Time
value                   = 250, 2
channel	                = -1

;---------------

[State 0: Helper]
type                    = Helper
trigger1                = !Time
helpertype              = normal
name                    = "Energy Shield"
ID                      = 8330
pos                     = 0,-50
stateno                 = 8331
ownpal                  = 1
;size.xscale             = 
;size.yscale             = 

;---------------



[State 0:     PlaySND]
type                    = PlaySnd
trigger1                = AnimElem = 2
value                   = 700, 0
channel	                = -1

[State 0:       Screen Flash]
type                    = EnvColor
trigger1                = AnimElem = 2
value                   = 255,255,255
time                    = 2
under                   = 0

[State 0: RemoveExplod]
type                    = RemoveExplod
trigger1                = AnimElem = 2
ID                      = 7011

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

;---------------------------------------------------------------------------
; Shield End
[Statedef 2012]
type                    = S
movetype                = I
physics                 = N
anim                    = 2012
velset                  = 0,0
ctrl                    = 0
poweradd                = 0
juggle                  = 0
facep2                  = 0
hitdefpersist           = 0
movehitpersist          = 0
hitcountpersist         = 0
sprpriority             = 1
;---------------

[State 0: RemoveExplod]
type                    = RemoveExplod
trigger1                = !Time
ID                      = 7011

[State 0: RemoveExplod]
type                    = RemoveExplod
trigger1                = !Time
ID                      = 7036

[State 0: RemoveExplod]
type                    = RemoveExplod
trigger1                = !Time
ID                      = 7012

[State 0:     PlaySND]
type                    = PlaySnd
trigger1                = !Time
value                   = 700, 0
channel	                = -1

[State 0:       Screen Flash]
type                    = EnvColor
trigger1                = !Time
value                   = 255,255,255
time                    = 2
under                   = 0

[State 0:     End]
type                    = ChangeState
trigger1                = !AnimTime
value                   = 0
ctrl                    = 1

;---------------------------------------------------------------------------


;Makankosappo Attempt
[Statedef 2020]
type 		= S
movetype		= A
physics		= S
juggle	    	= 1
anim    		= 2020
velset		= 0,0
ctrl	          = 0
poweradd		= -2000
facep2		        = 0
hitdefpersist	        = 0
movehitpersist	        = 0
hitcountpersist	        = 0
sprpriority	        = 2

[State 0: PosSet]
type                    = PosSet
trigger1                = !Time
y                       = 0

;---------------

[State 0, ]
type                    = PlaySnd
trigger1                = !time
value                   = 3001, 0

[State 0, BGPalFX]
type = BGPalFX
trigger1 = time < 50
time = 1
add = 256-floor((time*4.25)),256-floor((time*4.25)),256-floor((time*4.25))
mul = 256,256,256-floor((time*4.25))
color = 256-floor((time*4.25))




[State 0:       EnvShake]
type 			        = EnvShake
Triggerall              = Time > 0
trigger1 		        = gametime%4
time 			        = 5
freq 			        = 70
ampl 			        = 7


[State 0, Explod]
type = Explod
trigger1 = AnimElem = 1
anim = 8400
ID = 8400
pos = -17,-66
postype = p1
bindtime = -1
removetime = -2
supermovetime = 999
scale = 1,1
ontop = 1
shadow = 0,0,0
ownpal = 1
removeongethit = 1
ignorehitpause = 1

[State 0, Helper]
type = Helper
trigger1   = animelem = 2
helpertype = normal ;player
name = "flamesup"
ID = 8303
stateno = 8020
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 999
pausemovetime = 999
size.xscale = 1.2
size.yscale = 1.2


[State 0:       PlaySND]
type                    = PlaySnd
trigger1                = AnimElemtime(1) = 47
value                   = 700, 0
channel	                = -1

[State 0:       PlaySND]
type                    = PlaySnd
trigger1                = AnimElem = 2
value                   = 700, 8
channel		            = 21
Loop                    = 1
Persistent              = 0



[State 0, Explod]
type = Explod
trigger1 = (time%15)=0
anim = 8140
ID =   8140
pos = 0,10
facing = -1+(random%2)*2
scale = 1, 1
postype = p1
bindtime = 1
sprpriority = -1
ownpal = 1
removetime = -2
supermovetime = 999
pausemovetime = 999
ontop = 0

[State 0, Explod]
type = Explod
trigger1 = (time%20)=0
anim = 8141
ID =   8141
pos = 0,10
facing = -1+(random%2)*2
scale = 1,1
postype = p1
bindtime = 1
sprpriority = 4
ownpal = 1
removetime = -2
supermovetime = 999
pausemovetime = 999
ontop = 0

[State 0, SuperPause]
type = SuperPause
trigger1 = AnimElem = 1
time = 50
anim = -1
sound = -1
movetime = 50
darken = 0

[State 0, Helper]
type = Helper
trigger1 = AnimElem = 1
helpertype = normal ;player
name = "Shockwave"
ID = 8200
stateno = 8200
pos = -17,-66
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 999
pausemovetime = 999

[State 0:       Elec]
type                    = Explod
trigger1                = AnimElem = 2
anim                    = 7040
ID                      = 7011
pos                     = -5,10
bindtime                = -1
scale                   = 1, 1
removetime              = -1
bindtime                = -1
pausemovetime           = 999
sprpriority             = 4
ownpal                  = 1
removeongethit          = 1




[State 0:       Big Dust Right]
type                    = Explod
trigger1                = AnimElem = 2
anim                    = 7014
ID                      = 7011
pos                     = -0,10
removetime              = -1
bindtime                = -1
pausemovetime           = 999
sprpriority             = 3
ownpal                  = 1
removeongethit          = 1

[State 0:       Big Dust Left]
type                    = Explod
trigger1                = AnimElem = 2
anim                    = 7014
ID                      = 7011
facing                  = -1
pos                     = 5,10
removetime              = -1
bindtime                = -1
pausemovetime           = 999
sprpriority             = 3
ownpal                  = 1
removeongethit          = 1

[State 0:       Aura]
type                    = Explod
trigger1                = AnimElem = 2
anim                    = 7036
ID                      = 7011
pos                     = 0,0
scale                   = .5, .6
removetime              = -1
bindtime                = -1
pausemovetime           = 999
sprpriority             = -1
ownpal                  = 1
removeongethit          = 1

;---------------

[State 0: HitDef]
type                    = HitDef
trigger1                = !Time
attr                    = S, HA
animtype                = Heavy
guardflag               = MA
hitflag                 = MA
pausetime               = 20, 20
sparkno                 = S7002
guard.sparkno           = S7008
sparkxy                 = 0, -60
hitsound                = S300, 2
guardsound              = S400, 0
p2facing                = 1
sprpriority             = -1
p1stateno               = 2021
ground.type             = High
ground.slidetime        = 12
ground.hittime          = 12
ground.velocity         = -3, -18
airguard.velocity       = -3, -5
air.type                = High
air.velocity            = -3, -18
air.hittime             = 22
getpower                = 0
givepower		        = 0
yaccel		            = 0.5
fall                    = 1
fall.recover            = 0

;---------------

[State 0, ]
type                    = ChangeState
trigger1                = Time = 150
value                   = 2023
ctrl                    = 0

;---------------------------------------------------------------------------
;Makankosappo Charge
[Statedef 2021]
type 		= S
movetype		= I
physics		= S
juggle	    	= 1
anim    		= 2021
velset		= 0,0
ctrl		= 0
poweradd		= 0
facep2		= 0
hitdefpersist	= 0
movehitpersist	= 0
hitcountpersist	= 0
sprpriority         = 2

;---------------

[State 0:       EnvShake]
type 			        = EnvShake
Triggerall              = AnimElem = 1, > 0 && AnimElem = 2, < 0
trigger1 		        = gametime%4
time 			        = 5
freq 			        = 70
ampl 			        = 7

[State 0: 	PalFX]
type			        = PalFX
trigger1		        = GameTime%45 = 0
time			        = 20
add			            = 85,85,85
mul			            = 256,256,256
sinadd		            = 85,85,85,25
invertall		        = 0
color			        = 256

;---------------

[State 0, Helper]
type = Helper
trigger1 = !time
helpertype = normal
name = "electriccharge"
ID = 8307
stateno = 8307
pos = -35,-70
postype = p1
facing = 1
ownpal = 1
size.xscale = 1
size.yscale = 1

[State 0:       PlaySND]
type                    = PlaySnd
trigger1                = !Time
value                   = 2020, 0
channel	                = -1
Volume                  = 255

[State 0: Explod]
type                    = Explod
trigger1                = !Time
anim                    = 8301
ID                      = 8301
pos                     = 8,-63
bindtime                = -1
removetime              = -1
;scale                   = 1,1
sprpriority             = 3
ownpal                  = 1
removeongethit          = 1

;---------------

[State 0, ]
type                    = ChangeState
trigger1                = Time > 20 && P2bodydist Y > -80
value                   = 2022
ctrl                    = 0

;---------------------------------------------------------------------------
;Makankosappo - fire
[Statedef 2022]
type 		= S
movetype		= I
physics		= S
juggle	    	= 1
anim    	          = 2022
velset		= 0,0
ctrl		= 0
poweradd		= 0
facep2		= 0
hitdefpersist	= 0
movehitpersist	= 0
hitcountpersist	= 0
sprpriority	= 2

;---------------

[State 0:       RemoveExplod]
type                    = RemoveExplod
trigger1                = !Time
ID                      = 8301


;---------------

[State 0:       PlaySND]
type                    = PlaySnd
trigger1                = !Time
value                   = 2020, 1
channel	                = -1
Volume                  = 255

[State 0:       PlaySND]
type                    = PlaySnd
trigger1                = !Time
value                   = 250, 2
channel	                = -1
Volume                  = 255

;---------------

[State 0: Explod]
type                    = Explod
trigger1                = !Time
anim                    = 8470
ID                      = 8470
pos                     = 66,-80
bindtime                = -1
removetime              = 24
scale                   = .4,.2
sprpriority             = 7
ownpal                  = 1
removeongethit          = 1

[State 0: Special Beam Cannon]
type                    = Helper
trigger1                = !time
helpertype	            = normal
id                      = 8305
stateno	                = 8305
keyctrl	                = 0
ownpal		            = 1
size.xscale             = .75
size.yscale             = .25


[State 0:       Slow Mo]
type                    = Helper
Triggerall              = NumHelper(8305)
trigger1                = helper(8305), movehit
helpertype	            = normal
id                      = 8313
stateno	                = 8313
keyctrl	                = 0
ownpal		            = 1
pausemovetime	        = 999
ignorehitpause          = 1


;---------------

[State 0:       RemoveExplod]
type                    = RemoveExplod
trigger1                = AnimElem = 2
ID                      = 8407

[State 0:     PlaySND]
type                    = PlaySnd
trigger1                = AnimElem = 2
value                   = 700, 0
channel	                = -1

[State 0:       Screen Flash]
type                    = EnvColor
trigger1                = AnimElem = 2
value                   = 255,255,255
time                    = 2
under                   = 0

[State 0: RemoveExplod]
type                    = RemoveExplod
trigger1                = AnimElem = 2
ID                      = 7011

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

;---------------------------------------------------------------------------
; Makankosappo End
[Statedef 2023]
type                    = S
movetype                = I
physics                 = N
anim                    = 2012
velset                  = 0,0
ctrl                    = 0
poweradd                = 0
juggle                  = 0
facep2                  = 0
hitdefpersist           = 0
movehitpersist          = 0
hitcountpersist         = 0
sprpriority             = 1
;---------------

[State 0: RemoveExplod]
type                    = RemoveExplod
trigger1                = !Time
ID                      = 7011

[State 0:     PlaySND]
type                    = PlaySnd
trigger1                = !Time
value                   = 700, 0
channel	                = -1

[State 0:       Screen Flash]
type                    = EnvColor
trigger1                = !Time
value                   = 255,255,255
time                    = 2
under                   = 0

[State 0:     End]
type                    = ChangeState
trigger1                = !AnimTime
value                   = 0
ctrl                    = 1

;--------------------------------------------------------------------------
;Death Beam
[Statedef 2200]
type 		= S
movetype		= A
physics		= S
juggle	    	= 1
anim    		= 2200
velset		= 0,0
ctrl		= 0
poweradd		= -1000
facep2		= 0
hitdefpersist	= 0
movehitpersist	= 0
hitcountpersist	= 0
sprpriority	= 2

[State 0: PosSet]
type                    = PosSet
trigger1                = !Time
y                       = 0

;---------------

[State 0, ]
type                    = PlaySnd
trigger1                = !time
value                   = 3001, 0


[State 0: BGPalFX]
type                    = BGPalFX
trigger1                = !Time
time                    = 100
add                     = -100,-100,-100
mul                     = 256,256,256


[State 0:       Pause]
type                    = Pause
trigger1                = !Time 
time                    = 100
movetime                = 100

[State 0:       EnvShake]
type 			        = EnvShake
Triggerall              = Time < 100
trigger1 		        = gametime%4
time 			        = 5
freq 			        = 70
ampl 			        = 7



[State 0, Explod]
type = Explod
trigger1 =!time
anim = 8400
ID = 8400
pos = -17,-66
postype = p1
bindtime = -1
removetime = 100
supermovetime = 999
scale = 1,1
ontop = 1
shadow = 0,0,0
ownpal = 1
removeongethit = 1
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999


[State 0, Helper]
type = Helper
trigger1 = !time
helpertype = normal ;player
name = "Shockwave"
ID = 8200
stateno = 8200
pos = 0,-40
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 999
pausemovetime = 999

[State 0: Helper]
type                    = Helper
trigger1                = time = 0
helpertype              = normal
ID                      = 8000
pos                     = ifelse(random>500,3,ifelse(random>500,-5,15)),0
postype                 = p1
facing                  = 1
stateno                 = 8000
ownpal                  = 1
size.xscale             = .8
size.yscale             = 1.0
supermovetime = 999
pausemovetime = 999





[State 0, ]
type                    = PlaySnd
trigger1                = Time = 40
value                   = 3003, 0

[State 0, ]
type                    = PlaySnd
trigger1                = Time = 100
value                   = 3002, 2

[State 0: Explod]
type                    = Explod
trigger1                = Time = 15
anim                    = 8311
ID                      = 8321
pos                     = 57,-75
bindtime                = -1
removetime              = -1
pausemovetime           = 999
sprpriority             = 5
ownpal                  = 1
removeongethit          = 1

[State 0: RemoveExplod]
type                    = RemoveExplod
trigger1                = NumHelper(8312)
ID                      = 8321

;---------------

[State 0:       Slow Mo]
type                    = Helper
Triggerall              = NumHelper(8312)
trigger1                = helper(8312), movehit
helpertype	            = normal
id                      = 8313
stateno	                = 8313
keyctrl	                = 0
ownpal		            = 1
pausemovetime	        = 999
ignorehitpause          = 1

[State 0:       Star]
type                    = Helper
trigger1                = AnimElem = 2
helpertype	            = normal
id                      = 8310
stateno	                = 8310
keyctrl	                = 0
ownpal		            = 1
pausemovetime	        = 999

[State 0:       Beam]
type                    = Helper
trigger1                = Time = 100
helpertype	            = normal
id                      = 8312
stateno	                = 8312
keyctrl	                = 0
ownpal		            = 1


[State 0, ]
type                    = ChangeState
trigger1                = movetype = H 
value                   = 0
ctrl                    = 1

[State 0, ]
type                    = ChangeState
trigger1                = !AnimTime
value                   = 0
ctrl                    = 1
;---------------------------------------------------------------------------
;Busta Wolf
[statedef 3000]
type = S
movetype = A
physics = N
ctrl = 0
anim = 3000
velset = 0,0
sprpriority = 3
poweradd = -1000

[State 0: BGPalFX]
type                    = BGPalFX
trigger1                = !Time
time                    = 50
add                     = -100,-100,-100
mul                     = 256,256,256


[State 0:       Pause]
type                    = Pause
trigger1                = !Time
time                    = 50
movetime                = 50

[State 0:       EnvShake]
type 			        = EnvShake
Triggerall              = Time < 50
trigger1 		        = gametime%4
time 			        = 5
freq 			        = 70
ampl 			        = 7

[State 0, ]
type                    = PlaySnd
trigger1                = !time
value                   = 3001, 0


[State 0: Helper]
type                    = Helper
trigger1                = time = 0
helpertype              = normal
ID                      = 8000
pos                     = ifelse(random>500,3,ifelse(random>500,-5,15)),0
postype                 = p1
facing                  = 1
stateno                 = 8000
ownpal                  = 1
size.xscale             = .8
size.yscale             = 1.0
supermovetime = 999
pausemovetime = 999






[State 0, PlaySnd]
type = PlaySnd
trigger1 = !time
value = S1010,3


[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 3
value = S25,0



[state 1020]
type = velset
trigger1 = animelem >= 3
x = 12

[state 1020]
type = velset
trigger1 = animelem >= 5
x = 0

[State 0, Helper]
type = Helper
trigger1 = !time
helpertype = normal ;player
name = "Shockwave"
ID = 8200
stateno = 8200
pos = 0,-40
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 999
pausemovetime = 999


[State 0, Explod]
type = Explod
trigger1 = !time
anim = 8400
ID = 8400
pos = 0,-40
postype = p1
bindtime = -1
removetime = 50
supermovetime = 999
pausemovetime = 999
scale = 1,1
ontop = 1
shadow = 0,0,0
ownpal = 1
removeongethit = 1
ignorehitpause = 1


[State 0, Explod]
type = Explod
trigger1 = AnimElem = 3
anim = 8304
ID = 8888
pos = 0,0
postype = p1  ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
scale = .80,.80
sprpriority = 4
ontop = 0
shadow = 0,0,0
ownpal = 1
removeongethit = 0
ignorehitpause = 1



[State 0: Helper]
type                    = Helper
trigger1                = AnimElem = 3
ID                      = 7032
stateno                 = 7032
ownpal                  = 1
size.xscale             = .7
size.yscale             = 1.1

[State 640, 3]
type = HitDef
trigger1 = animelem = 2
attr = S, SA
damage    = 110,20
hitflag = MAF
guardflag = HA
priority = 5,hit ; = 4
pausetime = 12,20
sparkno = S8000+(random%2)
guard.sparkno = S8020
sparkxy = -10,-66
hitsound = S300,3
guardsound = S400,0 ; 6,0
animtype = Med
ground.type = High
ground.slidetime = 15
ground.hittime  = 40
ground.velocity = 0,0
air.velocity = 0,0
fall = 0
getpower = 0,0
givepower = 16,16
snap      = 70

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

[state 1020]
type = changestate
trigger1 = movecontact
trigger1 = animelemtime(4) >0
value = 3001
ctrl = 0
;------------------------------------------------------------------------
[Statedef 3001,Khh]
type    = S
movetype= A
physics = N
juggle  = 1
velset = 0,0
ctrl = 0
anim = 3001
poweradd = 0
sprpriority = 1



[State 0:       Beam]
type                    = Helper
trigger1                = AnimElem = 5
helpertype	            = normal
id                      = 8305
stateno	                = 8305
keyctrl	                = 0
ownpal		      = 1
size.yscale               = .9
size.xscale               = 1.4

[State 0, Explod]
type = Explod
trigger1 = animelem = 5
anim = 8303
ID = 8400
pos = 20,0
postype = p1
bindtime = -1
removetime = -2
supermovetime = 999
pausemovetime = 999
scale = 1.2,1.2
ontop = 1
shadow = 0,0,0
ownpal = 1
removeongethit = 1
ignorehitpause = 1


[State 0, Explod]
type = Explod
trigger1 = AnimElem = 4
anim = 8100
ID = 8888
pos = -20,0
postype = p1  ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
scale = 1.5,1.5
sprpriority = 4
ontop = 0
shadow = 0,0,0
ownpal = 1
removeongethit = 0
ignorehitpause = 1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 5
value = S3000,1
channel = 7


[State 0, ChangeState]
type = ChangeState
trigger1 = (!animtime)
value = 0
ctrl = 1
;----------------------------------------------------------------------------------
;Cell jrs
[Statedef 3200, Cell Jr's Attack ]
type    = S
movetype= I
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
anim = 3200
poweradd = -2000
sprpriority = 1


[State 0: BGPalFX]
type                    = BGPalFX
trigger1                = !Time
time                    = 50
add                     = -100,-100,-100
mul                     = 256,256,256


[State 0:       Pause]
type                    = Pause
trigger1                = !Time
time                    = 50
movetime                = 50

[State 0:       EnvShake]
type 			        = EnvShake
Triggerall              = Time < 50
trigger1 		        = gametime%4
time 			        = 5
freq 			        = 70
ampl 			        = 7

[State 0, ]
type                    = PlaySnd
trigger1                = !time
value                   = 3001, 0

[State 0, ]
type                    = PlaySnd
trigger1                = !time
value                   = 1010, 7

[State 0, Helper]
type = Helper
trigger1 = !time
helpertype = normal ;player
name = "Shockwave"
ID = 8200
stateno = 8200
pos = 10,-66
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 999
pausemovetime = 999



[State 0, Explod]
type = Explod
trigger1 = AnimElem = 1
anim = 8400
ID = 8400
pos = -17,-66
postype = p1
bindtime = -1
removetime = 50
supermovetime = 999
scale = 1,1
ontop = 1
shadow = 0,0,0
ownpal = 1
removeongethit = 1
ignorehitpause = 1
pausemovetime = 999


[State 0, Helper]
type = Helper
trigger1 = animelemtime(1) = 50
helpertype = normal ;player
name = "Cell Jr. 1" 
ID = 9001
stateno = 9000
pos = -50,-20
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 0
pausemovetime = 0
size.xscale = 1.1
size.yscale = 1.1
persistent = 0

[State 0, Helper]
type = Helper
trigger1 = animelemtime(1) = 50
helpertype = normal ;player
name = "Cell Jr. 2" 
ID = 9002
stateno = 9001
pos = -20,-170
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 0
pausemovetime = 0
size.xscale = 1.1
size.yscale = 1.1
persistent = 0

[State 0, Helper]
type =  Helper
trigger1 = animelemtime(1) = 50
helpertype = normal ;player
name = "Cell Jr. 3" 
ID = 9003
stateno = 9002
pos = 20,-20
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 0
pausemovetime = 0
size.xscale = 1.1
size.yscale = 1.1
persistent = 0

[State 0, Helper]
type = Helper
trigger1 = animelemtime(1) = 50
helpertype = normal ;player
name = "Cell Jr. 4" 
ID = 9004
stateno = 9003
pos = 30,-20
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 0
pausemovetime = 0
size.xscale = 1.1
size.yscale = 1.1
persistent = 0

[State 0, Helper]
type =  Helper
trigger1 = animelemtime(1) = 50
helpertype = normal ;player
name = "Cell Jr. 5" 
ID = 9005
stateno = 9004
pos = -20,-190
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 0
pausemovetime = 0
size.xscale = 1.1
size.yscale = 1.1
persistent = 0

[State 0, Helper]
type =  Helper
trigger1 = animelemtime(1) = 50
helpertype = normal ;player
name = "Cell Jr. 6" 
ID = 9006
stateno = 9005
pos = 30,-20
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 0
pausemovetime = 0
size.xscale = 1.1
size.yscale = 1.1
persistent = 0

[State 0, Helper]
type =  Helper
trigger1 = animelemtime(1) = 50
helpertype = normal ;player
name = "Cell Jr. 7" 
ID = 9007
stateno = 9006
pos = -20,-0
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 0
pausemovetime = 0
size.xscale = 1.1
size.yscale = 1.1
persistent = 0

[State 0, ChangeState]
type = ChangeState
triggerall = time >= 50
trigger1 = !numhelper(9001) && !numhelper(9002) && !numhelper(9003) && !numhelper(9004)
trigger1 = !numhelper (9005) && !numhelper(9006) && !numhelper(9007)
value = 0
ctrl = 1

;------------------------------------------------------------------------
