34 lines
752 B
Plaintext
34 lines
752 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//::
|
||
|
//:: ra_npc_talkcheck.nss
|
||
|
//::
|
||
|
//:: Copyright (c) 2022 Project RATDOG
|
||
|
//::
|
||
|
//::
|
||
|
//:://////////////////////////////////////////////
|
||
|
//::
|
||
|
//:: Checks that a PC has spoken with a given NPC.
|
||
|
//::
|
||
|
//:://////////////////////////////////////////////
|
||
|
//::
|
||
|
//:: Created By: Jaysyn
|
||
|
//:: Created On: 20220618
|
||
|
//::
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
int StartingConditional()
|
||
|
{
|
||
|
//:: Declare major variables
|
||
|
object oPC = GetPCSpeaker();
|
||
|
object oNPC = OBJECT_SELF;
|
||
|
string sTag = GetTag(oNPC);
|
||
|
|
||
|
//:: Check if this is the first time spoken to
|
||
|
if (GetLocalInt(oPC,"Spoke2"+sTag) == 0)
|
||
|
{
|
||
|
return TRUE;
|
||
|
}
|
||
|
return FALSE;
|
||
|
}
|
||
|
|