Item Text Color Chart?
#1
Posté 18 juin 2012 - 09:18
<cþ>Item Name</c> = Lime Green
<c¥>Item Name</c>= Dark Green
but what are the others or where could I find a cheat sheet?
#2
Posté 18 juin 2012 - 09:30
GREEN = <c0¡0>Item Name</c>
LIME = <c¡Òd>Item Name</c>
BLUE = <czz¡>Item Name</c>
PALEBLUE = <cdd¡>Item Name</c>
VIOLET = <c¡dÑ>Item Name</c>
PURPLE = <c¢Gd>Item Name</c>
SANDY = <c¢dG>Item Name</c>
DARKRED = <c¡*0>Item Name</c>
PINK = <cÒdd>Item Name</c>
LIGHTPINK = <cÒdd>Item Name</c>
GREY = <c¡¡±>Item Name</c>
#3
Posté 18 juin 2012 - 10:06
<cÿ~ > orange </c> <cÍf > orange</c><c¡P >orange</c><ci2 >orange</c><c2" >orange</c><c"">orange</c>
<cÿÿ > yellow </c> <cÍÍ > yellow</c><c¡¥ >yellow</c><cii >yellow</c><c22 >yellow</c><c"" >yellow</c>
<c ÿ > green </c> <c Í > green</c><c ¡ >green</c><c i >green</c><c 2 >green</c><c " >green</c>
<c ÿÿ> cyan </c> <c ÍÍ> cyan</c><c ¡¥>cyan</c><c ii>cyan</c><c 22>cyan</c><c "">cyan</c>
<c ÿ> blue </c> <c Í> blue</c><c ¡>blue</c><c i>blue</c><c 2>blue</c><c ">blue</c>
<cÿ ÿ> purple </c> <cÍ Í> purple</c><c¡ ¥>purple</c><ci i>purple</c><c2 2>purple</c><c" ">purple</c>
<cÿÿÿ> white </c> <cÍÍÍ> white</c><c¡¥¥>white</c><ciii>white</c><c222>white</c><c""">white</c>
different versions of colors, left is darkest followed by lightest
#4
Posté 18 juin 2012 - 10:44
http://nwvault.ign.c...r.detail&id=931
http://nwn.wikia.com...i/Custom_tokens
http://social.biowar...15542/1#8633926
and why not my color include:
aa_inc_colors
Modifié par henesua, 18 juin 2012 - 10:47 .
#5
Posté 19 juin 2012 - 07:35
Basically you type <CUSTOM6000> where you replace the 000 with the RGB value you want the text to be.
so 000 is black
900 red
099 cyan
400 dark red
202 very dark purple
etc..
<CUSTOM7000> equals <\\c>, I added it for consistency and since writing <\\c> doesn't work in all the places where custom tokens do.
If you don't know what RGB is you can google it, its very simple.
Basically if you wanted an item named Reddy you would type this as its name:
<CUSTOM6900>Reddy<CUSTOM7000>
Modifié par Xardex, 19 juin 2012 - 07:37 .
#6
Posté 19 juin 2012 - 09:34
_inc_color_text_.nss (Note: for example only, do not use quoted color strings, use download instead)
Known bugs: "red" and "tan" color codes should be changed to longer keywords, as they get confused with 3 letter codes.string sColors = " !!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ¡¢£¤¥§©©ª«¬®¯°±²³´µ¶·¸¸º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïñòóôõö÷øùúûüýþþþ";
// Returns Pseudo-Ascii Character (for color use only, not accurate Ascii)
string ASCII(int iAsciiCode) // 0 - 255
{
int ASCIIReturn = iAsciiCode;
if (ASCIIReturn<0) ASCIIReturn = 0;
else if (ASCIIReturn>255) ASCIIReturn = 255;
return GetSubString(sColors,iAsciiCode+1,1);
}
// Returns Pseudo-Ascii Integer Value (for color use only, not accurate Ascii)
int ASCIIToInt(string sLookup)
{
return FindSubString(sColors, sLookup)-1;
}
// Returns a Color Code Based on Pseudo-Ascii
string RGB(int iR, int iG, int iB) // 0-255
{
return "<c"+ASCII(iR)+ASCII(iG)+ASCII(iB)+">";
}
const string TEXT_COLOR_RED = "þ ";
const string TEXT_COLOR_ORANGE = "þœ ";
const string TEXT_COLOR_YELLOW = "þþ ";
const string TEXT_COLOR_GREEN = " þ ";
const string TEXT_COLOR_BLUE = " þ";
const string TEXT_COLOR_CYAN = " þþ";
const string TEXT_COLOR_PURPLE = "þ þ";
const string TEXT_COLOR_WHITE = "þþþ";
const string TEXT_COLOR_GREY = "~~~";
const string TEXT_COLOR_CRIMSON = "‘ ";
const string TEXT_COLOR_EMERALD = " ~ ";
const string TEXT_COLOR_BROWN = "Ç~6";
const string TEXT_COLOR_AZURE = "~~þ";
string RGBColorText(string RGBCode, string sText)
{
return "<c"+ RGBCode +">"+ sText +"</c>";
}
//ColorText Function, uses either a color token or a 3-Digit Color Code
//Codes can be copied and pasted to item and placable names, descriptions, etc
string ColorText(string ColorCode, string sText)
{
if (ColorCode == "crimson") ColorCode = "<c‘ >";
else if (ColorCode == "red") ColorCode = "<cþ >";
else if (ColorCode == "plum") ColorCode = "<cþww>";
else if (ColorCode == "tangerine") ColorCode = "<cÇZ >";
else if (ColorCode == "orange") ColorCode = "<cþœ >";
else if (ColorCode == "peach") ColorCode = "<cþÇ >";
else if (ColorCode == "amber") ColorCode = "<cœœ >";
else if (ColorCode == "yellow") ColorCode = "<cþþ >";
else if (ColorCode == "lemon") ColorCode = "<cþþw>";
else if (ColorCode == "emerald") ColorCode = "<c ~ >";
else if (ColorCode == "green") ColorCode = "<c þ >";
else if (ColorCode == "lime") ColorCode = "<cwþw>";
else if (ColorCode == "midnight") ColorCode = "<c t>";
else if (ColorCode == "navy") ColorCode = "<c ‘>";
else if (ColorCode == "blue") ColorCode = "<c þ>";
else if (ColorCode == "azure") ColorCode = "<c~~þ>";
else if (ColorCode == "skyblue") ColorCode = "<cÇÇþ>";
else if (ColorCode == "violet") ColorCode = "<c¥ ¥>";
else if (ColorCode == "purple") ColorCode = "<cþ þ>";
else if (ColorCode == "lavender") ColorCode = "<cþ~þ>";
else if (ColorCode == "black") ColorCode = "<c >";
else if (ColorCode == "slate") ColorCode = "<c666>";
else if (ColorCode == "darkgrey") ColorCode = "<cZZZ>";
else if (ColorCode == "grey") ColorCode = "<c~~~>";
else if (ColorCode == "lightgrey") ColorCode = "<c¯¯¯>";
else if (ColorCode == "white") ColorCode = "<cþþþ>";
else if (ColorCode == "turquoise") ColorCode = "<c ¥¥>";
else if (ColorCode == "jade") ColorCode = "<c tt>";
else if (ColorCode == "cyan") ColorCode = "<c þþ>";
else if (ColorCode == "cerulean") ColorCode = "<cœþþ>";
else if (ColorCode == "aqua") ColorCode = "<cZǯ>";
else if (ColorCode == "silver") ColorCode = "<c¿¯Ç>";
else if (ColorCode == "rose") ColorCode = "<cÎFF>";
else if (ColorCode == "pink") ColorCode = "<cþV¿>";
else if (ColorCode == "wood") ColorCode = "<c‘Z(>";
else if (ColorCode == "brown") ColorCode = "<cÇ~6>";
else if (ColorCode == "tan") ColorCode = "<cߑF>";
else if (ColorCode == "flesh") ColorCode = "<cû¥Z>";
else if (ColorCode == "ivory") ColorCode = "<cþÎ¥>";
else if (ColorCode == "gold") ColorCode = "<cþ¿6>";
else if (ColorCode == "random")
{
switch (d3())
{
case 1: ColorCode = RGB(Random(128)+128,Random(192)+64,Random(192)+64); break;
case 2: ColorCode = RGB(Random(192)+64,Random(128)+128,Random(192)+64); break;
case 3: ColorCode = RGB(Random(192)+64,Random(192)+64,Random(128)+128); break;
}
}
return ColorCode + sText + "</c>";
}
int LoInt(int iInt1, int iInt2) {return (iInt1>iInt2)?iInt2:iInt1;}
int HiInt(int iInt1, int iInt2) {return (iInt1>iInt2)?iInt1:iInt2;}
string JumbleCode(string JColor1, string JColor2)
{
string sR1=(GetSubString(JColor1,0,1));
string sG1=(GetSubString(JColor1,1,1));
string sB1=(GetSubString(JColor1,2,1));
string sR2=(GetSubString(JColor2,0,1));
string sG2=(GetSubString(JColor2,1,1));
string sB2=(GetSubString(JColor2,2,1));
int RHi=HiInt(ASCIIToInt(sR1),ASCIIToInt(sR2));
int RLo=LoInt(ASCIIToInt(sR1),ASCIIToInt(sR2));
int GHi=HiInt(ASCIIToInt(sG1),ASCIIToInt(sG2));
int GLo=LoInt(ASCIIToInt(sG1),ASCIIToInt(sG2));
int BHi=HiInt(ASCIIToInt(sB1),ASCIIToInt(sB2));
int BLo=LoInt(ASCIIToInt(sB1),ASCIIToInt(sB2));
return ASCII(Random(RHi-RLo)+RLo+1)+ASCII(Random(GHi-GLo)+GLo+1)+ASCII(Random(BHi-BLo)+BLo+1);
}
//Jumble Text randomly selects a color between Color1 and Color2
string JumbledText(string Color1, string Color2, string JumbleString)
{
int j;
string ReturnString;
while (j<(GetStringLength(JumbleString)))
{
ReturnString = ReturnString+"<c"+JumbleCode(Color1,Color2)+">"+GetSubString(JumbleString,j,1)+"</c>";
j++;
}
return ReturnString;
}
string ChaoticText(string RandomString)
{
int i=1;
string ReturnString;
while (i<(GetStringLength(RandomString)+1))
{
ReturnString = ReturnString + ColorText("random",GetSubString(RandomString,i-1,1));
i++;
}
return ReturnString;
}
I use keywords "rose" and "beige" now
(Yet another thing I need to update...)
Modifié par Carcerian, 19 juin 2012 - 09:51 .
#7
Posté 02 juillet 2012 - 10:58
"thank you kindly!" these came in very useful.
#8
Posté 03 juillet 2012 - 12:15
I use the Hitch Hikers guide to Color Tokens by Gaoneng myself.
#9
Posté 03 juillet 2012 - 05:34
(Includes 3-Char-Code/Ascii Bugfixes)
Modifié par Carcerian, 03 juillet 2012 - 05:39 .





Retour en haut







