PoA_PRC8/_haks/poa_exp_abilities/x0_s2_shadsum.nss
Jaysyn904 7dd83ad168 Spell & Ability Upgrade
Reorganized hak files & removed duplicates.  Added @rafhot's PRC spell & ability level scaling expansion.  Further script integration.  Full compile.
2023-08-19 21:08:35 -04:00

56 lines
1.5 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Summon Shadow
//:: X0_S2_ShadSum.nss
//:: Copyright (c) 2002 Bioware Corp.
//:://////////////////////////////////////////////
/*
PRESTIGE CLASS VERSION
Spell powerful ally from the shadow plane to
battle for the wizard
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Oct 26, 2001
//:://////////////////////////////////////////////
void main()
{
//Declare major variables
int nMetaMagic = GetMetaMagicFeat();
int nCasterLevel = GetLevelByClass(27);
int nDuration = nCasterLevel;
effect eSummon;
//Set the summoned undead to the appropriate template based on the caster level
if (nCasterLevel <= 5)
{
eSummon = EffectSummonCreature("shadow01",VFX_FNF_SUMMON_UNDEAD);
}
else if (nCasterLevel <= 8)
{
eSummon = EffectSummonCreature("shadhound01",VFX_FNF_SUMMON_UNDEAD);
}
else if (nCasterLevel <=10)
{
eSummon = EffectSummonCreature("shadlord01",VFX_FNF_SUMMON_UNDEAD);
}
else
{
if (GetHasFeat(1002,OBJECT_SELF))// has epic shadowlord feat
{
//GZ 2003-07-24: Epic shadow lord
eSummon = EffectSummonCreature("shadlord02",VFX_FNF_SUMMON_UNDEAD);
}
else
{
eSummon = EffectSummonCreature("shadlord01",VFX_FNF_SUMMON_UNDEAD);
}
}
//Apply VFX impact and summon effect
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, GetSpellTargetLocation(), HoursToSeconds(nDuration));
}