EN4_PRC8/_module/nss/en4_fd_checknpcs.nss
Jaysyn904 b464d8da05 Initial Commit
Initial Commit [v1.32PRC8]
2025-04-03 13:38:45 -04:00

27 lines
484 B
Plaintext

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;
}