/*
* colors_inc.nss
*
* Access to the color tokens provided by The Krit.
************************************************************
* Please use these judiciously to enhance the gaming
* experience. (Overuse of colors detracts from it.)
************************************************************
* Color tokens in a string will change the color from that
* point on when the string is displayed on the screen.
* Every color change should be ended by an end token,
* supplied by ColorTokenEnd().
************************************************************/
///////////////////////////////////////////////////////////////////////////////
// Constants
///////////////////////////////////////////////////////////////////////////////
const string ColorArray = " !##$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]]^_`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������������";
///////////////////////////////////////////////////////////////////////////////
// Prototypes
///////////////////////////////////////////////////////////////////////////////
// Supplies a string that changes the text to the given RGB values.
// Valid parameter values are 0-255.
string ColorToken(int nRed, int nGreen, int nBlue);
// Supplies a string that ends an earlier color change.
string ColorTokenEnd();
///////////////////////////////////////////////////////////////////////////////
// Supplies a string that changes the text to black.
string ColorTokenBlack();
// Supplies a string that changes the text to blue.
string ColorTokenBlue();
// Supplies a string that changes the text to gray.
string ColorTokenGray();
// Supplies a string that changes the text to green.
string ColorTokenGreen();
// Supplies a string that changes the text to light purple.
string ColorTokenLightPurple();
// Supplies a string that changes the text to orange.
string ColorTokenOrange();
// Supplies a string that changes the text to pink.
string ColorTokenPink();
// Supplies a string that changes the text to purple.
string ColorTokenPurple();
// Supplies a string that changes the text to red.
string ColorTokenRed();
// Supplies a string that changes the text to white.
string ColorTokenWhite();
// Supplies a string that changes the text to yellow.
string ColorTokenYellow();
///////////////////////////////////////////////////////////////////////////////
// Supplies a string that changes the text to the color of
// combat messages.
string ColorTokenCombat();
// Supplies a string that changes the text to the color of
// dialog.
string ColorTokenDialog();
// Supplies a string that changes the text to the color of
// dialog actions.
string ColorTokenDialogAction();
// Supplies a string that changes the text to the color of
// dialog checks.
string ColorTokenDialogCheck();
// Supplies a string that changes the text to the color of
// dialog highlighting.
string ColorTokenDialogHighlight();
// Supplies a string that changes the text to the color of
// replies in the dialog window.
string ColorTokenDialogReply();
// Supplies a string that changes the text to the color of
// the DM channel.
string ColorTokenDM();
// Supplies a string that changes the text to the color of
// many game engine messages.
string ColorTokenGameEngine();
// Supplies a string that changes the text to the color of
// saving throw messages.
string ColorTokenSavingThrow();
// Supplies a string that changes the text to the color of
// messages sent from scripts.
string ColorTokenScript();
// Supplies a string that changes the text to the color of
// server messages.
string ColorTokenServer();
// Supplies a string that changes the text to the color of
// shouts.
string ColorTokenShout();
// Supplies a string that changes the text to the color of
// skill check messages.
string ColorTokenSkillCheck();
// Supplies a string that changes the text to the color of
// the talk and party talk channels.
string ColorTokenTalk();
// Supplies a string that changes the text to the color of
// tells.
string ColorTokenTell();
// Supplies a string that changes the text to the color of
// whispers.
string ColorTokenWhisper();
///////////////////////////////////////////////////////////////////////////////
// Returns the name of oPC, surrounded by color tokens, so the color of
// the name is the lighter blue often used in NWN game engine messages.
string GetNamePCColor(object oPC);
// Returns the name of oNPC, surrounded by color tokens, so the color of
// the name is the shade of purple often used in NWN game engine messages.
string GetNameNPCColor(object oNPC);
///////////////////////////////////////////////////////////////////////////////
// Basic Functions
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// ColorToken()
//
// Supplies a string that changes the text to the given RGB values.
// Valid parameter values are 0-255.
//
string ColorToken(int nRed, int nGreen, int nBlue)
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenEnd()
//
// Supplies a string that ends an earlier color change.
//
string ColorTokenEnd()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// Functions by Color
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// ColorTokenBlack()
//
// Supplies a string that changes the text to black.
//
string ColorTokenBlack()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenBlue()
//
// Supplies a string that changes the text to blue.
//
string ColorTokenBlue()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenGray()
//
// Supplies a string that changes the text to gray.
//
string ColorTokenGray()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenGreen()
//
// Supplies a string that changes the text to green.
//
string ColorTokenGreen()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenLightPurple()
//
// Supplies a string that changes the text to light purple.
//
string ColorTokenLightPurple()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenOrange()
//
// Supplies a string that changes the text to orange.
//
string ColorTokenOrange()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenPink()
//
// Supplies a string that changes the text to pink.
//
string ColorTokenPink()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenPurple()
//
// Supplies a string that changes the text to purple.
//
string ColorTokenPurple()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenRed()
//
// Supplies a string that changes the text to red.
//
string ColorTokenRed()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenWhite()
//
// Supplies a string that changes the text to white.
//
string ColorTokenWhite()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenYellow()
//
// Supplies a string that changes the text to yellow.
//
string ColorTokenYellow()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// Functions by Purpose
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// ColorTokenCombat()
//
// Supplies a string that changes the text to the color of
// combat messages.
//
string ColorTokenCombat()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenDialog()
//
// Supplies a string that changes the text to the color of
// dialog.
//
string ColorTokenDialog()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenDialogAction()
//
// Supplies a string that changes the text to the color of
// dialog actions.
//
string ColorTokenDialogAction()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenDialogCheck()
//
// Supplies a string that changes the text to the color of
// dialog checks.
//
string ColorTokenDialogCheck()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenDialogHighlight()
//
// Supplies a string that changes the text to the color of
// dialog highlighting.
//
string ColorTokenDialogHighlight()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenDialogReply()
//
// Supplies a string that changes the text to the color of
// replies in the dialog window.
//
string ColorTokenDialogReply()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenDM()
//
// Supplies a string that changes the text to the color of
// the DM channel.
//
string ColorTokenDM()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenGameEngine()
//
// Supplies a string that changes the text to the color of
// many game engine messages.
//
string ColorTokenGameEngine()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenSavingThrow()
//
// Supplies a string that changes the text to the color of
// saving throw messages.
//
string ColorTokenSavingThrow()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenScript()
//
// Supplies a string that changes the text to the color of
// messages sent from scripts.
//
string ColorTokenScript()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenServer()
//
// Supplies a string that changes the text to the color of
// server messages.
//
string ColorTokenServer()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenShout()
//
// Supplies a string that changes the text to the color of
// shouts.
//
string ColorTokenShout()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenSkillCheck()
//
// Supplies a string that changes the text to the color of
// skill check messages.
//
string ColorTokenSkillCheck()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenTalk()
//
// Supplies a string that changes the text to the color of
// the talk and party talk channels.
//
string ColorTokenTalk()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenTell()
//
// Supplies a string that changes the text to the color of
// tells.
//
string ColorTokenTell()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// ColorTokenWhisper()
//
// Supplies a string that changes the text to the color of
// whispers.
//
string ColorTokenWhisper()
{
return "";
}
///////////////////////////////////////////////////////////////////////////////
// Colored Name Functions
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// GetNamePCColor()
//
// Returns the name of oPC, surrounded by color tokens, so the color of
// the name is the lighter blue often used in NWN game engine messages.
//
//
string GetNamePCColor(object oPC)
{
return "" +
GetName(oPC) + "";
}
///////////////////////////////////////////////////////////////////////////////
// GetNameNPCColor()
//
// Returns the name of oNPC, surrounded by color tokens, so the color of
// the name is the shade of purple often used in NWN game engine messages.
//
string GetNameNPCColor(object oNPC)
{
return "" +
GetName(oNPC) + "";
}