Class Item Restriction

I have an item that teaches a character a MAGICAL SPELL!

Only problem is, this item can be used on any class! Which is terrible, since Warriors and Rouges can't use Magical spells. The book would be wasted after being consumed by the wrong character!

How do I restrict an item to one specific class?

Or, if it's easier, how do I restrict it to one character?
Well, one way you could do it is just have it run a Common Event rather than using the "Learn Skill" feature.  In the Common Event, add the skill to the character that can learn it, or if multiple characters can learn it, use a Show Choices option to let the player choose.

Original thread: https://forums.rpgmakerweb.com/threads/class-item-restriction.50046/