44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
|
//checks to see if hench has prerequisites for purple dragon knight prestige class
|
||
|
//written by kookoo 8-13-8
|
||
|
int StartingConditional()
|
||
|
{
|
||
|
object oHench = OBJECT_SELF;
|
||
|
//must not be evil
|
||
|
if (GetAlignmentGoodEvil(oHench) != ALIGNMENT_EVIL)
|
||
|
{
|
||
|
if (GetAlignmentLawChaos(oHench) != ALIGNMENT_CHAOTIC)
|
||
|
{
|
||
|
//must have mounted combat feat
|
||
|
if (GetHasFeat(FEAT_MOUNTED_COMBAT, oHench))
|
||
|
{
|
||
|
//must have 2 ranks of spot skill
|
||
|
if (GetSkillRank(SKILL_SPOT, oHench) >= 2)
|
||
|
{
|
||
|
//must have 1 ranks of intimidate skill
|
||
|
if (GetSkillRank(SKILL_INTIMIDATE, oHench) >= 1)
|
||
|
{
|
||
|
//must have 2 ranks of listen skill
|
||
|
if (GetSkillRank(SKILL_LISTEN, oHench) >= 2)
|
||
|
{
|
||
|
//must have 1 ranks of persuade skill
|
||
|
if (GetSkillRank(SKILL_PERSUADE, oHench) >= 1)
|
||
|
{
|
||
|
//must have 2 ranks of ride skill
|
||
|
if (GetSkillRank(SKILL_RIDE, oHench) >= 2)
|
||
|
{
|
||
|
//must have BAB of 4 or better
|
||
|
if (GetBaseAttackBonus(oHench) >= 4)
|
||
|
{
|
||
|
return TRUE;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return FALSE;
|
||
|
}
|