Overlapping highlightings of words/output sentences

Posted by Winddancer on Sat 14 Oct 2023 05:41 PM — 5 posts, 11,939 views.

#0
I currently have a problem with overlapping highlights.
On one hand, I have configured MUSHclient in such a way, that combat messages are colored.
Green for things I do to them, red for what they do to me.
However, certain extremely powerful or special opponents, I have additionally highlighted, in purple.

I posted an image of what I mean here:
https://imgur.com/0WNzgQG

It shows quite well, that the initial weapon contact starts with the green for me attacking them, get's the purple, when the highlighted name is reached, but then it starts messing up. Additionally, the highlighted name isn't highlighted in the rest of the attack sequence, only after does it get highlighted again.

What did I do wrong? which information is needed to show what I did...
Australia Forum Administrator #1
Please copy and paste the triggers in question, follow this link for how to do that:

Template:copying
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.



Probably what you need to check is "repeat on same line" to get the enemy name highlighted more than once.
#2

<triggers>
  <trigger
   custom_colour="9"
   enabled="y"
   group="Highlighted Words"
   keep_evaluating="y"
   match="\bpumpkinhead\b"
   sequence="100"
  >
  </trigger>
</triggers>


Thats the trigger for the "pumpkinhead".

The "repeat on same line" option is greyed out, therefore not selectable.
Amended on Sun 15 Oct 2023 04:20 AM by Nick Gammon
Australia Forum Administrator #3
It will be selectable if you tick "regular expression" which it appears you are wanting to use because you had \b in the match text.

Regular expressions with "repeat on same line" checked iterate over the line. The intention of that is exactly to colour multiple words.
Amended on Sun 15 Oct 2023 04:22 AM by Nick Gammon
#4
Thanks