Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object: add GetInventoryItemCount #1639

Merged
merged 4 commits into from
Apr 15, 2023
Merged

Object: add GetInventoryItemCount #1639

merged 4 commits into from
Apr 15, 2023

Conversation

summonFox
Copy link
Contributor

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.

@Daztek Daztek changed the title Util: add GetInventoryItemCount Object: add GetInventoryItemCount Apr 15, 2023
@Daztek Daztek merged commit 715dfeb into nwnxee:master Apr 15, 2023
@summonFox summonFox deleted the Object--GetInventoryItemCount branch April 16, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants