[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Overlapping highlightings of words/output sentences

Overlapping highlightings of words/output sentences

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page


Posted by Winddancer   (26 posts)  [Biography] 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...
[Go to top] top

Posted by Nick Gammon   Australia  (22,926 posts)  [Biography] 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
[Go to top] top

Posted by Winddancer   (26 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (22,926 posts)  [Biography] 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
[Go to top] top

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


630 views.

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]