Help with a combat mechanic

Hello everyone. I need help to implement a combat mechanic in my game.

Basically I want that when hitting an enemy with its weakness it adds one point to a variable, the idea is that up to 5 points can only be accumulated. When you have enough points you can use points to perform a special attack.

The idea is that as you accumulate points, a star-shaped meter fills up (Here is an image as an example, the yellow stars represent the points you have).

I need help to implement it in my game, any suggestion, help, or plugin you can give me I would greatly appreciate it.
I have moved this thread from RPG Maker MV Tutorials to RPG Maker MV Support. Tutorials is for guides you’ve written and want to share with others.
The incrementing a variable can be done easily in the damage formula. This thread has some information you may find useful:

Note that if you give this skill to enemies, or make use of the Auto Battle trait, the damage formula is not the right way to do it and you'd need to use a plugin like Yanfly's Skill Core.

As far as displaying the stars, you'd have to make that image and the code for it. You might be able to use something like SRD's HUD Maker.
For the star images, maybe you could associate a common event to the skill and usi it to show different pictures depending on the variable's current value. Not sure if it would work, but could be worth trying 🙂

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-combat-mechanic.161605/