Further file organization
Further file organization
This commit is contained in:
40
nwn/nwnprc/trunk/epicspellscripts/ss_ep_unholydisc.nss
Normal file
40
nwn/nwnprc/trunk/epicspellscripts/ss_ep_unholydisc.nss
Normal file
@@ -0,0 +1,40 @@
|
||||
//:://////////////////////////////////////////////
|
||||
//:: FileName: "ss_ep_unholydisc"
|
||||
/* Purpose: Unholy Disciple
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Boneshank
|
||||
//:: Last Updated On:
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "prc_alterations"
|
||||
#include "inc_epicspells"
|
||||
|
||||
void main()
|
||||
{
|
||||
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
||||
SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_NECROMANCY);
|
||||
|
||||
if (!X2PreSpellCastCode())
|
||||
{
|
||||
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
||||
return;
|
||||
}
|
||||
if (GetCanCastSpell(OBJECT_SELF, SPELL_EPIC_UNHOLYD))
|
||||
{
|
||||
effect eSummon;
|
||||
eSummon = EffectSummonCreature("unholy_disciple",496,1.0f);
|
||||
eSummon = ExtraordinaryEffect(eSummon);
|
||||
if (GetAlignmentGoodEvil(OBJECT_SELF) != ALIGNMENT_GOOD)
|
||||
{
|
||||
//Apply the summon visual and summon the disciple.
|
||||
MultisummonPreSummon();
|
||||
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eSummon, PRCGetSpellTargetLocation());
|
||||
}
|
||||
else
|
||||
SendMessageToPC(OBJECT_SELF, "You must be non-good to summon an unholy disciple.");
|
||||
}
|
||||
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user