Initial commit
Initial commit. Updated release archive.
This commit is contained in:
33
_module/nss/en4_hench_isdead.nss
Normal file
33
_module/nss/en4_hench_isdead.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user