MV A way to limit the number of times an item can be used overall.

I've seen a plugin that can limit the number of times an item can be used in battle, but searching on Google and the forums for "item use limit" did not give me any good results.

I'd like to implement limits on items that change attributes, say, you can only consume 20 Protein Shakes for a +10 STR overall.
Are you tracking the use by actor or by item? I.E. You can only use 20 protein shakes per actor or total?
You can do this by using common events as the item effect, but this depends on how many items and how many limits.

Basically you start the common event by checking the variables where you store previous uses, and only apply the effect and remove the item (and count up the variables) if the limits are not yet reached.

Problem is that the number of variables to store values can snowball very fast: one variable per actor per item and so on. If you have too many you would need a custom plugin that creates its own data structure.

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-limit-the-number-of-times-an-item-can-be-used-overall.167676/