PWE_PRC8/_module/nss/cc_msg.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

15 lines
439 B
Plaintext

void main()
{
object oPC = GetLastUsedBy();
int msgcnt = GetLocalInt(GetModule(), "msgcnt");
if (msgcnt == 0) {
msgcnt = GetCampaignInt(GetModuleName(), "msgcnt");
SetLocalInt(GetModule(), "msgcnt", msgcnt);
}
SetLocalInt(oPC, "cc_level", 0);
SetLocalInt(oPC, "sel", 0);
SetLocalInt(oPC, "showmsg", msgcnt);
SetLocalString(oPC, "cc_event", "init_msg");
ExecuteScript("cc_event", oPC);
}