33 lines
938 B
Plaintext
33 lines
938 B
Plaintext
// * Normal IQ + Is able to level up
|
|
// Auldar: Modified to allow for the presence or absense of 15-19 resrefs for henchmen
|
|
|
|
#include "nw_i0_plot"
|
|
#include "hench_i0_henlvl"
|
|
|
|
int StartingConditional()
|
|
{
|
|
int iResult;
|
|
float fAuldarVersion = GetLocalFloat(OBJECT_SELF,"AuldarVersion");
|
|
int nLevel = (GetHitDice(GetPCSpeaker()) -1 -INT_FUDGE);
|
|
ExecuteScript("henchauldar",OBJECT_SELF);
|
|
if (GetLocalFloat(OBJECT_SELF,"AuldarVersion") >= 0.5)
|
|
{
|
|
if (nLevel > 16) {nLevel = 16;}
|
|
}
|
|
else
|
|
{
|
|
if (nLevel > 11) {nLevel = 11;}
|
|
}
|
|
// * April 20. this option should not even come up if the henchman is at max levels
|
|
if (GetHitDice(OBJECT_SELF) < (nLevel +INT_FUDGE))
|
|
{
|
|
iResult = (CheckIntelligenceNormal() && (GetCanLevelUp(GetPCSpeaker())));
|
|
}
|
|
else
|
|
{
|
|
iResult = FALSE;
|
|
}
|
|
SetLocalFloat(OBJECT_SELF,"AuldarVersion",fAuldarVersion);
|
|
return iResult;
|
|
}
|