Register forum user name Search FAQ

Gammon Forum

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 ➜ Tips and tricks ➜ Sounds for MUD combat options

Sounds for MUD combat options

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Dukeskath   (11 posts)  Bio
Date Thu 08 Aug 2024 06:25 PM (UTC)
Message
I like to have sounds for everything in MUDs. I recently figured out how to use regex to tackle combat in Aardwolf:

Quote:

<triggers>
<trigger
custom_colour="17"
enabled="y"
ignore_case="y"
keep_evaluating="y"
match="(rends|eradicates|disembowels|obliterates|incinerates|extirpates|devastates) you*"
regexp="y"
send_to="12"
sequence="100"
other_text_colour="white"
other_back_colour="#5C1212"
>
<send>PlaySound(0, "PATH/sound.wav", false)
</send>
</trigger>
</triggers>


The custom color bits aren't necessary, but they're helping me track when the trigger fires.

Now I just need to add all the various verbs into the parenthetical area and the sound will play every time I'm hit.

I'm sure this isn't a big deal to most folks, but I thought I'd share in case anyone else is trying to achieve this.
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.


1,066 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.