;===========================================================================
;Robot Master Mayhem - Constants Template (Power Sets) V.1
;Template by Acey
;Based on Megaman by Chaotic
;www.infinitymugenteam.com
;===========================================================================

;---------------------------------------------------------------------
;The Power Set Stance (1200)
;Power Icon (8300)
;---------------------------------------------------------------------

;---------------------------------------------------------------------------------------------
;Change Power Set (0 through 6)
[Statedef 1800]
type    = S
movetype= A
physics = S
ctrl = 0
anim = 1800

[State 1800, PlaySnd]
type = PlaySnd
trigger1 = time = 40
value = S24,13
volume = 0
channel = -1
freqmul = 1.0
loop = 0
pan = 0
persistent = 0

[State 1800, Explod]
type = Explod
trigger1 = time = 5;40
anim = 1801
ID =  1801
pos = 0,0
postype = p1  ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = -1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
scale = 1,1
sprpriority = 0
ontop = 1
shadow = 0,0,0
ownpal = 0
removeongethit = 1

[State 1800, Helper]
type = Helper
triggerall = time = 15
trigger1 = stateno = 1800 && numexplod(8300) = 0
helpertype = normal
name = "BossName"
ID =  8300
stateno = 8300
pos = 30,-90
postype = p1
supermovetime = 99999999
pausemovetime = 99999999
persistent = 0

[State 1800, ChangeState]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------
[Statedef 8300] ;Boss Icons
type=A
physics=N
velset=0,0
anim=74140108

[State 8300, Circle]
type=explod
trigger1= !numexplod(8830)
anim = 8300 + (parent,var(16))
ID=8300
sprpriority=64
postype=p1
facing=facing
removetime=32
pausemovetime=-1
supermovetime=-1
ownpal=1

[State 8300, VelSet]
type = VelSet
trigger1 = time = 15
x = -1.7
y = 2

[State 8300, Scale]
type=modifyexplod
trigger1= time<15
ID=8300
scale=.7,.7
trans=addalpha
alpha=256,0
bindtime = -1

[State 8300, Scale]
type=modifyexplod
trigger1= time>=15
ID= 8300
scale= .5-.0625*(time-15), .5-.0625*(time-15)
trans= addalpha
alpha= 256-32*(time-15), 32*(time-15)
bindtime = -1

[State 8300, Safety]
type=removeexplod
trigger1= time>=30

[State 8290, End]
type=destroyself
trigger1= time>=30
