34 lines
849 B
Plaintext
34 lines
849 B
Plaintext
//Script Name: dm_set_shout_ran
|
|
//////////////////////////////////////////
|
|
//Created by: Genisys / Guile
|
|
//ON: 9/17/08
|
|
/////////////////////////////////////////
|
|
/* **Notes**
|
|
|
|
This script goes in the Action Taken
|
|
of a Converstion Line ONLY! This option
|
|
allows the DM to set and override the color
|
|
of a channel within the module for all text
|
|
typed on that channel..
|
|
*/
|
|
////////////////////////////////////////
|
|
|
|
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(GetModule(), "SRANDOM_COLOR_1", a);
|
|
SetLocalInt(GetModule(), "SRANDOM_COLOR_2", b);
|
|
SetLocalInt(GetModule(), "SRANDOM_COLOR_3", c);
|
|
|
|
//Tell the chat control what color to use..
|
|
SetLocalInt(GetModule(), "CHAT_COLOR", 15);
|
|
}
|