Lankhmar_PRC8/_module/nss/hch_if_pre_ddef.nss

29 lines
647 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
//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;
}