PoA_PRC8/_module/nss/end_dm_npc_chat.nss

20 lines
449 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
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);
}
}