I'd like to create an item that levels up the user, but from the tutorial I played the level up potion for the student was labeled as "Entire party" for the target.
Can I make a common event that processes target selected to level up?
Is there a way to set an actor that uses an item into a variable?
Thank you in advance.
you can use the damage formula for the item to set a variable equal to the actor id...
if you want the target just put this on the damage formula
$game_variables[id] = b.actor.actor_id ; formula
id => index of the game variable to store the actor id
formula => damage formula in case you're using one
*use a instead of b if you want the user
then just use that variable to level up the actor using a common event
Or you can use this directly on the formula bar
b.actor.change_level(b.actor.level + value, false)
Thank you for the quick response.
When I tried the first method I entered in a variable used in the common event the item calls, I got the following results: The entire party leveled, not just the user. I had it tagged with "show message upon level up".
I attempted replacing b with a and got the same results. I made an NPC to show me the value of that variable after the item was used and got 0, does this mean the variable is not storing the actor id correctly?
Afterwards I tried the second method and used the b.actor.change_level(b.actor.level + 1, false) and their level remained the same.
I must be doing something wrong. Would it help to show screen shots of the process in an effort to better understand my mistake?
it would be b.id or b.change_level(b.level + 1, false)
That did it Xypher, thank you. It's working beautifully now.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.