i'm a beginner, how do I do this?

hi everyone,
i started using rpg maker mv recently, and i’d like to know how i can do this:

i have an item that teaches a magic skill to a character, but i want this item to only be usable by actors with a specific class.
can someone help me?
I assume it isn't usable in combat. Make an item, set Consumable to No, and have it call a Common Event. The Common Event asks which character wants to learn the skill. If the character isn't the right class, or already knows the skill, you have it say an error. Otherwise, it teaches the skill, and you reduce the item count by 1.

All that assumes you have a stable set of actors. If you are going to be swapping characters out a lot, you'll probably want to use a plugin.

I hope that helps. Welcome!
Doles it specifically need to be an item? You can set up an event (like an NPC) to teach that skill to anyone with that class. Or everyone with that class if the item isn't meant to be consumed.

Original thread: https://forums.rpgmakerweb.com/threads/im-a-beginner-how-do-i-do-this.179160/