[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  VBscript
. . -> [Subject]  changing colours in world.ColourNote
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

changing colours in world.ColourNote

It is now over 60 days since the last post. This thread is closed.     [Refresh] 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.

[Go to top] top

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

world.ColourTell "red", "", "Hello "
world.ColourNote "green", "", "there."
[Go to top] top

Posted by Nick Gammon   Australia  (21,652 posts)  [Biography] 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
[Go to top] 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. :)
[Go to top] top

Posted by Nick Gammon   Australia  (21,652 posts)  [Biography] 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
[Go to top] 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.
[Go to top] 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.


4,218 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]