Ancordia_PRC8/_module/nss/quest_overfive.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

25 lines
682 B
Plaintext

int StartingConditional()
{
object oPC = GetPCSpeaker();
object oParty = GetFirstFactionMember(oPC);
int nNumber;
while (GetIsObjectValid(oParty))
{
nNumber++;
//include henchmen in the count
object oAssociate = GetAssociate(ASSOCIATE_TYPE_HENCHMAN, oParty, 1);
int k;
for (k = 2; GetIsObjectValid(oAssociate); k++)
{
if (GetLocalInt(oAssociate, "HenchPosition") > 0) nNumber++;
oAssociate = GetAssociate(ASSOCIATE_TYPE_HENCHMAN, oParty, k);
}
if (nNumber > 5) break;
oParty = GetNextFactionMember(oPC);
}
if (nNumber > 5) return TRUE;
return FALSE;
}