EN4_PRC8/_module/nss/en4_fd_checknpcs.nss

27 lines
484 B
Plaintext
Raw Permalink Normal View History

int StartingConditional()
{
int iNPCHelpers;
int iIndex;
int iReturn;
string sNPC;
string sNPCTag;
object oNPC;
location lLoc;
iNPCHelpers = GetLocalInt(GetModule(),"QuestNPCHelpers");
iIndex = 0;
iReturn = TRUE;
while (iIndex < iNPCHelpers)
{
iIndex++;
sNPC = "QuestNPCHelper" + IntToString(iIndex);
sNPCTag = GetLocalString(GetModule(),sNPC);
if (!GetIsObjectValid(GetObjectByTag(sNPCTag)))
{
iReturn = FALSE;
}
}
return iReturn;
}