EN4_PRC8/_module/nss/en4_hench_isdead.nss

21 lines
390 B
Plaintext
Raw Permalink Normal View History

object GetHench(object oPC);
int StartingConditional()
{
int iResult;
object oHench;
iResult = FALSE;
if (GetLocalString(GetPCSpeaker(),"Henchman") != "")
oHench = GetObjectByTag(GetLocalString(GetPCSpeaker(),"Henchman"));
if (GetIsObjectValid(oHench) && GetIsDead(oHench))
iResult = TRUE;
SetCustomToken(201,IntToString(GetHitDice(GetPCSpeaker()) * 250));
return iResult;
}