Grant Exp to user of item

I am trying to create items that are consumable and grant experience to the actor you use it on, but I'm not finding the option to do so, nor have I yet found a plug in in my searches that will accomplish this either.


In the item properties, I have it set to one ally but when creating the common event that grants experience, there's only the option to grant the experience to the entire party or a specific actor by name/number. Is there something that I'm missing?
You could make the item deal "damage" to use the damage formula to give exp to the user/target
Or in common event with script


$gameActors.actor($gameParty._targetActorId).gainExp(x)
What i usually do is make the item give the selected actor a state, then use a common event to check for the state and give that inflicted actor the exp.
@Engr. Adiktuzmiko


@mrcopra


@Uzuki


Thank you all for the replies. I will test each one out. I appreciate your help and ideas!
@mrcopra Thank you very much for the script, it does what I want it to do!

Original thread: https://forums.rpgmakerweb.com/threads/grant-exp-to-user-of-item.65316/