EN6_PRC8/_module/nss/qst_hasitem_npc3.nss

20 lines
379 B
Plaintext
Raw Permalink Normal View History

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