MZ FORMULA SKILL

Hi everyone, I wanted to know if it is possible to make a skill that gives you a charge as you use it, for example. A skill that when you use it adds 10p to your attack but that is restored and set to 0 at the end of the battle. I know that with variables it could be done but I don't know how to set it to 0 when the battle ends. I use rpg maker mz and I have the visustella plugins.
You could do it with the Skills and States Core I'm sure.
You'd use notetags from the Battle Core.

On the actor:
Code:
<JS Pre-Start Battle>
user.charge = 0;
</JS Pre-Start Battle>

On the skill:
Code:
<JS Post-Damage>
user.charge++;
</JS Post-Damage>

Then you just use a.charge in your damage formula.
It works! Thank you very much.
And how could I change the number of charges that it increases? Because that way it only increases 1 by 1
change user.charge++ to user.charge+=2 or whatever number youd like
Hi everyone, I wanted to know if it is possible to make a skill that changes the player's battle sprite but that at the end of the battle, it returns to the initial sprite. I use rpg maker mz and I have the yanfly add-ons.
I use rpg maker mz and I have the yanfly add-ons.
This is confusing, because Yanfly plugins are for RPG Maker MV.

Your profile says you use MV.

This thread is tagged with MZ.

The answer I gave you in post 3 is using VisuStella notetags for MZ, and you said it works.

So please get this figured out and supply the correct information - are you using MV or MZ (and make sure it says the correct one in your profile)? Are you using Yanfly or VisuStella? They are two entirely separate suites of plugins.

As far as the question, once you figure out which RPG Maker and which plugins you're using, search for threads about actor transformation - this has come up many times.

Original thread: https://forums.rpgmakerweb.com/threads/formula-skill.173826/