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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ I just want to highlight some text.
I just want to highlight some text.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| CarpeMofo
(8 posts) Bio
|
Date
| Sat 07 May 2011 04:33 AM (UTC) |
Message
| 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! | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 07 May 2011 04:39 AM (UTC) Amended on Sat 07 May 2011 04:40 AM (UTC) by Nick Gammon
|
Message
| You don't need to take screenshots:
|
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:
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| CarpeMofo
(8 posts) Bio
|
Date
| Reply #2 on Sat 07 May 2011 04:43 AM (UTC) Amended on Sat 07 May 2011 04:44 AM (UTC) by CarpeMofo
|
Message
| 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>
| Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #3 on Sat 07 May 2011 05:30 AM (UTC) Amended on Sat 07 May 2011 05:32 AM (UTC) by Twisol
|
Message
| 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. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| CarpeMofo
(8 posts) Bio
|
Date
| Reply #4 on Sat 07 May 2011 05:38 AM (UTC) |
Message
| It's the only trigger I have at the moment. | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #5 on Sat 07 May 2011 05:42 AM (UTC) |
Message
| Are triggers enabled at all? There's a checkbox below the list of triggers that lets you enable/disable triggers. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| CarpeMofo
(8 posts) Bio
|
Date
| Reply #6 on Sat 07 May 2011 06:01 AM (UTC) |
Message
| Yep, triggers are enabled. | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #7 on Sat 07 May 2011 06:04 AM (UTC) |
Message
| Huh, I don't know. Post your MUSHclient version and maybe Nick will have an idea. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #8 on Sat 07 May 2011 06:19 AM (UTC) |
Message
|
|
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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| CarpeMofo
(8 posts) Bio
|
Date
| Reply #9 on Sat 07 May 2011 06:23 AM (UTC) |
Message
| You mentioning my version reminded me to update... Now it works perfectly! Thank you! | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #10 on Sat 07 May 2011 06:25 AM (UTC) |
Message
| *facepalm* That was easy. :D |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | 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.
31,462 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top