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.
 Entire forum ➜ MUSHclient ➜ General ➜ Overlapping highlightings of words/output sentences

Overlapping highlightings of words/output sentences

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


Posted by Winddancer   (26 posts)  Bio
Date Sat 14 Oct 2023 05:41 PM (UTC)
Message
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...
Top

Posted by Nick Gammon   Australia  (23,102 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 14 Oct 2023 08:29 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Winddancer   (26 posts)  Bio
Date Reply #2 on Sat 14 Oct 2023 09:04 PM (UTC)

Amended on Sun 15 Oct 2023 04:20 AM (UTC) by Nick Gammon

Message

<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.
Top

Posted by Nick Gammon   Australia  (23,102 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 15 Oct 2023 03:02 AM (UTC)

Amended on Sun 15 Oct 2023 04:22 AM (UTC) by Nick Gammon

Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Winddancer   (26 posts)  Bio
Date Reply #4 on Sun 15 Oct 2023 06:41 AM (UTC)
Message
Thanks
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.


3,712 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.