Count number of "Material" item uses

Hi, I'm working on a game currently with RM2K and I'd want to have a way to count the number of "Material" items used (the ones that permanently increase stats) and, if possible, have counters for each character individually (e.g. Character 1 used Holy Water 5 times). I'm planning on using that data for a special dungeon at the end of the game to determine the difficulty of the boss and sub-bosses.

To go into a bit more detail:
I currently have 6 characters and I'd like to be able to know for each character how many of each permanent stat boosters they have used. This is because I plan on making the dungeon have several different bosses and sub-bosses and have each of them have 3 variants (easy, medium and hard). The boss variant that appears would be based on the collective number of that floor's specific item(s) that the current party characters have used (e.g. Floor 1 looks at Holy Water, character 1 has used 4, char 2 has used 3, char 3 has used 8 and char 4 has used 0, so total is 15 for that party, which would give the medium boss).

Does anyone have any suggestions how I could go about doing this? I'm willing to compromise on just being able to have a global counter too, although that would take away the option of people having to switch around their parties to get a harder or easier boss, which I think would be a really interesting concept.

Any help would be greatly appreciated!
Stuff like this is a big reason I wish for usage of third-party-made patches and addons to be officially allowed with RPG2000.

A solution that I already have on hand but maybe not allowed to offer here doesn't count how many items of #N have been used on specific actors, but among a ton of other features can help you easily determine how much bonus a character got on any of their parameters through permanent buffs.

It also could be done by giving up on the entire default menu-system and build stuff in events, in that case you would be able to fully control what happens when using an item (e.g. setting up use-counters in variables like you need). But I can't even recommend to do that because custom-menus are always a broken and unstable mess that cause a lot of problems that are impossible to fully solve without, again, using a patch that safely redirects default-menu-access.

So, everything what's left when this situation stays how it is, I only can suggest to create locations in the game's world that are exclusively responsible to give permanent buffs to your characters without using any default systems or any items. At time of improving a character's power this way, you can set up counters and stuff easily.

~炬燵あ
Thanks for the response. Unfortunately, I don't think knowing the total stat boost through items will really work for me since some items will give different amount of stat points and some will give multiple different stat points at once.

But you did give me a good potential workaround idea in the form of having the items be a non-usable type and then having an NPC where I could use an event to "use" those items. Let's just hope I'll be able to do it this way.

Original thread: https://forums.rpgmakerweb.com/threads/count-number-of-material-item-uses.149693/