VNDSx1.4.8 Colored Text (5)

1 Name: CXBlackCatXD : 2009-10-29 04:10 ID:3vu71Jy/ [Del]

Well, I was wondering how to make the colored text work and I thought I might as well tell everyone, so I got myself a copy of the VNDS script from Umineko (since it used colored text in a couple points in the game).
I'm just randomly guessing (well, maybe not randomly guessing, I tried it) after looking at the scr file that to change the color of the text is something like:
"\x1b[<foreground/text color number>;1m"
as the starter and
"\x1b[0m" for the closing although you don't need the closing
unless you want the colored text to stop before the end of the line.

Here are the color numbers:

30--set foreground color to black (actually greyish)
31--set foreground color to red
32--set foreground color to green
33--set foreground color to yellow
34--set foreground color to blue
35--set foreground color to magenta/purple
36--set foreground color to cyan
37--set foreground color to white
39--set foreground color to default (regular text)

2 Name: Anonymous : 2009-10-29 06:08 ID:vdP0boKv [Del]

3 Name: CXBlackCatXD : 2009-10-29 14:22 ID:3vu71Jy/ [Del]

xD I looked at that and had no idea what it meant, so I just thought this would be easier for people like me to understand in case they want to use it.

4 Name: Hogan : 2009-11-07 00:26 ID:YuxnJE4C [Del]

>>1

I know this sounds noob-ish, but anyway you could turn that into an example?(don't have Umineko to analyse): say, print 'pie' in red?

5 Name: CXBlackCatXD : 2009-11-07 00:44 ID:3vu71Jy/ [Del]

Oh xD. Sure well as an example:

text \x1b[31;1mPie

would just use the regular text function and change the color of the entire line to red, so if its put like this:

text \x1b[31;1mPie
text Blah blah

only Pie would be red. I believe this can also be used like this:

text \x1b[31;1mPie\xab[0m is the heart of everything.

where Pie is in red, but the rest of the sentence is normal (I haven't tried this out yet though).

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification:
Image: