05-08-2006, 01:02 AM
Originally posted by JOG (of Havish fame, for us oldies). I haven't cooberated if it works, but I'm sure it does. Whee, we *can* script music!! :elk:
black[/hr]
Syntax:
StreamMusic "<Filename>"
Examples:
StreamMusic "data\music\special\success.mp3"
StreamMusic "LauncherMusic.wav"
StreamMusic "..\Morrowind\Data Files\Music\Special\morrowind title.mp3"
StreamMusic "C:\WINDOWS\Media\tada.wav"
Tells the game to start playing the music file. (The filename needs to be in quotes!)
Some Notes:
black[/hr]
Syntax:
StreamMusic "<Filename>"
Examples:
StreamMusic "data\music\special\success.mp3"
StreamMusic "LauncherMusic.wav"
StreamMusic "..\Morrowind\Data Files\Music\Special\morrowind title.mp3"
StreamMusic "C:\WINDOWS\Media\tada.wav"
Tells the game to start playing the music file. (The filename needs to be in quotes!)
Some Notes:
- At the end of the file, a new random music will be chosen according to the current location.
- Providing a filename that doesn't exist causes the game to restart the song that is currently playing.
- StreamMusic will not override combat music, the combat-music that is currently playing will be restarted, though.
- The filename is relative to the Oblivion-folder it doesn't need to be in Data\Music.
- The file-type isn't restricted to MP3. Any format that may be played by Windows Media Player can also be played by Oblivion (e.g .MID files).
- The file-type isn't even restricted to music; if you start a video this way, Oblivion will minimize and play the video in an extra window. When the video ends, Oblivion will resume. (This is bound to make the game instable, so don't use it for anything but easter-eggs.)