henesua wrote...
- Necromancy raise dead spells etc... have not been altered yet, but I intend to change the way they work, and enabling Necromancers to cultivate armies of undead rather than just one summon at a time. Raising an undead however will likely require an appropriate corpse or the like as material component.
Here is what I have used. It attaches an army to a single summon leader (typically tougher than the rest). Might not be what you are looking for, but its worth a shot.
void SummonArmy(string sRes, int nNum, string sArmyRes= "")
{
if(sArmyRes == "") sArmyRes = sRes;
object oSummon = GetAssociate(ASSOCIATE_TYPE_SUMMONED);
if(GetResRef(oSummon) != sRes) return;
int nLeft = nNum + (nNum > 1);
while(nLeft--)
{
effect eArmy = SupernaturalEffect(EffectSummonCreature(sArmyRes));
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eArmy, oSummon);
}
}
void main()
{
effect eSummon = EffectSummonCreature("nw_s_skeleton");
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eSummon, OBJECT_SELF);
DelayCommand(1.0, SummonArmy("nw_s_skeleton", 2));
}