How to make unlocked skills evolve to stronger forms

I'm pretty new to rpgmaker mz so I have no idea how to implement this.

Basically, I wanna implement a system where I can defeat enemies to unlock certain skills, which upgrade or evolve on use.
like if I get a fire skill from an enemy, if I use it enough times, say, like 10, it evolves into a stronger version doing more damage.

But I don't want there to be visible multiple tiers on the skill list, like in the final fantasy games where you have fireI, fireII, and fire III.

Got any ideas?
I don't think this is a game design question, as you're asking how to implement it in MZ.

Attach a common event to your skill. In the common event, you add 1 to a variable.

Then check if it's 10. If yes, remove the skill from the actor and teach a new one with the same name and better stats.

Or you could do it all inside the damage formula:

Code:
let level=V[3]++; if (level>=30) a.mat * 8 - b.mdf * 2; else if (level>=20) a.mat * 6 - b.mdf * 2; else if (level>=10) a.mat * 6 - b.mdf * 2; else a.mat * 4 - b.mdf * 2

If you're using the same skill on multiple actors, you'll want to use a variable attached to the actor instead of a game variable.

And if you're using the auto battle trait in your game at all, you'll want to take this out of the damage formula and use notetags from VisuStella Battle Core.
Which game maker are you using?
Which game maker are you using?

I'm pretty new to rpgmaker mz
Support is for "how to" questions, design is more for "what content" questions. So I'll move this to help you get more relevant answers~ 👋

I've moved this thread to MZ Support (from Game Mechanics Design). Thank you.

I don't think this is a game design question, as you're asking how to implement it in MZ.

Attach a common event to your skill. In the common event, you add 1 to a variable.

Then check if it's 10. If yes, remove the skill from the actor and teach a new one with the same name and better stats.

Or you could do it all inside the damage formula:

Code:
let level=V[3]++; if (level>=30) a.mat * 8 - b.mdf * 2; else if (level>=20) a.mat * 6 - b.mdf * 2; else if (level>=10) a.mat * 6 - b.mdf * 2; else a.mat * 4 - b.mdf * 2

If you're using the same skill on multiple actors, you'll want to use a variable attached to the actor instead of a game variable.

And if you're using the auto battle trait in your game at all, you'll want to take this out of the damage formula and use notetags from VisuStella Battle Core.
Does it work even if I dont use levels though? Like, I want the chara's level to stay the same throughout, and the chara gains skills through defeating enemies and using these skills more makes it stronger. The idea is that the character doesn't get stronger, but the skills do.
Does it work even if I dont use levels though? Like, I want the chara's level to stay the same throughout
Nothing I said to you had anything to do with the character's level.

Did you try the damage formula I supplied to you? Did you read it, and did you read the instructional thread I linked for you?

If you're getting "level" from the formula, then the very first thing it says is:
Code:
let level=V[3]++;

That means create a variable called level with the value of game variable 3 (then add one to variable 3). I chose that word to represent your level in the skill. You can make it say blahblah if you want, so long as you change all instances of "level" in the formula to "blahblah".

Referencing the character's level would be a.level, and I don't see that anyplace.
Nothing I said to you had anything to do with the character's level.

Did you try the damage formula I supplied to you? Did you read it, and did you read the instructional thread I linked for you?

If you're getting "level" from the formula, then the very first thing it says is:
Code:
let level=V[3]++;

That means create a variable called level with the value of game variable 3 (then add one to variable 3). I chose that word to represent your level in the skill. You can make it say blahblah if you want, so long as you change all instances of "level" in the formula to "blahblah".

Referencing the character's level would be a.level, and I don't see that anyplace.
Ohhh okay, I thought the "level" there was to represent your exp levels in-game. Anyway, I tried it out and it works, so thanks my guy. This whole thing aint as easy as I thought lmfao, that or im just dumb but either way.
Some notes (assuming no plugins):
If you're getting "level" from the formula, then the very first thing it says is:
Code:
let level=V[3]++;
evalDamageFormula uses a lower-case v for this, not upper-case. (If a damage formula encounters an error, it will simply return 0.)

