===============
Custom BG Music
===============
Created by The Necromancer

;---------------------------------------------------------------------------
Custom BG Music -- Ever want to play a song against a
particular character? Or a BG Music change during the
3rd match? This code shows how you can play your own
BG music.

----------------------------------------------------------------------------
1.) First, create the BG Music activation. A variable is required for
this effect.

The trigger can be something like:
-RoundNo = 3
-Matcho = 9
etc...

[Statedef -3]
type = VarSet
trigger1 = (whatever)
v = 0
value = 1

Also, you'll need to create the helper. Even if music is not going to play, the helper
will be available to be ready when the effect occurs.

;Custom music creator
[State -3: Helper]
type = Helper
trigger1 = NumHelper(9000) = 0
helpertype = Normal
name = "CustomBGMusic"
id = 9000
pos = 0,0
postype = p1
facing = -1
stateno = 9000
keyctrl = 0
ownpal = 1
supermovetime = 999999999
pausemovetime = 999999999

2.) Now, create a helper. This helper will be reponsible for
creating this effect. (With no interruptions.)

;Custom Music Creator
[Statedef 9000]
etc...

[State 9000: AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = Invisible
flag2 = NoShadow

[State 9000: AssertSpecial]
type = AssertSpecial
trigger1 = Parent, Var(0) = 1
flag = NoMusic

[State 9000: NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA

[State 9000: PlayerPush]
type = PlayerPush
trigger1 = 1
value = 1

;The "loop = 1" is VERY important, to keep the music playing at all times.
[State 9000: PlaySnd]
type = PlaySnd
trigger1 = Parent, Var(0) = 1
value = *,*
loop = 1
abspan = 0
persistent = 0

Imporant Note: Be sure your music files are small! (Don't want to take up too much memory, heh heh...)
