35 lines
909 B
Plaintext
35 lines
909 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Name Exordius test script
|
||
|
//:: FileName wol_t_exordius
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
Base attack bonus +3
|
||
|
Knowledge (religion) 2 ranks
|
||
|
Any good alignment
|
||
|
Ability to turn undead
|
||
|
*/
|
||
|
|
||
|
#include "prc_inc_template"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = OBJECT_SELF;
|
||
|
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);
|
||
|
|
||
|
if(!GetHasFeat(FEAT_TURN_UNDEAD, oPC))
|
||
|
{
|
||
|
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
|
||
|
}
|
||
|
if(3 > GetBaseAttackBonus(oPC))
|
||
|
{
|
||
|
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
|
||
|
}
|
||
|
if(GetAlignmentGoodEvil(oPC) != ALIGNMENT_GOOD)
|
||
|
{
|
||
|
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
|
||
|
}
|
||
|
if(2 > GetSkillRank(SKILL_LORE, oPC, TRUE))
|
||
|
{
|
||
|
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
|
||
|
}
|
||
|
}
|