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 ➜ VBscript ➜ changing colours in world.ColourNote

changing colours in world.ColourNote

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


Posted by Guest1   USA  (256 posts)
Date Sat 09 Nov 2002 10:36 AM (UTC)
Message
umm.. I think I saw a thread on this once but can't locate it. Can I have text colours change on the same line on a world.note? If so, what is the syntax?

world.ColourNote "red", "", "Hello there"

gives red text on existing (black) background, but if I wanted, for example, 'hello' in red and 'there' in green, how would I write that? I tried

world.ColourNote "red", "", "Hello" "green", "", "there"

just to see if it worked, but it spat the dummy of course.

Top

Posted by Vaejor   (120 posts)  Bio
Date Reply #1 on Sat 09 Nov 2002 01:02 PM (UTC)
Message
Try:

world.ColourTell "red", "", "Hello "
world.ColourNote "green", "", "there."
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #2 on Sat 09 Nov 2002 07:55 PM (UTC)
Message

I did a recent plugin that simplifies that.

See Sending coloured text to the world window with ease .

Using that you can imbed colours like this:

ColourNote ("~R This is red ~G This is green ~B This is blue");

Read the description for full details.


- Nick Gammon

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

Posted by Guest1   USA  (256 posts)
Date Reply #3 on Sat 09 Nov 2002 08:38 PM (UTC)
Message
Vaejor the way you have given works, but it puts 'hello' and 'there' on 2 different lines with my set up, and I don't really want a sentence broken up into new lines every time it changes colour.
Nick yup I'll look into that one more later. Thanks heaps, hopefully has solved the problem.
cheers for your replies. :)
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #4 on Sun 10 Nov 2002 12:09 AM (UTC)
Message
Are you sure you typed "colourtell" on the first line and not "colournote"? Colourtell doesn't start a new line.

- Nick Gammon

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

Posted by Guest1   USA  (256 posts)
Date Reply #5 on Sun 10 Nov 2002 02:51 AM (UTC)
Message
bingo, that was it :) thanks 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.


18,724 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.