Adding personal music

Posted by Faedara on Fri 30 Jul 2010 07:47 AM — 7 posts, 27,381 views.

#0
I want to create a script that loops background music after certain events for the MUD I play, such as events that would only occur if I move from one area to another. I've made the script, I've made the trigger, and I have the sound in a folder called "sounds" directly under the Mushclient folder, but no matter what I do the sound doesn't play. I know I'm doing this wrong, or it would work, so what am I doing wrong and how do I fix it?
Australia Forum Administrator #1
Can you post the script?
#2
I forgot to post the script I'm using, sorry:


((I might not be writing this right, I don't usually do triggers in raw format))

<trigger
enabled="y"
match="You return to your home plane."
omit_from_output="n"
regexp="n"
sequence="100"
>
<send>PlaySound (4, "Sora.wav", true, -3, 0)</send>
</trigger>


I don't know how to export a trigger, so that's probably very rough and inaccurate compared to how it should look...
#3
And yes, I did practically nothing but rip the line of code, studying it's properties, and putting it in without knowing how it's supposed to mesh with input/triggers/other code. I can't even rip code right X3
Australia Forum Administrator #4
Faedara said:

I don't know how to export a trigger, so that's probably very rough and inaccurate compared to how it should look...


Template:copying
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
#5
Ah, that might help huh?


<triggers>
<trigger
enabled="y"
match="^(.*?)You return to your home plane\.$"
regexp="y"
send_to="12"
sequence="100"
>
<send>PlaySound (4, "Sora.wav", true, -3, 0)</send>
</trigger>
</triggers>
#6
Well, I figured out my own fatal flaw, I copied the uncoverted MP3 file to my sounds folder, instead of the converted WAV file. All's well that ends well.