25 lines
682 B
Plaintext
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;
|
|
}
|