PRC8_fork/trunk/scripts/wol_t_cptmortum.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

37 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name Caput Mortuum test script
//:: FileName wol_t_cptmortum
//:://////////////////////////////////////////////
/*
Ability to cast death knell as a divine spell
Any nongood alignment
Ability to rebuke undead
*/
#include "prc_inc_template"
void main()
{
object oPC = OBJECT_SELF;
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);
if(!GetHasFeat(FEAT_TURN_UNDEAD, oPC))
{
//DoDebug("wol_t_blackarch doesn't have FE: Elf");
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
// Can't cast Death Knell as a divine spell
if(!PRCGetIsRealSpellKnown(SPELL_DEATH_KNELL, oPC) && 3 > GetLevelByClass(CLASS_TYPE_CLERIC, oPC))
{
//DoDebug("wol_t_blackarch doesn't have BAB");
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
// Can't be good
if(GetAlignmentGoodEvil(oPC) == ALIGNMENT_GOOD)
{
//DoDebug("wol_t_blackarch doesn't have Drow");
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
//DoDebug("wol_t_blackarch end of script");
}