Is there a scripting argument to check to see if a given item is in a specific storage box?
Viewing post in Limited Inventory - [MZ] comments
Hi Norintha,
Thank you for reaching out. Currently, there isn't a built-in scripting argument to check if a specific item exists in a particular storage box. However, I'll consider adding this feature in a future update. Given my current workload with ongoing commissions, I'll prioritize those first and revisit this enhancement as soon as possible.
Hi Norintha,
Quick update on this — the feature you asked about is now live in DM_LimitedInventory V1.32!
You can now check specific storage boxes using three new script calls:
$gameContainers.getItemAmountFromContainer(containerId, itemId)
$gameContainers.getWeaponAmountFromContainer(containerId, weaponId)
$gameContainers.getArmorAmountFromContainer(containerId, armorId)
Each one returns the total count in that container, or 0 if it’s not there. They also work with DM_IndependentItems and will count unique instances correctly.
Thanks again for the suggestion 6 months ago — it made it into the plugin. Full details and examples are in the V1.32 help file.