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

17 lines
424 B
Plaintext

//#include "x0_i0_henchman"
#include "rd_level"
void main()
{
object oPC;
oPC = GetPCSpeaker();
AddHenchman(oPC, OBJECT_SELF);
if (GetHitDice(OBJECT_SELF) < GetHitDice(oPC))
LevelMob(OBJECT_SELF,GetHitDice(oPC)-GetHitDice(OBJECT_SELF));
DelayCommand(1.0, AssignCommand(OBJECT_SELF,ActionForceFollowObject(oPC,5.0)));
//SetLocalString(oPC,"Henchman",GetTag(OBJECT_SELF));
//SetLocalInt(oPC,"RestGold",GetGold(oPC));
}