Aschbourne_PRC8/_module/nss/_c_start_conv.nss

17 lines
429 B
Plaintext
Raw Permalink Normal View History

2024-06-14 10:48:20 -04:00
#include "_c_inc_message"
void main()
{
object oPC = GetLastUsedBy();
if(GetIsPC(oPC))
{
int nIndex = GetDataBaseInt(_INDEX_);
SetDataBaseInt(_PAGE_,nIndex);
int nHit = GetLocalInt(OBJECT_SELF,M_HIT);
++nHit;
SetLocalInt(OBJECT_SELF,M_HIT,nHit);
AssignCommand(oPC,ClearAllActions(TRUE));
AssignCommand(OBJECT_SELF,ActionStartConversation(oPC,"_c_message_b",TRUE,FALSE));
}
}