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
➜ Colour trigger in specific circumstances
Colour trigger in specific circumstances
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Clomly
(2 posts) Bio
|
Date
| Sun 21 Oct 2007 10:33 PM (UTC) |
Message
| Sorry if this has been covered before. I searched but couldn't find anything on it.
I'm trying to make a colour trigger that will highlight a single word (or multiple words in one line if they match a list) but only if the line ends in a certain string (which I do not want highlighted).
Ie. a line such as
A young Ephebian recruit, two skinny Ephebian recruits, a nervous Djelian recruit, a skinny Djelian recruit and a disciplined Ephebian soldier are fighting here.
I would like to highlight recruit and soldier every time they appear, but only if the line ends in "here."
I've managed the recruit and soldier part (just match soldier|recruit|recruits|etc) but can't seem to make it conditional.
Thanks in advance,
Clomly | Top |
|
Posted by
| Ked
Russia (524 posts) Bio
|
Date
| Reply #1 on Tue 23 Oct 2007 02:37 AM (UTC) |
Message
| This trigger seems to do the job:
<triggers>
<trigger
custom_colour="3"
enabled="y"
match="(soldier|recruit|recruits)+(?=.*? are fighting here\.$)"
regexp="y"
repeat="y"
sequence="100"
>
</trigger>
</triggers>
Note the 'repeat on same line' option.
| Top |
|
Posted by
| Clomly
(2 posts) Bio
|
Date
| Reply #2 on Tue 23 Oct 2007 06:15 AM (UTC) |
Message
| |
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.
13,227 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top