nwnxee / unified

Binaries available under the Releases tab on Github
https://nwnxee.github.io/unified
GNU General Public License v3.0
129 stars 92 forks source link

Object: add GetInventoryItemCount #1639

Closed summonFox closed 1 year ago

summonFox commented 1 year ago

Another niche use.

For our use case, we ran into a few players hoarding literal thousands of items (many 1x1 items filled into 1x1 containers, filled across many inventory tabs) which would cause any of our scripts that needed to loop over inventories to TMI. Getting an item count without hitting TMI in nwscript allows us to create a discord alert and warning messages for that player, or alter behavior of scripts that need to loop their inventory.