Further file organization
Further file organization
This commit is contained in:
30
nwn/nwnprc/trunk/scripts/wol_t_durind.nss
Normal file
30
nwn/nwnprc/trunk/scripts/wol_t_durind.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user