Stockpile pokemon skill?

I'm trying to find the appropiate vocabulary for this since I'm not an english native speaker. Sorry if it comes out bad.

I'm trying to make a skill similar to pokemon stockpile. Basically everytime you use it you accumulate one point. The more points you have, the stronger the attack will be.

You have two skills:
- Stockpile (accumulating points)
- Release (unleash the attack. It's strength its based on how many points you gathered)

You can only have up to three points. After you release the points you had, the counter goes back to zero.

How can I do this? :/
On the top of my mind, a cheap (but prob not efficient) method would be to have it create/add an hidden item in your inventory. Then have it scale/count from there. But im sure others will think of a better way, tbh.
The 3-point issue can be solved using a game variable, just add +1 every time they choose Stockpile. I think that a common event would be needed here to accomplish that.
I think that a common event would be needed here to accomplish that.
VXAce has a damage formula, right? I don't remember the reference code, but you can put the variable directly into your formula to both change it and use it for damage.

I'm trying to make a skill similar to pokemon stockpile
To closer mimic Pokemon, you can have Stockpile give def buffs, then have Release do damage based on the number of def buffs you have and remove them.

Original thread: https://forums.rpgmakerweb.com/threads/stockpile-pokemon-skill.177047/