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 ➜ 5 different colors in 1 single pose

5 different colors in 1 single pose

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


Posted by BB   (2 posts)  Bio
Date Sun 14 Dec 2003 03:36 AM (UTC)
Message
Hello,

If I want five words, each in a different color, but in a single pose, how do I do that?


Thanks.
Top

Posted by Ian Kirker   (30 posts)  Bio
Date Reply #1 on Mon 15 Dec 2003 10:18 PM (UTC)
Message
Isn't this more of a mud-specific thing, rather than a client-related one?

-I-
Top

Posted by BB   (2 posts)  Bio
Date Reply #2 on Tue 30 Dec 2003 07:15 PM (UTC)
Message
No. I want to know how to have the mushclient highlight different names in different colors in a same pose. (for example, tw different colos for two different characters, mentioned in the same pose.)
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #3 on Tue 30 Dec 2003 10:16 PM (UTC)
Message
Are you trying to do this when you send the poses or when you get em from the mud? Sending them is trivially easy, changing them in received text is somewhat difficult and requires large amounts of scripting. There are also a great many examples in the various threads on how to colorize text after its been received.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #4 on Wed 31 Dec 2003 04:48 AM (UTC)
Message
If all you want to do is colour *incoming* messages to show particular people that is very easy. You can make a trigger like this:


<triggers>
  <trigger
   custom_colour="17"
   enabled="y"
   match="Kaeawin"
   regexp="y"
   repeat="y"
   sequence="100"
   other_text_colour="yellow"
   other_back_colour="teal"
  >
  </trigger>
</triggers>


This will highlight the word "Kaeawin" (eg. your friend) on any incoming line in yellow-on-teal colour. You can then add additional triggers to highlight different people in different colours.

If you want to highlight different people in the *same* colour you can "or" them together like this:


match="Kaeawin|Legiradfrid|Tiadus"


This would highlight any of those three names.


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