EN6_PRC8/_module/nss/qst_hasitem_r3.nss

18 lines
352 B
Plaintext
Raw Permalink Normal View History

#include "nw_i0_tool"
int StartingConditional()
{
object oPC;
int iResult;
string sTag;
oPC = GetPCSpeaker();
sTag = GetLocalString(oPC,"QuestItem");
iResult = FALSE;
if (HasItem(oPC,sTag) && GetLocalString(GetPCSpeaker(),"QuestNPC") == GetTag(OBJECT_SELF) && GetLocalInt(GetPCSpeaker(),"QuestResponse") == 3)
iResult = TRUE;
return iResult;
}