MV Need plugin that limit how many skills an actor can have and will force them to forget a skill if they are at max skills when trying to get a skill.

I need a plugin that limits the amount of skills an actor can have to 8 and if the player wants the actor to learn a new skill while they have the maximum amount of skills, they will need to for get a skill to learn it. Kinda smillar to how Pokemon does it.
Any help would be apreaciated.
you could do this by eventing as well, if you only give out skills by events.
have one variable per actor count how many skills each actor has, and have that checked by the event that is supposed to give the actor the next skill.

The biggest problem with the evented solution would be to select which skill to unlearn - that would require a rather complex sequence of event commands.
you can download the SRD_PKM_4MovesOnly and change lines 204 and 227
for changing 4 to 8 or use the extenstion plugin from LadyBaskerville to change
the 4 to any number you wish.
I don't know if this will help at all, but I asked a question about something very similar and ended up creating an Event to allow the player to choose which skill they were going to forget. It works very nicely.

It may not fit this scenario exactly, but it sounds like it might be a similar concept.

Here is the link to that thread.

Original thread: https://forums.rpgmakerweb.com/threads/need-plugin-that-limit-how-many-skills-an-actor-can-have-and-will-force-them-to-forget-a-skill-if-they-are-at-max-skills-when-trying-to-get-a-skill.154116/