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
➜ Highlighting Says
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Raiannon
(8 posts) Bio
|
Date
| Fri 21 Mar 2008 02:17 AM (UTC) |
Message
| I have been trying to figure out a way to make this work all day, and everything I've tried seems not to work. I am trying to create -something- which will take all of the mud's "says" and change the color.
A little background, there's usually all sorts of 'channels' for communication in a MUD. One of the common ones, and the one I'm having an issue with, is the says, yells, and other area related communication.
The MUD I use allows you to change every channels color, as well as many others, through their system. However, their local communication is all grouped under one 'normal' heading with pretty much every other random piece of text - I changed normal to lime green, and suddenly my whole group screen was green, not just the text I wanted to highlight.
Here are a couple examples of how says appear in the mud:
'Hey,' Zolak, the witch says, looking mysterious.
Zolak, the witch says, looking mysterious, 'Hey.'
You say musically, 'Meow.'
A snow white owl says, 'Who whoooo.'
'Meow meow meow,' you say, humming quietly. 'Meow meow.'
The moods are, of course, quite random, as is the text. The only thing that is really constant is the "you say" or "says" because there are postitles, like Zolak, the witch, as well as pretitles, like Sergeant Ransom.
Any help you could give would be absolutely delightful, and probably help save the rest of my hair roots. Thanks a lot. :) | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Fri 21 Mar 2008 02:31 AM (UTC) |
Message
|
Quote:
I changed normal to lime green, and suddenly my whole group screen was green, not just the text I wanted to highlight.
Can you clarify what you are trying to do, and in what way yours didn't work? Perhaps paste what you have tried, see http://www.mushclient.com/copying for how to do that.
If you get a line like:
Zolak, the witch says, looking mysterious, 'Hey.'
... you just want that entire a line a different colour, is that correct?
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Raiannon
(8 posts) Bio
|
Date
| Reply #2 on Fri 21 Mar 2008 02:53 AM (UTC) |
Message
| That's what I want. I've been deleting things as I've been trying them, but I think two of my biggest problems are:
From what I've read, to do something like what I want, I need to use regular expression. The way I've been trying to do it is within the confines of the default system, and trying things like "* says, *". Maybe when I try to convert that to regular expression, it doesn't do well.
The other problem could be in where it's sent to. Some things I found suggested sending to script, but the logical place to me to send it would be output: the world isn't going to do anything with it. It won't do anything as input. I'm asking it to change the input.
I've also tried using the right click to set up highlighting a single word - and that in itself doesn't work. I let it open, change the color, hit okay so it makes the trigger, but when I have someone test it, nothing's highlighted. | Top |
|
Posted by
| Raiannon
(8 posts) Bio
|
Date
| Reply #3 on Fri 21 Mar 2008 02:58 AM (UTC) |
Message
| Part of what I tried, is I did a forum search for highlighting, and tried everything listed under general that seemed to in some way mimick what I wanted to do. I also did a search on color, and alias, as an immortal on my MUD suggested aliases for it, though that didn't seem quite right to me - as I found out. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #4 on Fri 21 Mar 2008 03:03 AM (UTC) |
Message
| You haven't answered my question about what you want to have happen - do you want the whole line coloured?
I know it is frustrating when things don't work, and you feel like deleting them, but it is almost impossible to help when the problem is stated as "I tried something and it didn't work".
My question is: what did you try, exactly? (ie, paste it here), and in what way did it not work? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Raiannon
(8 posts) Bio
|
Date
| Reply #5 on Fri 21 Mar 2008 04:31 AM (UTC) |
Message
| I want the whole line colored, yes. And it wasn't as much deleting it as it was "Okay, that didn't work, let me edit it and try this"
I tried changing the output from world to output. I tried highlighting the word "says", right clicking, and then adding asterisks to it and changing it to regular expression. That didn't work, so I changed it back from regular expression. Still didn't work. So I did a straight right click highlight from says to see if that alone worked, and it didn't, setting the send to to world or output.
I looked through the topics found on by searching for highlight, under general, and none of them were a close enough example to what I wanted to do to provide any real help. I also tried the basic * says*, output %0, and it didnt repeat anything. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #6 on Fri 21 Mar 2008 05:51 AM (UTC) Amended on Fri 21 Mar 2008 05:52 AM (UTC) by Nick Gammon
|
Message
| You should move your focus away from what to put in the send box, because that is irrelevant to merely colouring the incoming lines. Try this, for example:
<triggers>
<trigger
custom_colour="6"
enabled="y"
match="'*' * says, *"
sequence="100"
>
</trigger>
</triggers>
That simply colours a line like:
'Hey,' Zolak, the witch says, looking mysterious.
Meanwhile, this one:
<triggers>
<trigger
custom_colour="6"
enabled="y"
match="* says, *, '*'"
sequence="100"
>
</trigger>
</triggers>
will colour the line:
Zolak, the witch says, looking mysterious, 'Hey.'
Basically you paste the sort of line you want to colour into the "Trigger" box, replace the parts that will change by asterisks, and then simply select the colour you want to change it to. Don't worry about the "send" box, as you aren't trying to react by sending anything.
See: http://www.mushclient.com/pasting for how to copy and paste those examples into MUSHclient. |
- 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.
17,756 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top