Aller au contenu

Photo

Elemental summon items.


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
DM_Moradin

DM_Moradin
  • Members
  • 2 messages
I did search for this topic, and didn't find anything, so I apologize if it's been posted somewhere. 

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. 

Has anyone scripted this or something similar? 

Also, if there is a tutorial somewhere on editing spells (the .2da files), I would love to figure out how to do that. 

thanks in advance.

#2
eeriegeek

eeriegeek
  • Members
  • 47 messages
Just create any item you like in the toolkit and give it the property: Cast Spell: Summon Creature VIII. Be sure to click on "Edit Property" and make it useable something like once per day or use charges, otherwise by default it disappears on the first use.

#3
DM_Moradin

DM_Moradin
  • Members
  • 2 messages
Yeah, I had figured that, but the summon creature spell summons a random elemental type. I guess with the current set up, it's either one or the other.



Thanks for the reply.

#4
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

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

#5
UnrealJedi

UnrealJedi
  • Members
  • 113 messages
Hello Lightfoot8 (or anyone else that cares to reply)...

I copied and pasted your script above in and named it the tag of my item to be activated. It works great except that no creature appears. The PC makes the animation, the visual effect goes off but no creature makes an appearance. I took out the resref of my custom creature and put in the one for a basic skeleton and still nothing appears. Any ideas?

Thanks!