Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
26
_module/nss/en4_fd_checknpcs.nss
Normal file
26
_module/nss/en4_fd_checknpcs.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user