Gain xp through a consumable item

So I'm new to the Forums here and somewhat new to rpgmaker. Does anybody know how to recreate something similar to the way in dark souls you can consume a large soul and it will give you experience points? my goal was to have all enemies drop soul crystals that I can either consume for experience or sell for income because the idea that a pack of monsters carry around change is kinda silly. I tried searching around on the forums but all I found were making rare candy from pokemon and I wanted to make sure I have control over the exact amount of experience each one gives rather than immediately leveling up after using it. Also if it requires a plugin could you give the briefest explanation for how to use said plugin? thanks in advance


edit: So far the closest I've gotten was making a common event tied to this item but it gives my entire part 10 exp each instead of the one person. And when i make it work on one person it only works on the specified character no matter who it's actually used on
you need to make an invisible "XP Target" state and have the item apply that state before calling the common event.


In the common event, you check for each actor (conditional branch) if he has that state, if yes add XP to that actor and remove the state.
thanks so much I think I have it working now.

Original thread: https://forums.rpgmakerweb.com/threads/gain-xp-through-a-consumable-item.58669/