//Script Name: coloritemred //////////////////////////////////////////////// //Created by: Genisys / Guile //ON: 6/17/08 //////////////////////////////////////////////// /* **Notes** This script goes in the ActionTaken event of the coloritemconv conversation on the line which will turn the item targeted to the proper color that matches this script's name (ie coloritemwhite script goes on the line which changes the color to white!) **These GetRGB(#,#,#) are the functions you use to get the proper color for the token you are setting on the item name.** GetRGB() := WHITE // no parameters, default is white GetRGB(15,15,1):= YELLOW GetRGB(15,5,1) := ORANGE GetRGB(15,1,1) := RED GetRGB(7,7,15) := BLUE GetRGB(1,15,1) := NEON GREEN GetRGB(1,11,1) := GREEN GetRGB(9,6,1) := BROWN GetRGB(11,9,11):= LIGHT PURPLE GetRGB(12,10,7):= TAN GetRGB(8,1,8) := PURPLE GetRGB(13,9,13):= PLUM GetRGB(1,7,7) := TEAL GetRGB(1,15,15):= CYAN GetRGB(1,1,15) := BRIGHT BLUE */ //////////////////////////////////////////////// ///PROTOTYPE/// //This color system is by Genji, w/ special thanks to //ADAL-Miko & Rich Dersheimer for their help to Genji :) string GetRGB(int red = 15,int green = 15,int blue = 15); //Main Script// void main() { //Define Major Variables object oPC = GetPCSpeaker(); string sName = GetLocalString(oPC, "ONNC"); //string sToken = GetRGB(#,#,#); //(This is the proper function you need to create below!) string sToken = GetRGB(15,1,1); //Red string sMod; //Let's make sure it doesn't already have a color on it!!! if(GetStringLeft(sName, 2)==" 15) red = 15; if(green > 15) green = 15; if(blue > 15) blue = 15; return ""; }