Welcome, Wolcott19. In my module, I've got an NPC with your name, Gil Walcott. He lives in the cottage by the wall. Anyway...
(1) For scripting questions (which this is) post your queries in the Scripting section.
(2) A great scripting resource is online. It is called the
NWN Lexicon. I recommend making use of that.
(3)
Summoned creatures are an effect. EffectSummonCreature. You'll want to use that function in your script.
If this stone is a type of item that will summon different creatures (like a figurine of wondrous power) I recommend the following:
- Use tag based scripting. For an explanation of
tag-based scripting see the lexicon. You will want to set this up for your module.
- Use one tag based script for all of the summoning stones.
Here's a rough script that I wrote for you.
- Tag all of the summoning stones with the same tag. This tag will be the same as the name of your script.
- To determine which type of creature each stone summons, set the ResRef of the creature on the item as a local string. For setting a
local var on an item, right click the item and pull up "variables". You can set a string, an int or a float. In this case we will be setting a string.
- Give each stone a special property. Cast Spell: Activate Item (select one of the short ranges)
- In the description of the stone, give the player a hint as to what it summons.
Modifié par henesua, 11 juin 2012 - 01:50 .