artandor1 Posted February 18, 2018 Posted February 18, 2018 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)
Tchos Posted February 19, 2018 Posted February 19, 2018 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
artandor1 Posted February 19, 2018 Author Posted February 19, 2018 Thank you very much for the explanation and the link. Been looking all over the place for something like that
johnsmith10123 Posted October 1, 2019 Posted October 1, 2019 hello, Thank you so much for sharing this helpful information, it helped me alot Thanks and regards.:)
Recommended Posts