top of page

Coloured Text in NWN2

 

NWN2 uses certain colours that are dictated within the NWN2_Colours.2da file. These colours can be used within the game by calling their name prior to anything you want to use the colour with, by using the format: <color=Magenta>Aurora Chain</color>

This will make the words "Aurora Chain" show in Magenta, and this example was taken directly from the OC TLK file. I have also read that <c=Magenta>Aurora Chain</c> can also be used where c is a shorthand for color. (Note the spelling.)

The code can also be written in the following way that makes use of the basic hexadecimal number format: 

const string CGREEN     = "<color=#008000>";
const string CYELLOW    = "<color=#FFFF00>";

void main()
{
object oPC = GetFirstPC();
string oName = GetName(oPC);
SpeakString((CGREEN + oName + " is green. " + CYELLOW + "This is yellow. " + CGREEN + "Now green again! "), TALKVOLUME_SHOUT);
}

A page from the Wiki also has a list of hexadecimal numbers against colour schemes that can be found here: Wiki Colours It has also been reported that <i>words here</i> for italic and <b>words here</b> for bold can be used, but underline (<u> and </u>) has been reported as not working.

bottom of page