PoA_PRC8/module/nss/end_dm_npc_chat.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

20 lines
449 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
object oArea = GetArea(oPC);
object oThing;
//Set that the DM is finished controlling speech of objects..
SetLocalInt(oPC, "DM_NPC_CHAT", 0);
//Clear all variables from ALL Objects for speech control.
oThing = GetFirstObjectInArea(oArea);
while(GetIsObjectValid(oThing))
{
if(GetLocalInt(oThing, "DM_CHAT")==1)
SetLocalInt(oThing, "DM_CHAT", 0);
oThing = GetNextObjectInArea(oArea);
}
}