MZ MZ, Items and Equips Core VisuStella MZ, change max quantity for stackable item mid-game

hello
0424e06a82d250e2.svg
i use visustella item & equip core. I like the notetag that allow to set us a litmit to an quantity.For example i put <Max: 10> on potion.
But i want to know a way to increase that amount (so update <Max: x>) during the game.
For example if the player use an alchemist belt which increase the maximum of potion wearable from player to 10 to 15.
I dont know how to change that... I think we can modify the max quantity of item (or else) from codes/notetags but sadly i did not found. Anyone can help me , please?
0424e06a82d250e2.svg
Looking through the documentation for Item and Equips core, the <Max: x> notetag only takes a static number. I tried setting it as <Max: $gameVariables.value(ID)> and then updated the variable through eventing but the item acts like it has no max set.

Item note tag & event:
1745277733604.png
1745277749519.png


Result after changing variable to 5 and giving the player 500 potions:
1745277825257.png


Looks like you would need a different plugin to accomplish this as there is no JS notetag setup or plugin commands for item max currently.
Ohhh...
Why for creator give the possibility to change the max quantity on item (or else) but not being able to change it mid game...
It's popular game with bags or else to get more slot in the inventory.
Anyway thank you for your answers.

It was not an must have, i'm trying an inventory limit plugin, and player need to buy bags for wear more.
And some bags could have been specific like "herbalist bag", "alchemist bag", "miner bag", increasing the limite of herb, potion, or ores you can wear.

Maybe there's other solution?
Ohhh...
Why for creator give the possibility to change the max quantity on item (or else) but not being able to change it mid game...
It's popular game with bags or else to get more slot in the inventory.
Anyway thank you for your answers.

It was not an must have, i'm trying an inventory limit plugin, and player need to buy bags for wear more.
And some bags could have been specific like "herbalist bag", "alchemist bag", "miner bag", increasing the limite of herb, potion, or ores you can wear.

Maybe there's other solution?
Hi buddy, did you ever find a solution for this problem? I'm curious as I'm exploring ways to limit the player inventory as well.
Hi buddy, did you ever find a solution for this problem? I'm curious as I'm exploring ways to limit the player inventory as well.
Yes Gpt made an add'on to visustella's plugin, and it work:
It's pretty rare to have an functionnal plugin.
So far there's no problem.
How it work?
1) place it below item&equipCore.
2)On your items, use the basic item&equip core instructions. Dont mind the proxy notetags (item cost, sell), look only at the "<max: 5>" meaning i can have only 5 potions.
1751010431196.png

Then, i create another item, look:
1751010707171.png


As you can see in the notetag simply add the <ItemMaxBonus: "name of your item", "quantity bonus">.
It may be usable on state too but i did not tried yet.

I have an little problem, i need to check the documentation, but anyone know how to share an quantity for differents items? I would like to create coins, and then a copper coin and a silver coin need to be 2 coins in the "coins's bag".. I have no idea if it's possible.
Hi I would like to thank you as I was looking for something like that for hours
I have an little problem, i need to check the documentation, but anyone know how to share an quantity for differents items? I would like to create coins, and then a copper coin and a silver coin need to be 2 coins in the "coins's bag".. I have no idea if it's possible.

Have you looked at these plugins? It might give you some ideas.

Visual Gold Diplay VisuStella MZ

More currencies VisuStella MZ

Original thread: https://forums.rpgmakerweb.com/threads/mz-items-and-equips-core-visustella-mz-change-max-quantity-for-stackable-item-mid-game.177119/