DM_Moradin wrote...
I would like an item to summon elementals, similar to the stock brazier/bowl/etc, but I want a higher level elemental, more like the creature summon 7-8 spells.
#include "x2_inc_switches"
void main()
{
if (GetUserDefinedItemEventNumber()!= X2_ITEM_EVENT_ACTIVATE) return;
object oPC = GetItemActivator();
int nDuration = GetCasterLevel(oPC);
effect eSummon = EffectSummonCreature("
NW_S_badgerdire");
effect eVis = EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_1);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVis, GetItemActivatedTargetLocation());
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, GetItemActivatedTargetLocation(), TurnsToSeconds(nDuration));
}
Just Change the
ResRef above to the creature you want to summons.
Then compile the script with the same name as the tag of the item you place the Item activate Power on.
Tag-Based Scripting(Axe Murderer) This was also more of a scripting then a custom content question. You may get more answers if you posted in the scripting forum.
The 2da Part Is Custom content. The NwnWiki would be a good place to start.
http://nwn.wikia.com/wiki/Spells.2da