Files
PoA_PRC8/_haks/poa_exp_ability/x0_s2_shadsum.nss
Jaysyn904 9142d652cd 2025/10/24 Update
Renamed and reassociated Expanded Ability hak.
Updated Drow creatures to work with PEPS.
2025-10-24 07:34:20 -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));
}