Limited Potions!

ZoroarX here! Today, I need help because I don't want the players to carry 99 potions in their inventory. The max number of Potions will be 10 (because the recover a lot), the max number of Hi-Potions and Max Potions is going to be 5 (don't ask me why, just answer this topic). The question is: How do I put a Potion limit in the inventory?
I think there's a script by Tsukihime for setting max item number based on weight or item amount, try looking for it

if you cannot find it, you can also find the line that sets maxitem count and add conditions so that it will limit the potion count
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/limited-potions.17603/