Softvolumes and Sounds

I have decided to add music to a certain area of my age. Now, this age (as most of you probably know by now, but should be mentioned nonetheless) has a page-swap property (not sure if that's what it's called, but that's what it does). I have a sound emitter on the "shared" page that makes the background sounds for the age. When I switch it to page 2 (or the Nighttime page) I've created a softvolume in the area of the age I want my music playing (so that it only plays in that area of the age, and not in the daytime).
At first I wasn't sure if I should mention the background sound in the softvolume script, but decided it's probably necessary. After it didn't work just having one softvolume, I created another one in the area of the age that I don't want the music playing, so I can tell URU that when in that region, only the background sound will play. However, knowing that I can only have one entry for each sound emitter, figuring out how to write that it should play in one softvolume but not in the other has been difficult.
After referring to my other age that I've used softvolumes for lamps in, and the wiki tutorial about them, I came up with this:
I've included the sound emitter scripts as well just in case it might help. "MusicEmit" is my music emitter, and "OceanEmit" is my background sound emitter.
For the "MusicEmit" softvolume entry I've tried to tell it to play in "MusicSV" but not "OceanSV".
For "OceanEmit" I've told it to play in both softvolumes. As I've been typing this I just realized that there can't be two entries for "OceanEmit" and "MusicEmit" but don't know how I would merge them. I can tell I've probably screwed this up big time, so any help would be appreciated
At first I wasn't sure if I should mention the background sound in the softvolume script, but decided it's probably necessary. After it didn't work just having one softvolume, I created another one in the area of the age that I don't want the music playing, so I can tell URU that when in that region, only the background sound will play. However, knowing that I can only have one entry for each sound emitter, figuring out how to write that it should play in one softvolume but not in the other has been difficult.
After referring to my other age that I've used softvolumes for lamps in, and the wiki tutorial about them, I came up with this:
- Code: Select all
MusicEmit:
type: soundemit
sound:
flags:
- looping
- autostart
file: ZfaNightmusic
volume: 0.05
type: bacgroundmusic
MusicSV:
type: softvolume
softvolume:
type: convex
softdist: 2.0
MusicEmit:
sound:
softvolume: ("!(OceanSV)"),MusicSV)
OceanEmit:
sound:
softvolume: U(OceanSV,MusicSV)
OceanSV:
type: softvolume
softvolume:
type: convex
softdist: 2.0
OceanEmit:
type: soundemit
sound:
flags:
- looping
- autostart
file: Ocean
volume: 0.1
type: ambient
I've included the sound emitter scripts as well just in case it might help. "MusicEmit" is my music emitter, and "OceanEmit" is my background sound emitter.
For the "MusicEmit" softvolume entry I've tried to tell it to play in "MusicSV" but not "OceanSV".
For "OceanEmit" I've told it to play in both softvolumes. As I've been typing this I just realized that there can't be two entries for "OceanEmit" and "MusicEmit" but don't know how I would merge them. I can tell I've probably screwed this up big time, so any help would be appreciated
