Skills on level up dependant on stats

So I had this idea for a game, and I wanna know what plugins, common event orders, etc. I could use to make this happen.

lets take 3 player characters, they're the same in player name/class but not in stats.

each of these instances make it to level 5,

player 1's playthrough has a 20 in atk: so he learns a skill that lets him learn a dodge stance.
player 2's playthrough has a 20 in m.def: so he learns a skill that lets him be in a stance that lets him regen mana
player 3's playthrough has a 20 in speed: so he learns a skill that lets him steal

is this possible? I have a theory to simply name the classes the same, have them also change stats but I'm afraid it'll get rid of the skills the player already learned from the other "classes" since skills are gained on level up from the class itself and not the players stats or the player themselves.
lets take 3 player characters, they're the same in player name/class but not in stats.
What is giving them different stats? The base system has stats be based on the class itself.

Also, is it the characters that matter, or can all three characters have 20 atk and learn dodge stance?

Also also, if a character has 20 in all three stats, do they learn all three skills?
You just grab a plugin that calls a common event when the actor levels up and use Conditional Branches inside of that to teach different skills.
What is giving them different stats? The base system has stats be based on the class itself.

Also, is it the characters that matter, or can all three characters have 20 atk and learn dodge stance?

Also also, if a character has 20 in all three stats, do they learn all three skills?
1. I have a natures plugin that buffs and nerfs specific stats.

2. I think its the characters that matter. I plan on only having 1 protagonist so the 3 characters example was just to help everyone understand what i wanted if one player increased on stat over the other.

3. Good question, i think i wanna have it set up so if you reach a specific level, it would have the potential to give you a stat specific skill according to the level. So if lvl 5 gives you a dodge stance if you lvl up speed, it shouldnt give you dodge stance if you level up speed and you reach lvl 10. It would just give you the next skill in line for lvl 10 with speed reaching the threshold.

You just grab a plugin that calls a common event when the actor levels up and use Conditional Branches inside of that to teach different skills.
Any specific plugin that would help? Does yanfly have one?
Does yanfly have one?

If you're willing to spend $30 on Yanfly plugins, I guarantee all of what you want in this thread can be done. But I'm not pushing for it, there's the possibility there might be a single free plugin that does this or possibly even just the engine depending on what you're willing to do.

I plan on only having 1 protagonist so the 3 characters example was just to help everyone understand what i wanted if one player increased on stat over the other.
Oh, that's a lot different than I thought. That actually simplifies things a lot.

If you want to do this entirely without plugins and are fine with the player knowing this is happening, simply have the character learn a temporary skill at level 5 that calls a Common Event. This event will cause them to learn the correct skill by checking their stats with variables and forcing them to gain a skill. You can further have the event tell them what skill they will learn based on their current stats and even let them back out if there is an option to increase stats in some way (such as with permanent stat increase consumable).
Any specific plugin that would help? Does yanfly have one?
I have no clue. I would just Google "rpg maker mv common event level plugin".

I don't know of a Yanfly plugin that has that particular feature, but it might be hidden in the parameters for something.

If you're willing to spend $30 on Yanfly plugins, I guarantee all of what you want in this thread can be done. But I'm not pushing for it, there's the possibility there might be a single free plugin that does this or possibly even just the engine depending on what you're willing to do.


Oh, that's a lot different than I thought. That actually simplifies things a lot.

If you want to do this entirely without plugins and are fine with the player knowing this is happening, simply have the character learn a temporary skill at level 5 that calls a Common Event. This event will cause them to learn the correct skill by checking their stats with variables and forcing them to gain a skill. You can further have the event tell them what skill they will learn based on their current stats and even let them back out if there is an option to increase stats in some way (such as with permanent stat increase consumable).
That all sounds great but uh.......i am still very novice at rpg maker so.....can you explain it to me as you are directing a 5 year old....or send me a video of how this would be done?
If you want to do this entirely without plugins and are fine with the player knowing this is happening, simply have the character learn a temporary skill at level 5 that calls a Common Event. This event will cause them to learn the correct skill by checking their stats with variables and forcing them to gain a skill. You can further have the event tell them what skill they will learn based on their current stats and even let them back out if there is an option to increase stats in some way (such as with permanent stat increase consumable).
Maybe I'm misunderstanding something, but I don't see how that would achieve what the OP is asking for at all.

