27 lines
484 B
Plaintext
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;
|
|
}
|