Question about channel colors

Posted by Wolfwoman on Sun 25 Nov 2001 08:58 AM — 6 posts, 21,310 views.

#0
Okay, I read on the page about how you can make certain things certian colors. I'm looking for a more in-depth description of how to do something.

In the MUD I play, each channel has a different color. Gossip is grey, OOC is blue, and so on. However, if you sent someone a private "tell", it also appears in grey.

How to I change the color of the "tell" channel so that it appears a different color and thus stops embarassing mischans? *lol* It may be easier to change the color of the "gossip" channel instead because all you have to do is "gossip" to send a message to that channel. Tells involve "tell" and "reply" commands.

And incase you need it, gossip channels read as "You gossip" and "(Person's name) gossips".
Australia Forum Administrator #1
You would simply need two triggers (or one more elaborate one using a regular expression). To do it simply, do this:

Add a trigger:


Trigger: You gossip *
Change colour and style to: whatever (eg. custom 1)


And another:


Trigger: * gossips *
Change colour and style to: whatever (eg. custom 1)


#2
When I do the * gossips * I get the error "Failed: Nothing to repeat at offset 0". Also, "you gossip *" only changes the color of the "gossip" part of "You gossip", not the entire message. *ponders*

So...

You gossip 'This is annoying me'

The only part that changes in that is the word gossip, for some reason. In a perfect world, I'd like to have the message between the (') changed to the color I specify.
Amended on Sun 25 Nov 2001 01:40 PM by Wolfwoman
Australia Forum Administrator #3
Uncheck the "regular expression" box - that is why you get the error message, then the whole line will be coloured.
#4
Ah, yes, brilliant. Duh, I'm a moron. Okay. Taking it one step farther and giving you a whole bunch of dumb questions you don't need to answer:

Is there any way to make just the text in between the quotes change color?

You gossip 'This is stuff in between quotes'

Typically, anything in front of the quotes is white and the text between the quotes tell you what the channel is by the color.

With the stuff I have now, all of the line color is changed.


I don't want to be TOO picky, this works great, but a more uniform look would make my day. :)
Australia Forum Administrator #5
To colour part of a line, you need a regular expression. It will only colour the part that matches. However your problem here is that the word "gossips" would be part of what matches.

You could try this:


Trigger: '.*'
Regular expression: checked
Change colour to: whatever


This would colour anything between quote signs, hopefully that would only be gossip channels, but if not, there isn't much I can do.

The other thing that might work, is if the gossips are already coloured (as you said they were) make the trigger match on the *colour* as well, then you might narrow it down to gossips.