UW2_PRC8/_module/nss/dm_chat_inc.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

55 lines
1.5 KiB
Plaintext

///////////OPTIONAL SETTING(s)/////////////////////////////////
//Set this to 1 if you want to use the Bioware Standard
//Persistent Database, otherwise Local Variables
//will be used instead.. (Database is Permanent till lifted!)
const int nDatabase = 0; //(1 = ON / All Other #s = OFF)
//Set this to 1 if you wish to allow a PC to be able to use
//the DM Chat Control Item (This is useful if you play on as a DM)
//NOTE: a DM must STILL give the PC the item! The PC Can only control
//the chat channels, nothing else!
const int nDMorPC = 1; //Default = 1 (A PC Can use Channel Control)
//Set this to 0 if you do NOT want PC's to use color text.
//This allows the players to speak in colors
//NOTE This can be turned on with the DM Chat Control Item.
const int nPCColorText = 1; //Default = 1 (Allowed)
//////////////////////////////////////////////////////////////
/////////WARNING: DON'T TOUCH THE FUNCTIONS BELOW!////////////
//PROTOTYPE DEFINED
void GetChatConfigurations()
{
//Tell the module banning is persistent!
if(nDatabase==1)
{
//Tell other scripts how to use Variables (Database or Local)
SetLocalInt(GetModule(), "PERSISTENT_CHAT", 1);
}
//Tell the module anyone can control chat (with the DM Item)
if(nDMorPC==1)
{
SetLocalInt(GetModule(), "PC_CHAT_CONTROL", 1);
}
//If the user has set to allow PC Color Chat...
if(nPCColorText==1)
{
//Tell the module the PC's can use color..
SetLocalInt(GetModule(), "COLORS_OK", 1);
}
//Your OnModuleLoad Event Code goes here...
}