Fixed creature hak name, added more quest persistence
Fixed creature hak name, added more quest persistence. Co-Authored-By: Awetizmo <107700980+Awetizmo@users.noreply.github.com>
This commit is contained in:
29
_module/nss/ra_npc_knowspc.nss
Normal file
29
_module/nss/ra_npc_knowspc.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
//:://////////////////////////////////////////////
|
||||
//:: ra_npc_knowspc.nss
|
||||
//:: Copyright (c) 2022 Project RATDOG
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Returns true if this is not the first time
|
||||
the PC has spoken to this 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;
|
||||
}
|
Reference in New Issue
Block a user