Can you limit how many potions your player can have?

Hello rpg maker community. 🙂 I want to be able to limit the amount of a specific item you can carry. For instance, I want to make it so that the player can only carry a maximum of 10 potions. Any idea how I can achieve this? Thanks in advance.
You would need a plugin.
Yanfly's Item Core probably has a setting for this. I'd check there.
I've moved this thread to Javascript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.
Yanfly's Item Core probably has a setting for this. I'd check there.

I don't think it does.


But here's a plugin to do it.


Right now, it's just individual items you can set a limit to. Later I'll make it so you can also set a limit based on categories you defined.


https://github.com/DreamXRMMV/Rpg-Maker-MV/blob/master/DreamX_ItemLimit.js

Code:
 * ============================================================================
 * How To Use
 * ============================================================================
 * Place <ItemLimit: x> with x as the limit as an item notetag.
 * ============================================================================
 * Terms Of Use
 * ============================================================================
 * Free to use and modify for commercial and noncommercial games, with credit.
 * ============================================================================
 * Credits
 * ============================================================================
 * DreamX
Yah, you can't use YEP Item Core for this, if you change the amount of stacks you change to any item along too.


Use DreamX's plugin.
YF's Item_core doesn't, but the Core_Engine itself absolutely does let you set item stock limits.
it's true, there's the <Max Item: x> notetag 😮
I knew I saw that somewhere. 🙂
Haha, well, I can still do the maximum item category thing.
I'm actually looking for a "battle inventory" where i can hold a few items to use in battle, and one standard with everything and without limits, is it possible?


Also will be nice if everything the party collect while outside "safe zones" will be stored in a temporary inventory that is gonna get divested if the party wipe(instead going for game over).

Original thread: https://forums.rpgmakerweb.com/threads/can-you-limit-how-many-potions-your-player-can-have.64913/