changing colours in world.ColourNote

Posted by Guest1 on Sat 09 Nov 2002 10:36 AM — 6 posts, 25,665 views.

USA #0
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.

#1
Try:

world.ColourTell "red", "", "Hello "
world.ColourNote "green", "", "there."
Australia Forum Administrator #2

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.

USA #3
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. :)
Australia Forum Administrator #4
Are you sure you typed "colourtell" on the first line and not "colournote"? Colourtell doesn't start a new line.
USA #5
bingo, that was it :) thanks again.