Aschbourne_PRC8/_module/nss/mk_onplayerchat.nss
Jaysyn904 903f023230 Major update
Created top hak for crafting dialog.  Moved Bioware creature abilities to top hak.  Fixed DMFI wand handouts.  Added DMFI language handouts.  Added CCOH 6.  Disabled PC corpse system.  Modified new player startup system.  Full compile.  Updated release archive.
2024-09-17 13:24:57 -04:00

26 lines
746 B
Plaintext

#include "mk_inc_editor"
void main()
{
object oPC = GetPCChatSpeaker();
string sChatMessage = GetPCChatMessage();
int bEditorRunning = GetLocalInt(oPC, g_varEditorRunning);
if (bEditorRunning) // the editor is running
{
int bUseOnPlayerChatEvent =
GetLocalInt(oPC, g_varEditorUseOnPlayerChatEvent);
if (bUseOnPlayerChatEvent)
{
SetLocalString(oPC, g_varEditorChatMessageString, sChatMessage);
// the following line is not required but will make everything
// look much better.
SetPCChatMessage(""); // delete the message so it does not
// appear above the player's head
}
return;
}
}