MV Limited skill slots

I'm making a game inspired by Shin Megami Tensei and I want a way to limit how many skills an actor can know at once.

Basically, a character learns a certain amount of skills, in my game's and SMT's case: 8, and after that, they must forget one of their old skills to learn a new one.
there is [SRD_Pokemon4MovesOnly] where you can edit the code
to have 8 instead (if you know some JS) its relative easy to do that
in 2 spots if not mistaken (4 to 8 moves).

otherwise, install the plugin with this addon that does it for you
in the parameters [SRD_X_PKM_MoreMoves], so it makes it easier
for you.

Original thread: https://forums.rpgmakerweb.com/threads/limited-skill-slots.155410/