Skill Use Count

Good day, everyone!

I'm picking up a project I started a long time ago, and at the time I had a good idea for what I wanted to do, but I can't figure out how to get it to work.

Essentially, what I want to do is attach a numerical value to a skill, such that using the skill adds points to a hidden, background total. I endeavor to trigger certain changes based on the total at any given time.

For example:
Mr. Mage uses Fireball in battle.
Fireball has a hidden value of +3 Fire.
The hidden counter now has a value of Fire = 3.
Mr. Mage is in another battle and uses Fireball again.
The hidden counter now has a value of Fire = 6.
After levelling up, Mr. Mage learns Super Fireball, which has a value of +5 Fire.
In a battle, he uses Super Fireball.
The running background counter now has a value of Fire = 11.

My current setup tries to use the example Fire values as a common event, which is called each time the skill is used. The common event, when called, tries to add the associated numerical value (in this case +3 or +5) to an attached variable. The attached variable is meant to be the total running value of the Fire count.

Unfortunately, I don't think this setup is working, as I haven't been able to playtest it in any way that seems to indicate as such.

I appreciate any advice anyone can offer for how I can make this work. Eventually, I need to be able to use this type of counting in multiple areas and compare the final values, creating events that are triggered if one is higher than another (such as Fire vs. Ice).

Thanks very much!
How is the common event now working?
I don't think you need to use a common event at all, since you can add to a variable in the damage formula. Here's an example that should work:
Code:
v[n] = ($gameVariables.value(n) + 3); the actual damage formula goes here
You just have to put the variable you want to increase where the 'n's are, and each time the skill is used the variable should increase by 3. For your super fireball skill, you can do the same thing but change the three to five.
Hi, there. Thanks for a quick response.

The common event doesn't seem to be doing anything, as far as I can tell. I have tried setting up test events to feed back certain things depending on the value, but it always feeds back as if it's at zero.

Under "Effects" for the specific skill, it calls the common event which is supposed to be the additive value of the skill, so the +3 or +5.

The common event flow:
Control Variable > Single: Amount of Fire; Operation: Add; Constant: +3.
What result do you get if you place a text box below the variable command with \v[x], 'x' being the number of the variable used?
Hi, all.

Actually, I figured it out and I feel like a bit of a dolt. Did you see in the first post where I said I hadn't worked on the project in ages?

Yeah, well, turns out I was experimenting with a skill that was using one of Yanfly's plugins (the Action Sequence Pack circa 2016), and it was ignoring the common event commands in favor of the custom one. He has a built-in answer to the common event issue I was experiencing, though, and once I looked through the help section, I saw how to call the command properly from within the script.

And after realizing what a dolt I was, I created a new skill that operated with vanilla instructions, and attempted to recreate my initial setup. It worked properly.

So, as it turns out, I had the right idea from the get-go -- but screwed it up because I was using a plugin I had forgotten about.

Thanks to you guys for helping. Hopefully this thread will be of some use to future frantic Googlers.

Original thread: https://forums.rpgmakerweb.com/threads/skill-use-count.107312/