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

38 lines
767 B
Plaintext

int StartingConditional()
{
int iResult;
int iFreed;
int iFree;
object oNPC;
string sQuestGiver;
iResult = TRUE;
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 = FALSE;
sQuestGiver = GetLocalString(GetPCSpeaker(),"QuestGiver");
if (sQuestGiver != GetTag(OBJECT_SELF))
{
iResult = FALSE;
}
return iResult;
}