Jump to content

Permament spells and custom effects to items


artandor1

Recommended Posts

I was wondering if it was possible to code in custom effects on items.

 

If so, what files to edit and what scripts can be used?

 

A couple of examples of what i am asking:

 

A brooch of permament shielding (The brooch has permament shield effect on you while it is in your inventory).

 

A tome of arcane power (+1 to caster level as if gained a level in sorcerer/wizard class and +1 DC to spells while in inventory)

 

 

Link to comment
Share on other sites

Yes, it is. If the effect you want isn't in the list of effects you can put on the item through the normal item properties menu (the silver shards can serve as an example for those), then create two new scripts -- one will apply the effects you want, and the other will remove them. Name one according to this pattern:

 

i_itemtag_aq

 

Your item's actual tag should replace "itemtag" in that script name. Whatever you put in that script will be run when the player acquires that item. Name the other script:

 

i_itemtag_ua

 

Whatever you put in that script will be run when the player loses, sells, destroys, trades, drops, etc. the item.

 

See more explanation and examples here, in the NWN2 section:

http://www.noobscorner.jassper.com/frm_tag_basics.htm#TBS_nwn2

Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...