Create Limits

Every limit script I have seen only affects the amount of the same item or weapon. For example I can have 99 weapons but if I have the limit set to 20, I can only have 20 of the same weapons. I want my character to only be able to hold 5 weapons and like 6-8 items max! For weapons I would also like for them to not have the same weapon more than once.

Original thread: https://forums.rpgmakerweb.com/threads/create-limits.18784/