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.
 Entire forum ➜ MUSHclient ➜ General ➜ Question about Text Output Colouring

Question about Text Output Colouring

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


Posted by Azoroth   (31 posts)  Bio
Date Fri 09 Jan 2009 02:20 PM (UTC)
Message
What I am trying to do is color the individual output text that I am sending to be display on my client...not quite sure how to do this so I figured I'd ask here. Here is an example of a trigger I made to show this.



<triggers>
<trigger
custom_colour="7"
enabled="y"
match="A bridge over the Morgulduin"
regexp="y"
send_to="2"
sequence="100"
>
<send>[ morgkad, morgsfarlands, morggul, moh1, moh2, moh3 ]</send>
</trigger>
</triggers>


I am trying to colour the send line only, anyone know if I have it right, or if it's just coloring what my trigger is matching upon?

Thanks,

Azo
Top

Posted by Azoroth   (31 posts)  Bio
Date Reply #1 on Fri 09 Jan 2009 03:35 PM (UTC)
Message
Hmm, another question on the same thing. I have mud room names colored using this trigger. I'd like to color the output (my send) a different color than the color I have set for the room name. Here is an example of a trigger I have.


<triggers>
<trigger
custom_colour="2"
enabled="y"
match="Inside Caras Galadhon"
regexp="y"
send_to="2"
sequence="100"
>
<send>[ carasr, caras-gala, caras-armoury, caras-heal ]</send>
</trigger>
</triggers>


I'd like to colour the send line differently from my matching line (the mud room name) Anyone able to show me how to do this?

Much thanks
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #2 on Fri 09 Jan 2009 09:08 PM (UTC)
Message
Instead of doing "send to output", do "send to script", and then use ColourNote.

eg.

ColourNote ("blue", "red", "[ carasr, caras-gala, caras-armoury, caras-heal ]")


- Nick Gammon

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

Posted by Azoroth   (31 posts)  Bio
Date Reply #3 on Fri 09 Jan 2009 10:47 PM (UTC)

Amended on Fri 09 Jan 2009 11:05 PM (UTC) by Azoroth

Message
Hmm, I see what you mean. I changed my trigger to test using your example first. This is what the trigger now looks like.



<triggers>
<trigger
custom_colour="2"
enabled="y"
match="Inside Caras Galadhon"
regexp="y"
send_to="12"
sequence="100"
>
<send>ColourNote ("blue", "red", "[ carasr, caras-gala, caras-armoury, caras-heal ]")</send>
</trigger>
</triggers>


The thing is, this really doesn't accomplish what I wanted. I'm not entirely sure if what I want to do is possible. I'll give you a link with a printscreen of what the end result looked like after making this change.

http://s553.photobucket.com/albums/jj396/AzorothStrakast/?action=view&current=CarasTrigger.jpg

As you can see, it merely highlighted the text in the colour red and the actual text colour itself remained blue. I'm looking simply to change the colour of the text itself to red from blue without it being highlighted. If you scroll near the top of that screen shot, you'll notice that my regular output is in blue, I'm just trying to find a way to change it from blue to a different colour. Sorry if this is simple to do or there is something I am missing, I have a rather limited understanding of MUSHclient and don't mean to be bothersome, just trying to clean up the aesthetics of my client a bit.

Any advice in the right direction would be greatly appreciated.

Azo.

(Edit) I've tried other colours, but the issue with highlighting it still remains. If this can't be done, I'll simply live with it.
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #4 on Fri 09 Jan 2009 11:00 PM (UTC)

Amended on Fri 09 Jan 2009 11:06 PM (UTC) by WillFa

Message
Are you talking about the setting "Echo My Input in:" when you hit ALT+0 ? (stuff you type in the input box)

Or are you talking about

ColourNote ("red", "black", "[ carasr, caras-gala, caras-armoury, caras-heal ]") in a trigger?
(btw, ColourNote ( "textcolor", "backgroundcolor", "text to print") is the format)

Or the Note Colour setting on CTRL+SHIFT+6 to change the default color of what gets Note'd/printed in scripts?


You're not being bothersome, I'm just unclear what it is you're asking. :)
Top

Posted by Azoroth   (31 posts)  Bio
Date Reply #5 on Fri 09 Jan 2009 11:14 PM (UTC)

Amended on Fri 09 Jan 2009 11:24 PM (UTC) by Azoroth

Message
Ahhhhh!!!! Thank you VERY VERY much WillFA, the CTRL+SHIFT+6 was exactly what I was looking for! :D Can't tell you how much happier this makes me.

Thank you all for the advice, I'm on my way to making my client look alot cleaner and more personalized now because of this.
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #6 on Fri 09 Jan 2009 11:48 PM (UTC)
Message
Very happy to help. :)

ya know that changing that setting changes all the Note()s.

If you ever just want to have one trigger print in a different color you can use
ColourNote("goldenrod", "black", "Hi There!")
to print "Hi There!" in yellow(ish) text on a black background. (so you want have that highlight effect that you saw before)

Hope you like MC as much as we do. :)
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #7 on Sat 10 Jan 2009 12:10 AM (UTC)
Message
I'm glad you are happy. :)

When I posted this code:


ColourNote ("blue", "red", "[ carasr, caras-gala, caras-armoury, caras-heal ]")


I assumed you would change blue and red to your desired colours. Also you can leave either one blank to have it unchanged. So for example, to have orange text on your normal background:


ColourNote ("orange", "", "[ carasr, caras-gala, caras-armoury, caras-heal ]")


- Nick Gammon

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

Posted by Azoroth   (31 posts)  Bio
Date Reply #8 on Sat 10 Jan 2009 04:13 AM (UTC)

Amended on Sat 10 Jan 2009 04:20 AM (UTC) by Azoroth

Message
Oh, awesome Nick :) That completely cleared up the issue with the highlighting from previous one. Yeah, I did try my own colours, I just threw yours into the trigger for a quick experiment. What I didn't know was by leaving one blank would solve my problem :) Thanks for the tip, I'm using it on the 150 or so triggers I have that do similar things!

#Edit: Actually, I was just going to live with some of the output changes, but this allows me to customize some of the comsetic aspects of my client precisely how I wanted. Again, many thanks, this was exactly what I was looking for. And the output change was extremely helpful as well. Now...to figure out how to adapt your targetting plugin to my mud :P...been using the old x * with a @target and that just doesn't fly anymore on a highly competitive pk mud.
Top

Posted by Azoroth   (31 posts)  Bio
Date Reply #9 on Mon 12 Jan 2009 06:51 AM (UTC)
Message
Hey, me again with a question using ColourNote.

What I'm trying to accomplish here is color the [ ] symbols in my trigger red and colour the text inside the symbols white. Here's the trigger I've been fiddling with, but whatever I seem to shift, results in an error.


<triggers>
<trigger
enabled="y"
match="Erebor Gate"
regexp="y"
send_to="12"
sequence="100"
>
<send>ColourNote ("red", "[", "white", "ereb (Thran gate), "red", "]")</send>
</trigger>
</triggers>

Any help in what I'm doing wrong would be greatly appreciated.

Azo
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #10 on Mon 12 Jan 2009 07:11 AM (UTC)
Message
Even if you're leaving the background color blank, you still need a place holder for it.

ColourNote ("red", "", "[", "white", "", "ereb (Thran gate)", "red", "", "]")</send>
Top

Posted by Azoroth   (31 posts)  Bio
Date Reply #11 on Mon 12 Jan 2009 07:59 AM (UTC)
Message
Ah ok, I understand now. Thank you once again :)
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.


29,798 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.