Initial commit
Initial commit [v9.7]
This commit is contained in:
20
_module/nss/hch_if_pre_pale.nss
Normal file
20
_module/nss/hch_if_pre_pale.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
//checks to see if hench has prerequisites for pale master prestige class
|
||||
//written by kookoo 8-13-8
|
||||
int StartingConditional()
|
||||
{
|
||||
object oHench = OBJECT_SELF;
|
||||
//must not be good
|
||||
if (GetAlignmentGoodEvil(oHench) != ALIGNMENT_GOOD)
|
||||
{
|
||||
//must have arcane casting level 3 or higher
|
||||
int nClass;
|
||||
nClass = GetLevelByClass(CLASS_TYPE_BARD, oHench);
|
||||
nClass += GetLevelByClass(CLASS_TYPE_WIZARD, oHench);
|
||||
nClass += GetLevelByClass(CLASS_TYPE_SORCERER, oHench);
|
||||
if (nClass>2)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user