Storing skill users as variables

It seems that a lot of things i want to do encounter this problem:
A skill requires me to call a common event that effects the skill-user, but i have no way of aiming the common event AT the skill user.
Example:
I have a weapon that grants use of a skill. Using that skill repeatedly eventually lets you learn that skill permanently. So i have the skill call a common event to add the skill to the actor - but multiple characters can equip the weapon and they can be in any slot in the party, so i have no way of telling the game which actor used the skill, and thus who to give the new skill to.

Does anyone know where i should start looking to get around this problem? I feel like i'm just missing some way of storing the skill user as a variable.
Javascript, that's the way to go.
You could try the Moogle_X_EquipmentLearning plugin. Seems to do exactly what you're trying to do.

Original thread: https://forums.rpgmakerweb.com/threads/storing-skill-users-as-variables.81861/