I'm trying to make a consumable item that grants a set amount of experience (say, one hundred points) to whichever character it's used on.
I thought I could use a common event and the "change EXP" command. But the change EXP command allows me to change the EXP for a specific actor, and I want this to work on any character the item is used on. Basically, I want the player choosing where the experience goes.
I googled for it and found a solution for VX Ace, but none for MV. Anyone know of a plugin or script?
Exp Item
● ARCHIVED · READ-ONLY
-
-
If you had posted the solution you found for VX Ace, it would have made things easier. Without that, I'm just guessing.
I'm not sure if this will work, but in the formula box, try this:
Code:b.changeExp(b.currentExp() + 100, false); -
Thanks, I'll give it a shot.
-
if it doesn't work, please post a link for the solution you found for Ace.
-
Well, I should have been clearer: I'm not sure the solution for Ace would have worked. I've never actually worked with Ace. I just located a thread that addressed the question. I'll try the formula when I get back on MV in the morning, and give you a shout then.
-
@Silversmith
on the eventing side, VXA and MV are almost absolutely identical, with only minor improvements on MV (like MV show choice having six options to VXA's four options).
So if the solution for VXA was the evented solution (using a target state and then a series of conditional branches in the common event) it would have worked identically in MV. Only if it was a formula solution (anything using damage formula or script field), then it would have been incompatible. -
This can be done without using any plugin.
First, create a common event. In it, use the 'Control Variable' event command to set a variable to the Id of the actor using the item. This can be done by choosing the 'Script' option and inputting this:
Code:$gameParty._targetActorId
Next, use the 'Change Exp' event command. Instead of targeting a fixed actor, use the variable in which you stored the Id of the actor using the item.
Finally, have the item granting Exp call up the common event. Now the item will grant Exp to the user every time it is used. -
Thanks, Jules98, that seems to be working perfectly. Problem solved!
-
I thought there was something like that around, but I always had a hard time finding it!$gameParty._targetActorId