30 lines
613 B
Plaintext
30 lines
613 B
Plaintext
|
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;
|
||
|
}
|
||
|
|