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
➜ I would like to learn how to make a trigger like this work
I would like to learn how to make a trigger like this work
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Jordan
(14 posts) Bio
|
Date
| Thu 19 Oct 2006 10:49 PM (UTC) |
Message
| *Legendary <wildcard>* is webbed
output grouptell %1 has been webbed.
Any clues? | Top |
|
Posted by
| Ked
Russia (524 posts) Bio
|
Date
| Reply #1 on Thu 19 Oct 2006 11:45 PM (UTC) |
Message
|
<triggers>
<trigger
enabled="y"
match="^\*Legendary (\w+)\* is webbed $"
regexp="y"
sequence="100"
>
<send>grouptell %1 is webbed</send>
</trigger>
</triggers>
Copy that and paste in the Triggers dialog. | Top |
|
Posted by
| Jordan
(14 posts) Bio
|
Date
| Reply #2 on Fri 20 Oct 2006 04:41 AM (UTC) Amended on Fri 20 Oct 2006 04:49 AM (UTC) by Jordan
|
Message
| For my own sake let me clerify it so i can understand what your saying better.
What should trip the trig is *Legendary (wildcard)* has been covered in sticky webs!
and then output is gtell *Legendary (wildcard)* is webbed!
Sorry to sound like an idiot but the only triggers menu diaolog box thingy i see has what trips the trigger and what is sent. Where do i paste this? | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Fri 20 Oct 2006 06:03 AM (UTC) |
Message
| |
Posted by
| Jordan
(14 posts) Bio
|
Date
| Reply #4 on Fri 20 Oct 2006 11:19 AM (UTC) |
Message
| ok thx for that i got it on there but its not working =/. Any ideas? | Top |
|
Posted by
| Ked
Russia (524 posts) Bio
|
Date
| Reply #5 on Fri 20 Oct 2006 12:39 PM (UTC) |
Message
| Probably because the match expression is wrong. Post a short log snippet that includes the line you want to trigger, exactly as it appears in the output window, without editting it in any way. | Top |
|
Posted by
| Jordan
(14 posts) Bio
|
Date
| Reply #6 on Fri 20 Oct 2006 09:11 PM (UTC) |
Message
| c web sil (command)
4155/4155hp 3360/3390m 800/800mv|E|1996 *Legendary Silence* is COVERED IN STICKY WEBS!!
4155/4155hp 3310/3390m 800/800mv|E|1996 Enemy: 100% [*Legendary Silence*: Perfect] [You: Perfect] | Top |
|
Posted by
| Ked
Russia (524 posts) Bio
|
Date
| Reply #7 on Sat 21 Oct 2006 12:58 AM (UTC) |
Message
| See if this works.
<triggers>
<trigger
enabled="y"
match="\*Legendary (\w+)\* is COVERED IN STICKY WEBS\!\!$"
regexp="y"
sequence="100"
>
<send>grouptell %1 is webbed</send>
</trigger>
</triggers>
| Top |
|
Posted by
| Jordan
(14 posts) Bio
|
Date
| Reply #8 on Sat 21 Oct 2006 01:44 PM (UTC) Amended on Sat 21 Oct 2006 01:46 PM (UTC) by Jordan
|
Message
| Hurrah! Thanks a bunch =D. Now is there anyway to change Legendary into another variable? Nvm. I found out how woooo!! Im starting to catch on slowly | 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.
26,601 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top