In battle class change + skill change

Hello I want one of my character to change class (and image), also skill need to be changed form one class to the other!
I've found this:




but i think that this is complex... what if I miss a skil?
so I want to write a script! but how can I do? how can I get all skill from one class in the database? (so I can make the character to forget the skills of one class and learn the skills from the other one)


I hope I was clear in my explanation... (I don't speak english really well 😛)


Thanks!
I've succeded and I wrote a plugin:

Original thread: https://forums.rpgmakerweb.com/threads/in-battle-class-change-skill-change.64628/