PRC8_fork/nwn/trunk/scripts/tmp_t_curst.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

36 lines
1001 B
Plaintext

//::///////////////////////////////////////////////
//:: Name Necropolitan template test script
//:: FileName tmp_t_necropol
//::
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By: Tenjac
//:: Created On: 5/6/28
//:://////////////////////////////////////////////
#include "prc_inc_template"
void main()
{
object oPC = OBJECT_SELF;
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);
//if it's already undead, it can't become undead again
if(GetHasTemplate(TEMPLATE_LICH, oPC) ||
/* GetHasTemplate(TEMPLATE_BAELNORN, oPC) || */
GetHasTemplate(TEMPLATE_DEMILICH, oPC) ||
GetLevelByClass(CLASS_TYPE_BAELNORN, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_LICH, oPC) > 0)
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
// Humanoid only
if(!PRCAmIAHumanoid(oPC))
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
}