forked from Jaysyn/PRC8
32 lines
976 B
Plaintext
32 lines
976 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Baalzebul Summon 2
|
||
|
//:: prc_baal_sum2
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
Summons a Double-Axe Wielding Devil
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
#include "prc_alterations"
|
||
|
#include "x2_inc_spellhook"
|
||
|
#include "inc_utility"
|
||
|
void main()
|
||
|
{
|
||
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
||
|
SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_CONJURATION);
|
||
|
|
||
|
//Declare major variables
|
||
|
|
||
|
int nDuration = 15;
|
||
|
float fDelay = 3.0;
|
||
|
effect eSummon = EffectSummonCreature("baalsummon2",VFX_FNF_SUMMON_GATE, fDelay);
|
||
|
|
||
|
//Apply the VFX impact and summon effect
|
||
|
MultisummonPreSummon(OBJECT_SELF);
|
||
|
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, PRCGetSpellTargetLocation(), TurnsToSeconds(nDuration));
|
||
|
|
||
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
||
|
// Getting rid of the integer used to hold the spells spell school
|
||
|
}
|
||
|
|