Limited Inventory Update Released: V1.32!
What's New?
Version 1.32 of the DM_LimitedInventory plugin is now available, adding powerful new script calls and refining core systems to give you more control and reliability in your inventory management!
Fixes and Improvements
- New Script Calls Added: This update adds three new script calls for developers to use in their games to verify containers for specified items. I've added $gameContainers. getItemAmountFromContainer(containerId, itemId), $gameContainers. getWeaponAmountFromContainer(containerId, weaponId), and $gameContainers. getArmorAmountFromContainer(containerId, armorId). Each function returns the total count of the specified item, weapon, or armour in that container and returns 0 if the container does not contain it. These functions are fully compatible with DM_IndependentItems and will automatically detect and count unique independent instances that share the same original base ID. You can find usage examples and return details in the help file.
- Smarter Notetag Parsing: Item weight notetags are now more forgiving and consistent. The plugin accepts flexible formatting and ignores leading or trailing spaces, so <itemWeight: 2.5>, <itemWeight: 2.5>, and <itemWeight: 2> all parse correctly as 2.5, 2.5, and 2. Empty or invalid tags will default to 0. The Window_ItemWeight display has been updated to trim whitespace as well, ensuring the displayed value matches the value used in calculations.
- Modern Code Structure: I have converted the entire plugin to an IIFE with 'use strict' mode. This change eliminates global namespace pollution and enforces stricter error checking throughout the codebase. There are no API changes for developers with this update.
- Documentation Updated: I have added a new disclaimer to the plugin header and simplified the Terms of Use section. The help file now includes usage examples for the new getAmount script calls.
Get the Update!
With better error handling, reliable notetag parsing, and direct script access to container contents, V1.32 cuts down on guesswork and lets you build exactly what you envision. The new script calls handle DM_IndependentItems out of the box, so unique instances are counted correctly during quantity checks. Grab the update and get back to building!
Plugin Download Page