Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Lua
➜ Adding personal music
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Faedara
(106 posts) Bio
|
| Date
| Fri 30 Jul 2010 07:47 AM (UTC) |
| Message
| | 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? |
The eternally clueless <3
Currently looking for a mentor/tutor to help me learn everything about Lua from the ground up. I can't understand 28*41 until I learn what causes 2+2. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 30 Jul 2010 07:55 AM (UTC) |
| Message
| | Can you post the script? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Faedara
(106 posts) Bio
|
| Date
| Reply #2 on Fri 30 Jul 2010 07:56 AM (UTC) |
| Message
| 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... |
The eternally clueless <3
Currently looking for a mentor/tutor to help me learn everything about Lua from the ground up. I can't understand 28*41 until I learn what causes 2+2. | | Top |
|
| Posted by
| Faedara
(106 posts) Bio
|
| Date
| Reply #3 on Fri 30 Jul 2010 08:02 AM (UTC) |
| Message
| | 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 |
The eternally clueless <3
Currently looking for a mentor/tutor to help me learn everything about Lua from the ground up. I can't understand 28*41 until I learn what causes 2+2. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Fri 30 Jul 2010 08:11 AM (UTC) |
| Message
|
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...
 |
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
|
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Faedara
(106 posts) Bio
|
| Date
| Reply #5 on Fri 30 Jul 2010 08:13 AM (UTC) |
| Message
| 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>
|
The eternally clueless <3
Currently looking for a mentor/tutor to help me learn everything about Lua from the ground up. I can't understand 28*41 until I learn what causes 2+2. | | Top |
|
| Posted by
| Faedara
(106 posts) Bio
|
| Date
| Reply #6 on Fri 30 Jul 2010 08:35 AM (UTC) |
| Message
| | 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. |
The eternally clueless <3
Currently looking for a mentor/tutor to help me learn everything about Lua from the ground up. I can't understand 28*41 until I learn what causes 2+2. | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
25,663 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top