Eloge said:
The problem is that as well ColourNote as ColourTell (and I presume, also note) send linefeeds. Can linefeeds be avoided?
Note, print, ColourNote start new lines. ColourNote and Tell don't. That is what they are for. Also you can ColourNote multiple things, eg.
ColourNote ("red", "white", "first thing ", "green", "white", "second thing")
Also string.format could help if it is all one colour. eg.
ColourNote ("green", "white", string.format ("Clio %i, Divine %i, Clio %i, Divine %i, for a total of %4.3f",
clio1, divine1, clio2, divine2, total))
Be aware that if you are doing "send to script" (rather than using a script file) then the % signs need to be doubled to %% in string.format.
http://www.gammon.com.au/scripts/doc.php?lua=string.format
|