Jump to content

Photo

Permament spells and custom effects to items


  • Please log in to reply
3 replies to this topic

#1
artandor1

artandor1

    Journeyman

  • Members
  • Pip
  • 20 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)

 

 



#2
Tchos

Tchos

    Cacoethes scribendi

  • Premium Member
  • 2,385 posts

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.noobscorn...cs.htm#TBS_nwn2



#3
artandor1

artandor1

    Journeyman

  • Members
  • Pip
  • 20 posts

Thank you very much for the explanation and the link. Been looking all over the place for something like that



#4
johnsmith10123

johnsmith10123

    Stranger

  • Members
  • Pip
  • 1 posts
hello, 
 
Thank you so much for sharing this helpful information, it helped me alot
 
Thanks and regards.:)





IPB skins by Skinbox
Page loaded in: 1.056 seconds