//Script Name: coloritemrandom //////////////////////////////////////////////// //Created by: Genisys / Guile //ON: 6/17/08 //////////////////////////////////////////////// /* **Notes** This script goes in the ActionTaken event of the coloritemconv conversation on the line which allow the player to select a random color for their item. */ //////////////////////////////////////////////// //WARNING: DO NOT TOUCH THE STRINGS BELOW THIS LINE!!! const string COLORTOKEN = " ##################$%&'()*+,-./0123456789:;;==?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[[]^_`abcdefghijklmnopqrstuvwxyz{|}~~"; // returns a properly color-coded string based on specified RGB values string ColorString(int nRed=255, int nGreen=255, int nBlue=255) { return ""; } ///////////////////////////////////////////////////// //Main Script// void main() { //Define Major Variables object oPC = GetPCSpeaker(); string sName = GetLocalString(oPC, "ONNC"); string sMod; string sToken; string sNew; int a; int b; int c; object oItem; //Cycle through thier inventory to find the proper item(s) oItem = GetFirstItemInInventory(oPC); while(GetIsObjectValid(oItem)==TRUE) { //Change all items with the same name to a different color if(GetName(oItem)==sName) { //Let's make sure it doesn't already have a color on it!!! if(GetStringLeft(sName, 2)=="