Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Music in a conversation?

Page: 1 of 1
 Mindtwistah
07-06-2007, 3:20 PM
#1
Is it possible to play a soundfile when you open a conversation?
 SithRevan
07-06-2007, 3:28 PM
#2
I would have to say no, though I am not sure. I think the music would have to be in the actual characters VO sound file and even then it probably would not sound flawless as it does when you are walking around in an area.

Sorry I couldn't be of more help.
 Tupac Amaru
07-06-2007, 7:28 PM
#3
To play music at the start of a conversation, put the name of the music file in the 'Ambient Track' field of the root node of the .dlg.

The regular background music will not stop automatically, though. It has to be turned off with scripts. In TSL, the script 'a_bg_music can handle this. For K1, you need to write your own. This script will stop the background music and should be run at the beginning of the dialog:
void main() {
MusicBackgroundStop(GetArea(OBJECT_SELF));
}
At the end of the dialog, you should restart the background music again:
void main() {
DelayCommand(0.1, MusicBackgroundPlay(GetArea(OBJECT_SELF)));
}
 Andokool12
07-10-2007, 11:17 AM
#4
Well, there is a way. Cause yesterday I reached the temple in Dantooine and music continued playing during the whole conversation.
Page: 1 of 1