Learn skills with Items

Hello, I'm looking for a way for RMVX ACE to learn certain skills by directly selecting an item on certain characters.

I thought the following: For example, I want to have a healer from the group teach a healing spell that can be learned by using an item (a book in my case). If you go under Items and select the actor, I want an event to be called when the actor is directly selected, which checks whether the actor's ID is correct. And in that case can learn this magic. Nobody needs to enlighten me about checking Actor ID's, I've already worked with that.

How I edit the events for checking the actor ID's and whether the ability has already been learned, I've already done in advance. My problem with this is that I haven't yet found a proper method of how to call a common event I created myself when an actor is selected via an item. I need advice on the best way to do this.

Thanks in advance!
If I'm understanding this correctly, here's your answer.
In the item effects tab, under "Other", there should be a Common Event setting. Just check the box, and select the correct common event.
If I'm understanding this correctly, here's your answer.
In the item effects tab, under "Other", there should be a Common Event setting. Just check the box, and select the correct common event.
I've already done that. Just forgot to mention that. What I'm looking for is to record the ID of the selected actor as a variable once I've used an item on him mid-game. The variable should then check in a conditional query whether it is the right actor who is only supposed to learn this ability.
That's why I created this script, to make sure only the right actors or classes can learn a given skill. So you'd no longer need the game variable at all. Then you'd simply check if the right actor has learned that skill.

Ruby:
$game_actors[ActorID].skill_learn?(SkillID)

Original thread: https://forums.rpgmakerweb.com/threads/learn-skills-with-items.158641/