Hi. I was wondering if there is a way to limit the maximum number of skills an actor can have at the same time. Just like the Pokemon series, when you have to forget a previous skill if you wanted to learn a new one. I was hoping this can be done through eventing. Thanks people 🙂
Limiting number of skills actor can learn
RPG Maker MV SupportIt depends on how you learn the skills in your game. If you use an event system to learn the skill, it shoudn't be too hard to implement a maximum number of skills. You could use a variable for each actor to track the number of skill the actor currently has and use the Learn Skill / Forget Skill event commands to change the actor's skills. (Might need some script calls depending on how exactly you want to set it up.)
I'm not sure how to do it if the skills are learned by levelling up, though. You could probably use a Common Event with a script call to check which skills the actors have...
It all depends on how exactly you want the system to work. I could try to implement something later this afternoon if you give a bit more information on how the skills are learned in the game and how you want the "forget an old skill" process to look like (e.g. should the player choose a skill to forget or is it chosen automatically)
But it's definitely possible, maybe even without plugins 🙂
I'm not sure how to do it if the skills are learned by levelling up, though. You could probably use a Common Event with a script call to check which skills the actors have...
It all depends on how exactly you want the system to work. I could try to implement something later this afternoon if you give a bit more information on how the skills are learned in the game and how you want the "forget an old skill" process to look like (e.g. should the player choose a skill to forget or is it chosen automatically)
But it's definitely possible, maybe even without plugins 🙂
Well, the pokemon system is pretty intuitive, so I wanted some just like that. My idea is to learn new skills through leveling, but in some cases through event or using an item. And forget the skill chosed by the player via a menu when maximum number of skills is reached (just like in Pokemon). I know is quite complicated, sorry :S Also, if there is already a plugin for this, that would be enough 🙂
EDIT: I know I can use "<Hide if Learned Skill: x, x, x>" notetag from Yanfly's Skill Core to do something similar to what I want, but it isn't exactly what I need, and I would need to do a LOT of notetags leading to potential fails.
In that case, how about this one?
https://www.youtube.com/watch?v=KYJ4Vs1nv9g
The maximum number of skills (four) is hardcoded in the plugin, but it shouldn't be too difficult to change that in the .js file. What you apparently can't do, however, is change the number of possible skills for each actor individually.
Hope that helps 🙂
That's exactly what I need, thanks 🙂. The only thing: I was expecting to be able to determine the maximum by myself, 4 movements may not be enough 😀 I would try editing the code, but i don't know anything about scripting.
I've written an extension plugin to change the maximum number of skills. I'll post a link to the plugin thread here once it's approved.
Thanks @LadyBaskerville. You're great 🙂
Original thread: https://forums.rpgmakerweb.com/threads/limiting-number-of-skills-actor-can-learn.69544/