You want the player to get some dummy skill and they have no idea what it actually does until they get into combat and spend a turn using it just to have some choice menu during the actual battle?

That sounds really weird to me, but maybe you've played and enjoyed some game that did something like that.

If the OP wanted to do it entirely without plugins, they still wouldn't need to do all that, they'd just make a parallel process that constantly checks to see whether the player's level has increased and grants the correct skill at that time. But I don't see why any of that is desirable over simply using a plugin that runs an event at level up.
Maybe I'm misunderstanding something, but I don't see how that would achieve what the OP is asking for at all.

You want the player to get some dummy skill and they have no idea what it actually does until they get into combat and spend a turn using it just to have some choice menu during the actual battle?

That sounds really weird to me, but maybe you've played and enjoyed some game that did something like that.

If the OP wanted to do it entirely without plugins, they still wouldn't need to do all that, they'd just make a parallel process that constantly checks to see whether the player's level has increased and grants the correct skill at that time. But I don't see why any of that is desirable over simply using a plugin that runs an event at level up.
I dont mind doing so either, i just wanna make the game work and need help. if you can explain your method too, i would love to try it out.
You want the player to get some dummy skill and they have no idea what it actually does until they get into combat and spend a turn using it just to have some choice menu during the actual battle?
Oh, I was totally unclear about that. No, you'd use it from the menu and it would give them the skill. I do agree a plugin is better, I was just explaining a way to do it without plugins (partly because it helps you learn the maker).

they'd just make a parallel process that constantly checks to see whether the player's level has increased and grants the correct skill at that time.
That also works, but I've been seeing more and more problems with parallel process overuse so I thought I'd give a different way of doing it.

i am still very novice at rpg maker so.....
I'd recommend going through the tutorial and help files and just generally testing out how various things work in RPG Maker. There's various tutorials by people on this site, too. When I first got RPG Maker, I went through every single event command and figured out what it did before trying to figure out what to do with it.

