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
➜ General
➜ Trigger question
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| LucianDK
(23 posts) Bio
|
| Date
| Fri 21 Apr 2017 11:07 AM (UTC) |
| Message
| I am trying to write a trigger that works when an exact name is mentioned and coloring the whole action with the color chosen for the name. Such as 'Foster waves to you' or Have you seen Foster? Which would be wholly in the lightbrown color ive chosen for his name.
But not triggering when words incorporating the name is mentioned. Like Fostered by wolves. Or whom is your Fosterfather?
I cant figure out how to only make the trigger activate on an exact wordmatch and still coloring the whole of the action. | | Top |
|
| Posted by
| Fiendish
USA (2,555 posts) Bio
Global Moderator |
| Date
| Reply #1 on Fri 21 Apr 2017 11:44 AM (UTC) Amended on Fri 21 Apr 2017 11:45 AM (UTC) by Fiendish
|
| Message
| Use the "regular expression" option, and make your pattern:
\b in PCRE indicates a word boundary.
Coloring would be done by making it a color trigger. I'm pretty sure those always do the whole line. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| LucianDK
(23 posts) Bio
|
| Date
| Reply #2 on Fri 21 Apr 2017 11:51 AM (UTC) Amended on Fri 21 Apr 2017 11:56 AM (UTC) by LucianDK
|
| Message
| Tried that, Fiendish. Only the name gets colored, nothing else in the rest of the line.
edit:
http://imgur.com/a/wuU2j | | Top |
|
| Posted by
| Fiendish
USA (2,555 posts) Bio
Global Moderator |
| Date
| Reply #3 on Fri 21 Apr 2017 11:54 AM (UTC) Amended on Fri 21 Apr 2017 11:56 AM (UTC) by Fiendish
|
| Message
| I guess I remembered wrong, then. Maybe put .* at the beginning and end of your pattern.
Like:
|
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| LucianDK
(23 posts) Bio
|
| Date
| Reply #4 on Fri 21 Apr 2017 11:58 AM (UTC) |
| Message
| | That seems to have done the trick, cheers. | | 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.
18,294 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top