Register forum user name Search FAQ

Gammon Forum

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 ➜ Question about channel colors

Question about channel colors

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Wolfwoman   (13 posts)  Bio
Date Sun 25 Nov 2001 08:58 AM (UTC)
Message
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".
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 25 Nov 2001 10:04 AM (UTC)
Message
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)



- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Wolfwoman   (13 posts)  Bio
Date Reply #2 on Sun 25 Nov 2001 12:19 PM (UTC)

Amended on Sun 25 Nov 2001 01:40 PM (UTC) by Wolfwoman

Message
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.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #3 on Mon 26 Nov 2001 09:11 PM (UTC)
Message
Uncheck the "regular expression" box - that is why you get the error message, then the whole line will be coloured.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Wolfwoman   (13 posts)  Bio
Date Reply #4 on Tue 27 Nov 2001 03:57 AM (UTC)
Message
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. :)
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #5 on Wed 28 Nov 2001 12:49 AM (UTC)
Message
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.

- 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.


16,385 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.