Changed folder name.
Changed folder name.
This commit is contained in:
33
_module/nss/set_text_random.nss
Normal file
33
_module/nss/set_text_random.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
//Script Name: setrandomcolor
|
||||
//////////////////////////////////////////
|
||||
//Created by: Genisys / Guile
|
||||
//ON: 6/17/08
|
||||
/////////////////////////////////////////
|
||||
/* **Notes**
|
||||
|
||||
This script goes in the Action Taken
|
||||
of a Converstion Line ONLY! It will
|
||||
colorize ALL Of the items in a PCs
|
||||
inventory a random color, each item a
|
||||
different color!
|
||||
*/
|
||||
////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
int a;
|
||||
int b;
|
||||
int c;
|
||||
|
||||
a = Random(255); b = Random(255); c = Random(255);
|
||||
|
||||
//Store the random color code on them
|
||||
SetLocalInt(oPC, "RANDOM_COLOR_1", a);
|
||||
SetLocalInt(oPC, "RANDOM_COLOR_2", b);
|
||||
SetLocalInt(oPC, "RANDOM_COLOR_3", c);
|
||||
|
||||
//Tell the chat control what color to use..
|
||||
SetLocalInt(oPC, "CHAT_COLOR", 15);
|
||||
}
|
Reference in New Issue
Block a user