Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
29
_module/nss/qst_hench_01.nss
Normal file
29
_module/nss/qst_hench_01.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "x0_i0_henchman"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
object oHenchman;
|
||||
int iRandom;
|
||||
string strTag;
|
||||
iRandom = Random(6)+1;
|
||||
|
||||
switch (iRandom)
|
||||
{
|
||||
case 1: strTag = "en3_bupo"; break;
|
||||
case 2: strTag = "en3_fangore"; break;
|
||||
case 3: strTag = "en3_cason"; break;
|
||||
case 4: strTag = "en3_gordon"; break;
|
||||
case 5: strTag = "en3_sion"; break;
|
||||
case 6: strTag = "en3_trent"; break;
|
||||
}
|
||||
|
||||
oPC = GetPCSpeaker();
|
||||
oHenchman = CreateObject(OBJECT_TYPE_CREATURE,strTag,GetLocation(oPC));
|
||||
AddHenchman(oPC,oHenchman);
|
||||
|
||||
if (GetHitDice(oPC) > GetHitDice(oHenchman))
|
||||
LevelUpXP1Henchman(oPC);
|
||||
|
||||
SetLocalInt(GetPCSpeaker(),"Henchman",1);
|
||||
}
|
Reference in New Issue
Block a user