Skill limiting help

Is there a way to limit the number of skills that an actor can know at a time? Like how you get in Pokemon or the really early final fantasy where an actor. Would this need to be done with scripts or event?

Also as an indirect thing, how do i script call actor's known skills. Like i want to check if the actor knows 6 or more skills or what is skill number 4
1) It might require a script, or might be possible to event - it depends on the implementation that you have in mind.  You should describe exactly how the player learns skills in your game and how you want the player to select which ones to delete (or whether you want them to be deleted automatically).

2) I believe the call would be $game_actors[X].skills[Y]  where X is the actor's ID in the database and Y is the order of the skill (note that Y should be 3 to reference the 4th skill, because I think this count starts at 0).  This will return a skill object - more often you will want to call a property of the skill such as $game_actors[X].skills[Y].id  Finally, if you want to return the number of skills that the actor knows, just use $game_actors[X].skills.size  note there is no Y-parameter here.
The way i want players to learn skills is the way pokemon does it (only a set number of skills, must forget old ones before learning the new ones and its on the players choice, and the forgotten ones are stored somewhere to be relearned through an npc).

And thanks for the helpfor the second part

EDIT: Also what does the "id" in that second script call stand for?
Pokemon-style skill learning (where you can learn a skill from leveling up, but immediately have to select one of your current skills to forget) should be done with a script.  You could try asking in RGSS3 Script Requests, or hiring someone to do it in Commisions - Requests.  It's also possible this kind of script is already available, but I don't know offhand.

id stands for the unique Identification Number assigned to the skill in your database (for example, by default, the "Guard" skill has an ID number of 2).
Crystal Noel has a script that can do this, but you need a couple of his others to make it work.

https://crystalnoel42.wordpress.com/2013/01/07/crystal-engine-move-limit/

Alternatively, if it isn't a must to have the move deleted/forgotten you could just have a skill equip script that only allows the actor to choose 4 skills to use in battle from an available pool of skills.

Original thread: https://forums.rpgmakerweb.com/threads/skill-limiting-help.45642/