Limited Inventory Total (tried Yanfly already)

I'm not sure if this is the place for this...

I'm trying to figure out how to limit the total number of items the player can have (ie Paper Mario, Earthbound, etc.), does anyone know of a good way to do this/ a good plugin for this?

I've tried Yanfly's ItemCore, but that has two major problems:
1) It seems to count Key Items towards the total.

2) It seems to only function when trying to buy items from shops.
Yanfly ItemCore can define the limit object by object with the tag :
<max item: x>
You should put it in your object like this.
1503013484-capture.png

It doesn't work ?
Yanfly ItemCore can define the limit object by object with the tag :
<max item: x>
You should put it in your object like this.
1503013484-capture.png

It doesn't work ?

1) that's not a part of Item Core, it's a part of Core Engine.

2) That defines the maximum number of a single item, not a a maximum number of items total.
So this plugin.
That seems to work fine, thanks.

Original thread: https://forums.rpgmakerweb.com/threads/limited-inventory-total-tried-yanfly-already.82868/