Initial commit
Initial commit [v9.7]
This commit is contained in:
28
_module/nss/hch_if_pre_ddef.nss
Normal file
28
_module/nss/hch_if_pre_ddef.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
//checks to see if hench has prerequisites for dwarven defender prestige class
|
||||
//written by kookoo 8-13-8
|
||||
int StartingConditional()
|
||||
{
|
||||
object oHench = OBJECT_SELF;
|
||||
//must be lawful
|
||||
int nRace = GetRacialType(oHench);
|
||||
if (nRace == RACIAL_TYPE_DWARF)
|
||||
{
|
||||
if (GetAlignmentLawChaos(oHench) == ALIGNMENT_LAWFUL)
|
||||
{
|
||||
//must have BAB of 7 or better
|
||||
if (GetBaseAttackBonus(oHench) >= 7)
|
||||
{
|
||||
//must have dodge feat
|
||||
if (GetHasFeat(FEAT_DODGE, oHench))
|
||||
{
|
||||
//must have toughness feat
|
||||
if (GetHasFeat(FEAT_TOUGHNESS, oHench))
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user