Limited Inventory - [MZ]

● ARCHIVED · READ-ONLY
Started by Dungeonmind 43 posts Page 1 of 3 View original ↗
  1. [embedded media]

    Introduction

    Have you ever wanted to create a game with a limited inventory system similar to games like Skyrim in RPG Maker? If the answer is yes, you’ve come to the right place. Create unlimited containers for your players to store items in, set the maximum weight a container can hold, or disallow new items to be deposited entirely. You can even customize the look of the scene by adjusting values in the plugin parameters. For a full list of features, please see down below.


    Screenshots
    Screenshots
    limited_screen1.jpg
    limited_screen2.jpglimited_screen3.jpg

    limited_screen4.jpglimited_screen5.jpg
    note tag /parameters examples
    params1.jpg
    params2.jpg
    params3.jpg

    notetags-ex.jpg

    Features

    • Set the mechanics to “Item Weight” or “Slot Based” to completely change how inventory and container space is calculated.
    • Using note tags, give items, weapons, and armors a weight property. They can be decimals like “0.1” or numbers larger than “1”; you decide.
    • Create and manage all your containers right from the plugin parameters under “Storage Containers.” Afterwards, you can manipulate container settings and contents using script calls and plugin commands throughout your game.
    • Generate new containers using a script call or plugin command from in-game and set the new container’s ID to a variable.
    • Restrict players from taking items from containers when they have no space left and/or restrict any items from being deposited into containers that have reached their maximum weight.
    • When players are at the max weight limit, prevent them from leaving the item and container scenes without dropping/depositing items first.
    • Throughout gameplay, items can be dropped, deposited, or withdrawn from containers. You can set the default sound effect during these times for all items, weapons, and armour. You can also override the default sound effects on a per-item, per-weapon, and per-armor basis using note tags in the database.
    • Change various aspects of the game related to the inventory. You can even change the RPG Maker default maximum item limit!
    • Drop items from the party inventory scene.
    • Compatible with VisuMZ_1_ItemsEquipsCore. Please make sure my plugins are below VisuStella plugins and in the correct order.
    • Text code support for changing the colour in the shop and container name windows.
    • Use note tags to increase/decrease the party maximum weight when an actor is in the current party.
    • Use note tags to increase/decrease the party maximum weight when an actor is affected by a state and is in the current party.
    • Use note tags to increase/decrease the party maximum weight when an item, weapon or armour is present in the inventory.
    • Use note tags to increase/decrease the party maximum weight when the equipment is worn by an actor in the current party.
    • This plugin is now compatible with VisuMZ_4_VisualItemInv.js. You should make sure you activate the parameter “Item Layout” and add “Window_ItemContainer” to the “Applied Windows” parameter in VisuStella’s plugin.
    Plugin Order
    pluginOrderHelp.png

    Compatibility


    Bug Reports
    This is a fairly large script, so for any bugs you may find, please report them in the comments with the following format:

    Description: (Here, you will tell me what you were doing when the bug or crash occurred.)
    Javascript Error: Here, you can tell me the exact error you got. Including a screenshot with the crash error is recommended and will get you faster results. Also, finding out the exact line number that caused the crash will make it more possible for me to find out what the core root of the problem is and provide you with any necessary plugin updates in a timely manner.

    Terms of Use

    1. Licence Terms:
      • By purchasing or downloading the plugin, you acknowledge that you have received or been provided access to a licence agreement, and you agree to the terms and conditions outlined in that licence agreement. Failure to comply with these terms may result in licence revocation.
    2. Ownership and Redistribution:
      • The plugin and its code are the exclusive property of Dungeonmind. You may use the plugin in your RPG Maker projects, but you may not resell, redistribute, or claim ownership of the plugin/code itself, except as specifically permitted in the licence agreement.
    3. Code Usage:
      • The plugin/code is licensed for use in RPG Maker MV/MZ projects as specified in the licence agreement. You may not extract or reuse code in other plugins or non-RPG Maker projects without express permission.
    4. Usage Restrictions:
      • If the plugin is downloaded without purchasing a commercial licence, it is for non-commercial use only. Commercial use requires a licence purchase from the official website or any officially supported platform like itch.io.
    5. Confidentiality:
      • The plugin/code is confidential and should not be shared with anyone without express permission from Dungeonmind.
    6. Modification:
      • You are permitted to edit the plugin/code for the purposes of your personal projects, as specified in the licence agreement. Any other modifications, including redistribution or reuse of modified code, require express permission from Dungeonmind.
    7. Attribution Requirements:
      • As specified in the plugin's licence agreement, providing credit is required. Please refer to the licence for specific credit requirements.
    8. Precedence:
      • In the event of any conflict or inconsistency between the terms outlined here and the licence agreement, the terms of the licence agreement shall take precedence.
    Download

    ***IMPORTANT: AFTER YOU UPDATE THE PLUGIN TO THE LATEST VERSION, YOU SHOULD REVIST THE "INVENTORY TYPE" PLUGIN PARAMETER BECAUSE THE VALUES IT TAKES HAVE CHANGED.

    Link to plugin page

    Happy RPG Making!
  2. I just added some more screenshots if anyone wants to take a look at the parameters and settings before downloading.

    Screenshots of Parameters
    pp-screens-2.jpgpp-screens-1.jpg
    pp-screens-3.jpg
    pp-screens-4.jpg
    pp-screens-5.jpg

    I tried to give as much customizability as I could to the user without driving myself completely insane. I think the final plugin is almost 3000 lines long! :o
  3. Hello guys, I'm back with an important update! My limited inventory system is now compatible with VisuMZ_1_ItemsEquipsCore! Only thing is that categories are overwritten now and you will have to use my category plugin to make your custom categories with or just use the rm default.

    Make sure my plugins are below VisuStella and the plugin order should be be like this :

    plugin-order.jpg

    My Core Shop plugin is unavailable but will be ready soon and will also be fully compatible with VisuStella Item core AND my DM_LimitedInventory system. There will also be some new features never before seen in rpg maker with my new Core Shop plugin. I can't wait to share it!

    Please enjoy, I worked very hard on this.
  4. Between this and your Item Category plugin would I be able to say make a dedicated keyring that would hold a limited number of keys? I am aiming for more of a Resident Evil/Sweet Home limited inventory than weight, but it sounds like maybe I can get there with your plugins.
  5. I've made an update addressing a crash that someone has encountered using my plugin. Please download the latest build to get the fix.

    Norintha said:
    Between this and your Item Category plugin would I be able to say make a dedicated keyring that would hold a limited number of keys? I am aiming for more of a Resident Evil/Sweet Home limited inventory than weight, but it sounds like maybe I can get there with your plugins.

    Thanks for your interest in my plugin.

    You would probably need to commission someone for something like that. I mean, it's definitely possible, but I don't think I would personally be interested in adding this unless more people showed an interest for it. Sorry about that.
  6. Hey, guys! I'm back with an update for this plugin. You can now use colour text codes for the inventory or container name windows. You can also set a bonus or penalty to party max weight for when an actor is affected by a state using note tags. When the state is removed, the affect is negated.

    DM_LI_update_105.png
  7. Hello, I am back with a pretty decent sized update that I would like to share with you today.

    dm_limited_inventory_update106.png
  8. Hey guys! I'm back with a small update.

    DM_LimitedInventory_107.png
  9. Great plugin! I have two questions:

    1) I can't seem to turn the default inventory size all the way to zero, it defaults to 1. Is there a workaround?
    2) I want to make carrying size for actors dependent on their ATK score. I have tried <maxWeight:15($gameActors.actor(actorID).paramBasePlus(2))>, but this results in a net of 15. Is this a limitation of the plugin?
  10. Is there any way to have equipped weapons and armor also count towards the weight limit?
    Edit: Wait, I just found the note tag thing for equipping, whoops...

    Also:
    bookco said:
    1) I can't seem to turn the default inventory size all the way to zero, it defaults to 1. Is there a workaround?

    If you open the plugin file with notepad or notepad++ and look for the section around the top:
    Code:
     * @param Starting Inventory Max Weight
     * @desc Set the starting inventory max allowed items.
     * Default: 120
     * @type number
     * @default 120
     * @min 1
    Just change the "min" value to "0" and save it. Then you can set it to 0.
  11. bookco said:
    Great plugin! I have two questions:

    Thank you very much! I worked many long hours on this plugin including adding features for requests by the community.

    bookco said:
    1) I can't seem to turn the default inventory size all the way to zero, it defaults to 1. Is there a workaround?

    As @aironneil has said you can simply change the @min value to 0 on line 37 and you will obtain the results you desire.

    bookco said:
    2) I want to make carrying size for actors dependent on their ATK score. I have tried <maxWeight:15($gameActors.actor(actorID).paramBasePlus(2))>, but this results in a net of 15. Is this a limitation of the plugin?

    Yes, currently this does go beyond the functionalities of this plugin because it doesn't read the note tags as javascript code but rather whole number or decimal values. However, I may be able to add this feature for you at a later time. Thanks again for your request and interest in my plugin.
  12. Dungeonmind said:
    Yes, currently this does go beyond the functionalities of this plugin because it doesn't read the note tags as javascript code but rather simple values set by the developer.
    Ah, I am learning at a fast pace but still new to all this so I'm not sure now why I even asked this question, haha.
  13. Ok so i'm receiving the following error when attempting to withdraw an items from a box. I did manage to get this to play once and work properly. I believe it is a positioning problem. I'll post my plugins below as well. Sorry had to edit accidentally hit save trying to paste. What position do you think would be best?

    1687651575057.png
    1687657406802.png
    1687657433560.png

    1687657569184.png
    1687657531666.png
  14. icycold2367 said:
    Ok so i'm receiving the following error when attempting to withdraw an items from a box. I did manage to get this to play once and work properly. I believe it is a positioning problem. I'll post my plugins below as well. Sorry had to edit accidentally hit save trying to paste. What position do you think would be best?

    You should definitely not put any of my plugins above VisuStella plugins but rather below them. Also, I have noticed you are using Yanfly Item Core from MV. My plugin is likely not compatible with it, but it is made compatible with the VisuStella Item Core. If you go to the official plugin page, you can check if the plugins you want to use are explicitly compatible under the "Compatibility" section of the page.

    LINK TO PLUGIN PAGE.

    If you don't see the plugin in that list, it doesn't mean it's not compatible, but if the plugin alters similar functions or scenes like YEP_ItemCore does, it is likely not going to work for you.
  15. I had it working though placed in there. One combination did work but you did answer my question. I'll edit this once I get it working again. I was mainly wondering if it was all VisuMZ to place it below or if I was supposed to follow the tiers. Also I have Ramza's patched Yep item core
  16. Hello and thanks for this plugin ! But it seems i don’t know how to make it work… maybe cause english is not my native language…
    When i give the item without the conditionnal branch it works, i have my items and the weight is show in the inventory. the only problem i have is that there is no limit.

    so to try it, i did an event, a npc, here is the event :

    If : $gameContainer.checkPartyHaveSpaceForItem(7, 1);
    Add potion
    End

    the item id 7 is a potion with a weight of 0,1

    but when i try ingame nothing happens ! the npc doesnt give me anything at all

    please how do i have to set the event ?

    dminv.png

    (message also sent on your website... sorry for the double ^^)
  17. Hello... is anyone can tell me how to edit correctly my npc ...?
  18. STh4nos said:
    Hello and thanks for this plugin ! But it seems i don’t know how to make it work… maybe cause english is not my native language…
    When i give the item without the conditionnal branch it works, i have my items and the weight is show in the inventory. the only problem i have is that there is no limit.

    Hi @STh4nos ,

    I'm sorry I didn't get back to you on this sooner. I don't think I understand exactly what's going on with your project. I've tested these script call conditional branches a lot and they seem to work for me and many others but there might be something else going on that's affecting this for you.

    STh4nos said:
    (message also sent on your website... sorry for the double ^^)

    The reason I did not get this is because it was in the comments section of my blog and I didn't get notifications for it. That's why if you click "Support" on the website, it will bring you to a page that is under construction but will tell you the best way to get in touch is by emailing me at support@dmplugins.com with any requests or general inquiries like this one. I think this would be your best bet to get this resolved. I've even accepted people's projects this way so I can take a look, find the root cause myself, and provide you with better support.
  19. thanks for you reply, i just sent you a mail ^^
  20. @STh4nos I believe we spoke through email and resolved the problem you were having getting the script calls to work correctly. There were some spelling errors in the plugin help file that should now be fixed. Sorry about that.

    update__111.png

    As you can see, a lot has changed since the last time I updated my stuff on the forums. There are many bug fixes and a new game mechanic setting that allows you to choose which type of inventory system you want to use for your game. There are now two options:

    Item Weight

    This will keep the original weight-based inventory (similar to Skyrim's weighted inventory system).

    Slot Based

    This will use a more standard inventory system based on slots. If an item weight note tag is set, then it will only use the first item's weight for the whole stack. With this new inventory type, you can imitate limited inventory systems for games like Elder Scrolls Online, where the player will have to manage items based on their available slots instead.

    I have another update today for my shop core plugin to support the new inventory type as well. I hope you enjoy the new game mechanic setting that will create more customization for your projects!

    Happy RPG Making! :)

    Link to latest build