Limited Inventory - [MZ]

● ARCHIVED · READ-ONLY
Started by Dungeonmind 43 posts Page 3 of 3 View original ↗
  1. Limited Inventory Update Released: V1.31!

    What's New?

    Version 1.31 of the DM_LimitedInventory plugin is now available, bringing an important fix and a handy new feature to enhance your game development!

    Fixes and Improvements
    • Robust Weight Calculation: I've improved the equipWeightBonuses function by adding null checks (guard clauses). This prevents potential errors if an equipped item happens to reference invalid data in your $dataWeapons or $dataArmors databases, ensuring your weight calculations are always accurate.
    • Container Restriction Notetag: Now you can specify which containers an item can be deposited into! I've added a new notetag feature that allows you to restrict items from being placed into certain containers, giving you more control over inventory management in your game.
    Get Ready to Create!

    These updates not only boost the stability of your inventory systems but also unlock new possibilities for crafting unique item management mechanics in your RPG Maker projects. Dive in and make your game worlds even more engaging! Until next time, happy game developing!

    Plugin Download Page
  2. 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
  3. Limited Inventory Update Released: V1.33!

    Version 1.33 of the DM_LimitedInventory plugin is now available, addressing a battle crash that occurred when selecting items with an empty inventory in the default battle scene.

    Bug Fix
    • Fixed an issue in Scene_Battle where attempting to use items with no items in the party would cause RPG Maker MZ to crash with "Cannot read property 'id' of undefined." When the filtered item list returned undefined entries, Scene_Battle.prototype.onItemOk would try to access properties on them. Added safety checks to handle empty or undefined item slots, preventing crashes during battle item selection.
    Changelog
    DM_LimitedInventory_update133.png

    This update improves the stability of battle item interactions when using DM_LimitedInventory with the vanilla battle system. To apply the fix, download the new copy of the plugin and replace the old plugin file in your project's js/plugins folder. Happy game developing!

    Link to Plugin Page!