I was solving one paticular stacking issue yesterday and I found out quite interesting informations.
Any item that has the same baseitem, same tag, same number of itemproperties and same number of charges will stack with each other. Item resref, name, description, extra cost, plot/stolen/cursed flag doesn't matter, neither even itemproperties - they can be totally different, but once two items have same ips count they might stack.
That might be especially troublesome for miscelanious items with special power that shares the same script thus also tag which was my case.
I was looking for way to make my misc items nonstackable but the only reliable solution I found was create this object via CreateObject and change tag to random tag of 8chars. So in the end I rather abadoned tag based scripting and gave these items different tag and added the code into OnAcquire event. They can still stack with each other, but thats OK.
Hope that helps someone.
EDIT: this of course applies for default NWN, NWNX has a way ho to disable stacking on two items with different variables etc.
Modifié par ShaDoOoW, 08 janvier 2012 - 03:15 .