I just want to highlight some text.

Posted by CarpeMofo on Sat 07 May 2011 04:33 AM — 11 posts, 42,888 views.

#0
Alright, all I want to do, is if I get a line of input like this

[OOC: 1] Bob: "Hello"

For it to be a certain color, now the number 1 can change, so I tried simply creating a trigger that was

[OOC *

And then tried changing the color in the 'Change colour and style box' But this doesn't work, I have tried several different triggers for this and can't get it to work. I didn't have regular expression checked or anything like that. It just simply doesn't work. Here is a picture of exactly what I've done. http://oi55.tinypic.com/mhqte.jpg

If someone could just tell me what I need to do to get that to be a solid colored line I would be grateful. There are other text strings I want to color but I figure I can just do the same thing with those that I can do to this one to get it to work. Thank you!
Australia Forum Administrator #1
You don't need to take screenshots:

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.


Quote:

[OOC *


That's not going to work is it?

Your line has:


Quote:

[OOC: 1


That is: [OOCcolon and you are trying to match [OOCspace.


In other words, match on:


[OOC: *

Amended on Sat 07 May 2011 04:40 AM by Nick Gammon
#2
That didn't work either.

<triggers>
<trigger
custom_colour="17"
enabled="y"
group="Highlighted Words"
match="[OOC: *"
repeat="y"
sequence="90"
other_text_colour="green"
>
</trigger>
</triggers>
Amended on Sat 07 May 2011 04:44 AM by CarpeMofo
USA #3
That works for me. I just imported the trigger you pasted and used Simulate() to emulate incoming MUD text (using "[OOC: 1] Bob: "Hello""). Worked perfectly fine.

Do you have any other triggers that might match the same thing? Make sure it has "Keep evaluating" checked or it'll stop all other triggers from running.
Amended on Sat 07 May 2011 05:32 AM by Twisol
#4
It's the only trigger I have at the moment.
USA #5
Are triggers enabled at all? There's a checkbox below the list of triggers that lets you enable/disable triggers.
#6
Yep, triggers are enabled.
USA #7
Huh, I don't know. Post your MUSHclient version and maybe Nick will have an idea.
Australia Forum Administrator #8
Template:version
Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.


Can you post some actual MUD output please? Copy and paste.

Sometimes when people retype stuff they miss a space or something.
#9
You mentioning my version reminded me to update... Now it works perfectly! Thank you!
USA #10
*facepalm* That was easy. :D