Gammon Forum
Entire forum
MUSHclient
General
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 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 (22,928 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:
 |
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 (22,928 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 |
|
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.
669 views.
You need to log onto the forum to reply or create new threads.
 
Refresh page
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.