PRC8/nwn/nwnprc/trunk/spells/sp_elemconf.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

53 lines
1.8 KiB
Plaintext

#include "prc_inc_spells"
//Stormlord Elemental Comflaguration spellscript
void main()
{
//Declare major variables
int nSpell = GetSpellId();
object oTarget = PRCGetSpellTargetObject();
string Elemental;
//Determine Invok Elemental subradial type
if(nSpell == SPELL_ELE_CONF_FIRE)
{
Elemental = "NW_FIREHUGE";
}
else if (nSpell == SPELL_ELE_CONF_WATER)
{
Elemental = "NW_WATERHUGE";
}
else if (nSpell == SPELL_ELE_CONF_EARTH)
{
Elemental = "NW_EARTHHUGE";
}
else if (nSpell == SPELL_ELE_CONF_AIR)
{
Elemental = "NW_AIRHUGE";
}
int Duration=PRCGetCasterLevel();
effect Summon=EffectSummonCreature(Elemental,VFX_NONE,0.0,1);
MultisummonPreSummon();
float fDuration = RoundsToSeconds(Duration);
if(GetPRCSwitch(PRC_SUMMON_ROUND_PER_LEVEL))
fDuration = RoundsToSeconds(Duration*GetPRCSwitch(PRC_SUMMON_ROUND_PER_LEVEL));
if(GetPRCSwitch(PRC_MULTISUMMON))
{
Summon=EffectSummonCreature("NW_FIREHUGE",VFX_NONE,0.0,1);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, Summon, PRCGetSpellTargetLocation(), fDuration);
Summon=EffectSummonCreature("NW_WATERHUGE",VFX_NONE,0.0,1);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, Summon, PRCGetSpellTargetLocation(), fDuration);
Summon=EffectSummonCreature("NW_EARTHHUGE",VFX_NONE,0.0,1);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, Summon, PRCGetSpellTargetLocation(), fDuration);
Summon=EffectSummonCreature("NW_AIRHUGE",VFX_NONE,0.0,1);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, Summon, PRCGetSpellTargetLocation(), fDuration);
}
else
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, Summon, PRCGetSpellTargetLocation(), fDuration);
}