EN6_PRC8/_module/nss/en4_hench_isdead.nss
Jaysyn904 a6f6db7303 Initial commit
Initial commit.  Updated release archive.
2024-06-13 15:08:33 -04:00

34 lines
555 B
Plaintext

object GetHench(object oPC);
int StartingConditional()
{
int iResult;
int iGold;
int iIndex;
int iHench;
string sTag;
object oHench;
object oPC;
oPC=GetPCSpeaker();
iResult = FALSE;
iHench=GetLocalInt(oPC,"HenchmenBought");
iIndex=1;
while (iIndex<=iHench)
{
sTag=GetLocalString(oPC,"Henchman" + IntToString(iIndex));
oHench = GetObjectByTag(sTag);
if (GetIsObjectValid(oHench) && GetIsDead(oHench))
{
iResult = TRUE;
SetLocalString(OBJECT_SELF,"RezTag",sTag);
}
iIndex++;
}
return iResult;
}