Also, since it's a raw data reference, it will only work reliably if you set that variable to a value at some point beforehand, e.g. using a Control Variables command in an event that runs at the start of a playthrough. Otherwise you can have undefined++, which will mess up your formula.

Alternatively, you could initialise the variable value in the formula if needed, e.g.
JavaScript:
v[3] || (v[3] = 0); const skillUses = ++v[3]; etc
(const is basically a read-only let.)

Related:
evalDamageFormula uses a lower-case v for this, not upper-case. (If a damage formula encounters an error, it will simply return 0.)
Good call - I mixed up the damage formula variable and the Show Text escape code 😛
Some notes (assuming no plugins):

evalDamageFormula uses a lower-case v for this, not upper-case. (If a damage formula encounters an error, it will simply return 0.)

Also, since it's a raw data reference, it will only work reliably if you set that variable to a value at some point beforehand, e.g. using a Control Variables command in an event that runs at the start of a playthrough. Otherwise you can have undefined++, which will mess up your formula.

Alternatively, you could initialise the variable value in the formula if needed, e.g.
JavaScript:
v[3] || (v[3] = 0); const skillUses = ++v[3]; etc
(const is basically a read-only let.)

Related:
I watched a Yt vid before I came here for help, to set up like a common event tied to a variable and then giving that a number to run parallelly, is that it?
Good call - I mixed up the damage formula variable and the Show Text escape code 😛
Yeah i changed hat after reading that link you sent
I watched a Yt vid before I came here for help, to set up like a common event tied to a variable and then giving that a number to run parallelly, is that it?
No...she's talking about initializing the variable. Any variable that you plan to use like this should be initialized so there's no chance of checking it without a value.

So you put a little autorun at the beginning of your game (or stick it into an existing one) where you set, for example, variable 3 to 0. Or whatever value you want it to start at, if it should be 1 when you first learn the skill.
No...she's talking about initializing the variable. Any variable that you plan to use like this should be initialized so there's no chance of checking it without a value.

So you put a little autorun at the beginning of your game (or stick it into an existing one) where you set, for example, variable 3 to 0. Or whatever value you want it to start at, if it should be 1 when you first learn the skill.
but, the code works though....i set the second last if else command to trigger at level equals 3 to see a change in damage faster, and it did....or wait was that just a crit....? anyway, yeah ill try this out too.
edit: bruh...the attack increase was because i levelled up..... welp, it works now. thanks again @ATT_Turan and @caethyril
also autorun wasnt working because my char wasnt moving so i set it to parallel
also autorun wasnt working because my char wasnt moving so i set it to parallel
That's probably a bad idea. Autorun/Parallel trigger every frame that they're not already running. Autorun blocks normal player input (e.g. moving), but Parallel doesn't. So I imagine you'll find that your variable keeps getting set to 0...every single frame. Parallel events are generally harder to debug: try to stick to Autorun where possible.

To make an event only run once, you should deactivate it at the end. You can do this in different ways:
  1. Autorun/Parallel common event - turn off its switch at the end of the event.

  2. Once per playthrough - use map event page conditions to make the event change to a second, blank page, with trigger Action Button or something. To see an example, you can right-click the map in event mode and choose Quick Event Creation -> Treasure.

  3. Once per map visit - put an Erase Event command at the end of the event. The event will disappear until you leave and re-enter its map.
For a "do once at start of playthrough" event, I suggest option 2. 👋

I mixed up the damage formula variable and the Show Text escape code 😛
Well, technically text codes are case insensitive, but I see what you mean.
Well, technically text codes are case insensitive
My feelings are wounded - you're case-insensitive ;_;

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-unlocked-skills-evolve-to-stronger-forms.160646/