Posted by: Diana
« on: June 30, 2004, 09:23:01 AM »Quote
PlaySong(0) doesn't work?I don't have the technical smarts to convert a .wav file to .mus and add it to the songlist. This was my quick and easy workaround.
PlaySong(0) doesn't work?I don't have the technical smarts to convert a .wav file to .mus and add it to the songlist. This was my quick and easy workaround.
It's in J#KLSY.baf/.bcs, but Ghrey's right, you might be better off just putting it in the SAY line itself. At 9 seconds, it would be fine. Very long audio clips in SAY lines can cause the game to hiccup (a common complaint about Mirrabbo Imoen, for instance) but 9 seconds is just fine.Hiccupping is not my complaint. Mirrabbo's music playing OVER the game music is, however. Don't do that.
What I'm trying to do is add the 9 sec .wav file to play before the SAY @112 or simiilar actions further down in the npc's J.D file. It works when called from the .BCS file but not in the "NPCj.D" file. I get a Weidu parse error. I did take a quick look at Kelsey this afternoon but a quick search didn't turn up any use of the PlaySound action id so if you can direct me to the appropriate file I'd appreciate it.
From sheer laziness and unwillingness to try to add music for an NPC with the "how to add a .MUS file" I've resorted to the PlaySound script action function for a 9 sec .wav file. One thing puzzles me though. The sound has to be called from the "Sounds" sub-directory if it is not one of the already existnig in-game sounds.
Also, despite it blaring when I play the .wav file back via Sound Recorder it is rather subdued when activated by a NPC's .BCS file. Also, it doesn't always play -- I"ve found that sometimes in the .BCS I've had to include a Wait(3) statement to ensure ti plays.