Create an item letting the user advance 1 level?

Hi, I would like to make an item which can let its user level up.

However, I can not use "Grow" in the item's effect setting.

And also, when I restrict the item to only "the user"

I can not know which user is using the item when I try to call a common event to achieve the desired effect.

Without any plugin, what can I do?
"the user" only applies to an item when in battle. If you want to use this outside of battle, you are better off setting the scope to One Ally and using the "target".


In the damage formula of the item you can do

Code:
b.changeLevel(b.level + 1)
If you want to also show the level up message, do this
Code:
b.changeLevel(b.leve + 1, true)
Shaz is an amazing person that always provides quality solutions.
This is actually a great bit of information for Debug Items, for use in a testing run. 😀
Hi shaz. I've created an item trying to increase a characters level by recreating what you've advised here but it doesn't seem to be working for me. When I try to use the item outside of battle, it plays the  invalid option sound. Inside is battle it just crashes the game.


I'll attach a photo of the item. Is there any advise you can give me on why it may not be working? My character is only Lv 1 for the test so he isn't at the cap. 

image.jpg
You can use the print screen key to get a screenshot - alt+prtscn will grab just the active window.  Then you can save it to a file, load it up to a file sharing site, and post a link.


Try changing the formula to this and see if it makes a difference:

Code:
b.changeLevel(b.level + 1); 0

If it still doesn't work properly, here are a few questions:


Either inside or outside of battle, when you select the item, do you get to choose who to use it on?


In battle when it crashes, does it give you an error message  Can you post the full/exact text of the error message?


Can you turn on developer tools (hit F8 after starting a game), kick off a battle and use the item so that it crashes - then go to the developer tools console/log and grab a screenshot of what it shows there?
"b.changeLevel(b.level + 1); 0" Doesn't cause a crash in battle, but it also doesn't work (It causes 0 damage to the selected character). Outside of battle I still get the invalid option sound, and in both cases I can choose who the item is to be applied to.


I want this item to only be useable outside of battle but was just testing it inside of battle to see what happened.


Is there more information I can give you to help you in any way? Would you like those crash logs from battle?
Yes please - the crash logs from battle might explain why it's not working outside of battle.
Sure thing.


Here is the crash error: https://www.dropbox.com/s/wcfoaisltlxjkdq/Crash%20Error.tiff?dl=0


and


Here is the console: https://www.dropbox.com/s/g68fuqt3ybe4z6w/Crash%20Console.tiff?dl=0
Okay - figured it out.


The item needs to have some effects in order to make it 'valid'.


So create a common event called 'dummy' and don't add any event commands to it.  Then edit your item and add an effect to call that common event.  That'll get it working.


The previous people who asked must have had items or skills that had effects already, which would explain why they were able to use this without any issues.
You are a legend! Thanks a lot for that Shaz. It's working perfectly now.

Original thread: https://forums.rpgmakerweb.com/threads/create-an-item-letting-the-user-advance-1-level.54162/