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