Added "Removed Files" folder
Added "Removed Files" folder in case we needed to review any of them.
This commit is contained in:
64
_module/_removed files/nw_s0_summshad02.nss
Normal file
64
_module/_removed files/nw_s0_summshad02.nss
Normal file
@@ -0,0 +1,64 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Summon Shadow
|
||||
//:: NW_S0_SummShad02.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Spell powerful ally from the shadow plane to
|
||||
battle for the wizard
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: Oct 26, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
/*
|
||||
Spellcast Hook Code
|
||||
Added 2003-06-23 by GeorgZ
|
||||
If you want to make changes to all spells,
|
||||
check x2_inc_spellhook.nss to find out more
|
||||
|
||||
*/
|
||||
|
||||
if (!X2PreSpellCastCode())
|
||||
{
|
||||
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
|
||||
return;
|
||||
}
|
||||
|
||||
// End of Spell Cast Hook
|
||||
|
||||
|
||||
//Declare major variables
|
||||
int nMetaMagic = GetMetaMagicFeat();
|
||||
int nCasterLevel = GetLevelByClass(CLASS_TYPE_CLERIC);
|
||||
effect eSummon;
|
||||
//effect eVis = EffectVisualEffect(VFX_FNF_SUMMON_UNDEAD);
|
||||
|
||||
//Set the summoned undead to the appropriate template based on the caster level
|
||||
if (nCasterLevel <= 7)
|
||||
{
|
||||
eSummon = EffectSummonCreature("shadow01",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
else if ((nCasterLevel >= 8) && (nCasterLevel <= 17))
|
||||
{
|
||||
eSummon = EffectSummonCreature("shadhound01",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
else if ((nCasterLevel >= 18) && (nCasterLevel <= 23))
|
||||
{
|
||||
eSummon = EffectSummonCreature("shadfiend01",VFX_FNF_SUMMON_UNDEAD); // change later
|
||||
}
|
||||
else if ((nCasterLevel >= 24))
|
||||
{
|
||||
eSummon = EffectSummonCreature("shadlord01",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
|
||||
//Apply VFX impact and summon effect
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, GetSpellTargetLocation(), HoursToSeconds(24));
|
||||
}
|
||||
|
Reference in New Issue
Block a user