Hello again! Today I would like to know how to make a rare candy from pokemon but in my game, the idea is that by giving an actor an object this object gives 100 experience points to that same actor, only to that one, if it exists a plugin or it can be done with events I would like you to share that information with me, thanks for reading my post 😀
(I don't know were to put this post so i put it in MZ Feedback uwu)
Pretty easy.
Step 1: Make a Common Event. The event will have Trigger set at None. The only effect it has will be Change EXP (Actor set to Variable, pick one, let's say variable with Id 4, Operation Increase, Operand Constant 100, Mark Show Level Up if you want that).
Step 2: Make the item. Scope: 1 Ally, Occasion Menu Screen if you don't want it to be useable in battle. Consumable: yes. In the damage part, select HP Recover (well, select anything but None, doesn't matter) and type this into the damage formula:
$gameVariables.setValue(4, b._actorId);
Replace number 4 with the Id of whichever variable you want to use for this. In Effects, add Common Event on the Other tab and select the XP increasing Common Event you've created previously.