EN4_PRC8/_module/nss/en4_hench_hash.nss

35 lines
479 B
Plaintext
Raw Permalink Normal View History

int HasHenchman(object oPC);
int StartingConditional()
{
int iResult;
iResult = HasHenchman(GetPCSpeaker());
return iResult;
}
int HasHenchman(object oPC)
{
int iResult;
int iIndex;
object oHench;
iResult = FALSE;
iIndex = 1;
while (iIndex < 7)
{
oHench = GetHenchman(oPC,iIndex);
if (GetIsObjectValid(oHench))
{
if (GetTag(oHench) == GetLocalString(oPC,"Henchman"))
iResult = TRUE;
}
iIndex++;
}
return iResult;
}