Skill help

So basically I was trying to make a skill, similar to "that time I got reincarnated as a slime" where he can learn skill from the enemies he absorbs. I wanted to make something similar, where the one specific character uses the skill on an enemy when low on health, it would let you learn their skills.
Well there are many ways some with plugins and some with eventing here is one of them ( First of all i haven't played "that time I got reincarnated as a slime" so sorry if i haven't got what you are saying )
Now create skill or Item you want
Make it to call common event
In Common event set it to learn skill through variable ( I recommend don't go over 4 or 5 because it'll make it complex )
(Optional)If you wan't it to be more modular then add conditional branch of variables there
then set Variable to skill in troops section
(Optional if you followed other optional stuff above )Now set variable of how many skills you want. Do this before you set variable above
setup animation and stuff and then you are done

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