Jump to content

Custom Environmental Music...?


syg

Recommended Posts

When people enter the Arcane University I want a special song to play, either right through the gates or inside the tower... how do I do this? I've been looking around TES Construction set, and the only music files I can seem to set are simply the folders ... any help would be much appreciated
Link to comment
Share on other sites

Oblivion is very limited when it comes to music, especially compared to Morrowind... there is a scripting function, I believe, which makes it play an mp3 file, but I don't know whether that counts as music, or as a sound effect (in which case the original music would still be playing at the same time). I also know it can't really loop tracks either, it can only play them once.
Link to comment
Share on other sites

Oblivion is very limited when it comes to music, especially compared to Morrowind... there is a scripting function, I believe, which makes it play an mp3 file, but I don't know whether that counts as music, or as a sound effect (in which case the original music would still be playing at the same time). I also know it can't really loop tracks either, it can only play them once.

 

 

I know that Imperial Furniture does it somehow, I was looking through their work trying to figure it out... but with no luck.

 

http://www.tesnexus.com/downloads/file.php?id=4703

 

It puts their songs into /special/ and somehow the game knows to play them. I'm thinking it's a script that I could just modify for my own purpose with my own song... but I have no clue where to find this heh

Link to comment
Share on other sites

I'm guessing it uses the function I was talking about to do it. It only plays once, before going back to the normal music, right?

 

You can try looking on the CS wiki for it, it will be there somewhere, or you could wait for Abramul or Vagrant, or someone to tell you. I'm afraid I don't know, I suck at scripting :confused:

 

 

I want the theme to play right when players enter a certain environment to "set the initial mood." So playing just once would be cool.

 

It'd be nice to know how to make it play on a loop too, or how to play one initial song, then loop another.

 

I have no actual idea how to really script things... The wiki had some tips on it, I just don't know how to use these tips:

 

http://cs.elderscrolls.com/constwiki/index..._Music_Question

Link to comment
Share on other sites

Bascially the music functions suck. They don't start when you want them to, and there is no option to have that music keep playing. Theoretically you could spend a silly amount of time calculating how long a song will run, and make adjustments so that it still keeps track of time inside menus, conversations, everything, and use those calculations to setup a sort of playlist for that area so that one song plays after another. But this is all theoretical. Unfortunately there is no way through scripting to determine if a song is done playing, so any miscalculations will result in either a song getting cut short, or the normal music being played briefly before the next song loads.
Link to comment
Share on other sites

Bascially the music functions suck. They don't start when you want them to, and there is no option to have that music keep playing. Theoretically you could spend a silly amount of time calculating how long a song will run, and make adjustments so that it still keeps track of time inside menus, conversations, everything, and use those calculations to setup a sort of playlist for that area so that one song plays after another. But this is all theoretical. Unfortunately there is no way through scripting to determine if a song is done playing, so any miscalculations will result in either a song getting cut short, or the normal music being played briefly before the next song loads.

 

 

Grumble, frustrating. Thanks however :)

 

If anyone else finds anything, give a shout! In the meantime I'll be doing my part to do something along the lines of what's been discussed above, and if I figure out a good system, I'll post it! ;)

Link to comment
Share on other sites

When you die or level up the music stops and a new file plays, even though that file isn't technically music. I know this is hard coded, but is there anyway to just look at these systems to determine what happens?
Link to comment
Share on other sites

OK, so using the advice above I've written this script:

 

scn ArcaneUniversityMusicTriggerScript

 

short rnd

 

Begin OnLoad

 

Set rnd to GetRandomPercent

 

if (rnd <= 26)

StreamMusic "data\music\arcane\university.mp3"

elseif (rnd > 26 && rnd < 62)

StreamMusic "data\music\arcane\university.mp3"

elseif (rnd > 62)

StreamMusic "data\music\special\university.mp3"

endif

 

End

 

 

Which should play the music I want in the same fashion that Imperial Furniture does their interior musics.

 

Now my questions is: How do I tell TES Construction set to make it play either inside the Arcane Tower

or in the space of the Arcane University? This scripting has me all confuzzeled. Thanks all :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...