How to give players a set amount of items throughout the game?

My idea is that players will start with a small amount of supplies that they replenish every time they sleep at an inn.

It would start out being something like 3 potions and a revival potion, and as the game goes on, more supplies are added. In example, completing a quest increases the number of potions to 5 and grants the player 2 high potions every time they sleep at an inn from there on.

How would I go about statting that out with the caveat that I'm using the lite version.
I would think, if you set your items to a variable, then you can just have the variable reset by using a "control variable". in the event contents, set variable to the desired number you want item you want. Common event saying if variable is at 1 give hero 1 item, etc. Something like this.
If I'm understanding correctly, I'd have to set the variable to account for how much of an item to give to a player based on how much they currently have in their inventory.

So if they have 1 potion and the max is 5, I'd set the variable to 'if 1, then 4' sort of thing and so on?
In your event that replenishes the items, just subtract the number the party already has from the "max" before adding it.

So you'd have your "replenish level" variables for each item, then set aside a second set of variables to use for the actual number that the party is given. Then in your inn event, set the "actual number" variable to the value of the max one, and subtract the number of the relevant item the party already has. Then use that variable for the "Change Items" command.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-give-players-a-set-amount-of-items-throughout-the-game.123409/