Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
29
_module/nss/qst_c_8.nss
Normal file
29
_module/nss/qst_c_8.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
int iResult;
|
||||
int iFreed;
|
||||
int iFree;
|
||||
object oNPC;
|
||||
|
||||
iResult = FALSE;
|
||||
|
||||
iFreed = 0;
|
||||
oNPC = GetObjectByTag("p2_villager1");
|
||||
iFree = GetLocalInt(oNPC,"Free");
|
||||
if (iFree == 1 || !GetIsObjectValid(oNPC) || GetIsDead(oNPC))
|
||||
iFreed++;
|
||||
oNPC = GetObjectByTag("p2_villager2");
|
||||
iFree = GetLocalInt(oNPC,"Free");
|
||||
if (iFree == 1 || !GetIsObjectValid(oNPC) || GetIsDead(oNPC))
|
||||
iFreed++;
|
||||
oNPC = GetObjectByTag("p2_villager3");
|
||||
iFree = GetLocalInt(oNPC,"Free");
|
||||
if (iFree == 1 || !GetIsObjectValid(oNPC) || GetIsDead(oNPC))
|
||||
iFreed++;
|
||||
|
||||
if (iFreed == 3)
|
||||
iResult = TRUE;
|
||||
|
||||
return iResult;
|
||||
}
|
||||
|
Reference in New Issue
Block a user