How to increase a variable with a skill in battle

Hello everyone.

First off I want to apologize if this post is in the wrong section!

I am very new to this whole field and it is my first time making a game. What I am currently trying to do is make a skill that
increase a variable's value every time the skill is used. After a certain value is reached, the variable will grant the character
that used the original skill with a new skill. I believe this may be achievable in the formula section of the skill. Problem is
I don't know how to formulate it correctly.

A different example of what I am going for: Harold uses the skill called Fire Ball in battle. Each time Fire Ball is used a
variable goes up a certain value. After the desired value is reached, the variable will unlock a new skill for Harold to
use, like Fire Storm or something.

Any help would be appreciated - Joey
Make the skill call a common event? Can be done via the skill tab.
I don't want to discourage you from using javascript in the damage formula box to do this, but it's probably simpler to achieve this with a common event.

Set up a common event which increases the variable associated with the skill. Each time the skill is used have the common event trigger (under effects tab 4). You can also include a conditional in the common event that checks for when the variable reaches a certain amount and grants the skill.

Spoiler: Example
upload_2019-2-18_21-35-32.png
Thank you ever so much, Rubescen, your simple solution was exactly what I was looking for and it worked perfectly! Have a good day my friend!

This post can officially be considered solved.
I know maybe I'm wrong here, but for some reason if I try to do it with a common event, the common event doesn't do anything. If I press F9 to check if the variable is growing, it still has the same amount as before.
1670157585902.png

1670157666287.png
We're not supposed to necro-post, and this thread is almost 4 years old - you'd have been better off starting a new thread with your specific issue.

I know maybe I'm wrong here, but for some reason if I try to do it with a common event, the common event doesn't do anything. If I press F9 to check if the variable is growing, it still has the same amount as before.
I don't speak German, but I notice the text in the Effects box of your skill is different from the text for Common Event in your database. Did you select the correct option?

The actual code in the event looks fine, so the obvious troubleshooting suggestion is that the event is not being run.

If you did choose the correct option in the skill effect, did you try starting a new play test/battle test?
Thx for the Reply 🙂 I found the issue ^^. But I can't explain what the mistake was ^^

Original thread: https://forums.rpgmakerweb.com/threads/how-to-increase-a-variable-with-a-skill-in-battle.105792/