Playing a Music Track through Dialogue

Post » Tue Oct 29, 2013 8:38 pm

Let's say that I have a music track that I've converted to a .xwm file. I go into the Creation Kit and I create a new Music Track, which links to that .xwm file. Now, as part of a quest, I need that track to play after I've chosen a certain dialogue line with a certain NPC. That's my situation.

I've already done everything necessary (including the quest, dialogue, actor, aliases, etc.) except for figured out a way to have the track play. I've even got a few lines of code that run when that dialogue line is chosen, but the last thing that I need is for that track to play. Essentially, I suppose that I'm just looking for a command that would work to that effect.

Thanks for any help or direction. If I've missed something glaringly obvious, call me out on it, but I can't seem to find anything online that has helped so far

User avatar
sarah simon-rogaume
 
Posts: 3383
Joined: Thu Mar 15, 2007 4:41 am

Post » Tue Oct 29, 2013 12:48 pm

Do you need it to be set up as music, or could you set it up as a sound? Music is good for when you want it to be played in certain locations, controlled by the game engine. You can mute it and unmute it, but that's about it. Sounds are better when you want to be able to control the sound using the play() function.

User avatar
Strawberry
 
Posts: 3446
Joined: Thu Jul 05, 2007 11:08 am

Post » Tue Oct 29, 2013 12:41 pm

http://www.creationkit.com/Add_-_MusicType

Put that in the dialog fragment where you want it to start playing. You'll have to set the property for the track of course. You may have to play with the settings and timing to get it to properly "duck" the vanilla track if one is playing.

http://www.creationkit.com/Music_Type

User avatar
Yonah
 
Posts: 3462
Joined: Thu Aug 02, 2007 4:42 am

Post » Tue Oct 29, 2013 1:58 pm

Thanks for the information! With the mods I'm running, I'm afraid that if I use a Sound, when I turn around, the it will sound weird, since the sound source is the NPC (am I right in thinking that?). Of course, from what you've described, using a Sound seems to be more flexible; I'd have more control. Am I assessing the pros and cons correctly?

User avatar
I love YOu
 
Posts: 3505
Joined: Wed Aug 09, 2006 12:05 pm


Return to V - Skyrim