PRC8/nwn/trunk/scripts/wol_t_durind.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

30 lines
757 B
Plaintext

//::///////////////////////////////////////////////
//:: Name Durindana test script
//:: FileName wol_t_durind
//:://////////////////////////////////////////////
/*
Ability to cast 1st-level divine spells
BAB +2
Any nonevil alignment
*/
#include "prc_inc_template"
void main()
{
object oPC = OBJECT_SELF;
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);
if(GetLocalInt(oPC, "PRC_DivSpell1"))
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
if(2 > GetBaseAttackBonus(oPC))
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
if(GetAlignmentGoodEvil(oPC) == ALIGNMENT_EVIL)
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
}