can you explain it to me as you are directing a 5 year old
Probably not (no offense, I don't think I could simplify it that far), but I can break things down further;
Make your three skills do whatever you want them to do
Make a fourth skill. This skill can only be used in the menu (under Occasion) and does nothing but call up a Common Event (under Effects)
In the common event, use Control Variables and Conditional Branch to determine the Actor's stats, then Change Skill to add the skill you want them to learn based on those.

To change it to Turan's explanation, don't make the fourth skill and instead make the Common Event a parallel process. You'll need to turn a chosen Switch On at the start of the game that can then be turned Off once the chosen skill is learned.


With the above plugin, you don't need it to be a Parallel Event since the event will be called after each combat and then check for the correct level, stats, etc.

But, again, I really very much recommend learning the system more first. Once you are comfortable with the maker, you'll know what it is and is not capable of and where you would need a plugin.
Oh, I was totally unclear about that. No, you'd use it from the menu and it would give them the skill. I do agree a plugin is better, I was just explaining a way to do it without plugins (partly because it helps you learn the maker).
Ah, I get it.

With the above plugin, you don't need it to be a Parallel Event since the event will be called after each combat and then check for the correct level, stats, etc.
If one's going to use any plugin, I think that's a suboptimal choice. Why check after every combat and have to include checking for the level instead of simply using the plugin that was already linked above to run the event when leveling up?

But, again, I really very much recommend learning the system more first. Once you are comfortable with the maker, you'll know what it is and is not capable of and where you would need a plugin.
That's good advice.
You could just have a NPC or NPCs that give you skills. Some condition checks and maybe show choice and learn skill is all you need I think. You can also make the choice text a variable with the skill name that is unlocked. Maybe these NPCs are like shops in every town or maybe you have to go find them all.

But Himworks Level up Events is pretty good too.
Why check after every combat and have to include checking for the level instead of simply using the plugin that was already linked above to run the event when leveling up?
I agree, I plainly just didn't see one that would run on level up but did see one that was "close enough".

You could just have a NPC or NPCs that give you skills
You could take this a step further and even use NPCs (or other events) to level you up depending on the feel you're going for. I feel like I played some well-known game recently where you buy level ups instead of auto-leveling after combat, but I can't recall the game. This even lets you decide what stats you want to level, which in turn leans into what skills you would get based on the OP.
I agree, I plainly just didn't see one that would run on level up but did see one that was "close enough".
It's like I'm invisible. Sigh.
1000002936.jpg
That all sounds great but uh.......i am still very novice at rpg maker so.....can you explain it to me as you are directing a 5 year old....or send me a video of how this would be done?

So, to break it down exactly:

First, visit the link to https://himeworks.com/2015/10/level-up-events/ that Sword_of_Dusk provided above. Download the plugin (in the download section on the site, right click where it tells you to and go Save As). Save the plugin in your plugins folder, in the js folder in your project, add the plugin to your plugin list in game, and make sure it's turned on, in the usual way.

Now, you will need to add a note tag to your actor. Go into your actor in the database, and in the Note section put:
<level up event: COMMON_EVENT_ID>
(Only replace the COMMON_EVENT_ID with a number - this should be the number of the common event that you want to run whenever your actor levels up).

It's now set up so that when this actor levels up, that common event will run. So now you need to set the event up.

This should be easy enough using conditional statements. In your example, you'd want to first check to see if the actor is level 5; if they are, check if they have met the threshold for each stat, and if they have, grant them the appropriate skill. It doesn't look like actor level is one of the default options the Conditional Branch command gives you in the event window, so you'll have to use some script - if you select Conditional Branch, then the last page, in the script window you can type $gameActors.actor(1).level = 5 (or whatever level you're checking). Then you can do another Conditional Branch for checking if the stat is high enough. Note that stats are affected by buffs, equipment, etc, so which command you use to check will vary depending on if you want to include these buffs or not - use:

$gameActors.actor(1).atk to just get actor 1's attack
$gameActors.actor(1).paramBase(2) to get just the base attack value inherited from the class
$gameActors.actor(1)._paramPlus[2] to get their bonus attack from AddParam
$gameActors.actor(1).paramPlus(2) to get their total attack bonus including equipment

(In the last three, the number 2 near the end means attack - for the other stats, the number should be as follows:
Basic parameter IDs:
• 0 = MHP • 2 = ATK • 4 = MAT • 6 = AGI
• 1 = MMP • 3 = DEF • 5 = MDF • 7 = LUK
You can find this information in the script call Google Doc, here.)

I'm not sure how the plugin you're using for stat buffs works, but if it's using addParam to increase the stats you might want to use

($gameActors.actor(1).paramBase(2) + $gameActors.actor(1)._paramPlus[2]) >= 10

as your conditional so you don't take the buff the equipment is granting into account, but do include any addParam buffs. Or if you don't care about any of that, just use $gameActors.actor(1).atk >= 10.

Then after the conditionals you could do the Change Skill command to add the right skill to actor 1.
It's like I'm invisible. Sigh.
I feel terrible, I literally did not see your post in this thread. I should probably wake up before I use this site again.

So this is the right plugin to use as SoD so graciously posted.
I feel terrible, I literally did not see your post in this thread. I should probably wake up before I use this site again.
I was only joking, just so you know. That's why I included Crying Jordan.
I was only joking, just so you know. That's why I included Crying Jordan.
I did know, looking at my post and I realize it sounds far more serious than I intended XD

I'm afraid it'll get rid of the skills the player already learned from the other "classes"
Are you using a class change system for the player? This could definitely change the goals and mechanics for this question.

1. I have a natures plugin that buffs and nerfs specific stats.
If you're not using a class change system, you might not even need this. You could have the natures be different classes with different stats and having different skills you get at (say) level 5. You could even have the class names be your nature names.

Original thread: https://forums.rpgmakerweb.com/threads/skills-on-level-up-dependant-on-stats.173506/