How do I stop Level Up Text

 So... I've made an item that gives you experience when you use it in game. The problem is, the level up text shows when you finish using the item, I want to get rid of that.


I'll be more specific. Using the item or "Test EXP" grants experience, it is all fine up to that point. I can use "Test EXP" multiple times and it works naturally. Now, when I leave


the menu, a chat box appears. (The level up text message) The source of the problem is located in Database>Terms>Messages, under "Level Up". If I set it to, let say


"%1 has leveled up to %2 %3. It appears "Actor has leveled up to Level "1-99". I actually want to get rid of it, so once an Actor levels up using "Test EXP" a single or multiple time.


Once Actor has left the menu, there will be no level up box, no messages at all.

efc7cad1b595e2ded55e03ba79e6700f.png

a8be9b8699ca7661e77dcbc2140580ad.png

3b8b5fda2bfe70670c88079d5788d732.png

6b488803252a36c4a3036c4e4112b420.png

1d3c1a16bebaae16aa683947e44ad865.png
Try


b.changeExp(b.currentExp() + Math.round(100000 * b.finalExpRate()), false);
Try


b.changeExp(b.currentExp() + Math.round(100000 * b.finalExpRate()), false);

Thanks! It worked, if you wouldn't mind, could you tell me how "b.gainExp(100000);" differs from " b.changeExp(b.currentExp() + Math.round(100000 * b.finalExpRate()), false); "


Also, let say I had another item which gave 500 EXP instead, would  "b.changeExp(b.currentExp() + Math.round(500 * b.finalExpRate()), false);" work the same way or would I have to change something.
They are both functions available in the Game_Actor class.


gainExp does the calculation of newExp based on the current Exp, the value you pass in, and actor's exp rate.  It then passes the newExp value through to the changeExp function.


changeExp makes the EXP change and levels up or down accordingly.  It also displays the level up message based on a true/false value passed into the function as an argument.


When gainExp calls changeExp, it passes that value as true, telling it to display the level up messages.


The only way to make it NOT display the message is to do the function call manually, and pass through false as the second argument.  This means we're skipping gainExp so we also have to do that calculation ourselves.


And yes, if you had another item which gave 500 EXP, you would use the same formula and just substitute 500.
They are both functions available in the Game_Actor class.


gainExp does the calculation of newExp based on the current Exp, the value you pass in, and actor's exp rate.  It then passes the newExp value through to the changeExp function.


changeExp makes the EXP change and levels up or down accordingly.  It also displays the level up message based on a true/false value passed into the function as an argument.


When gainExp calls changeExp, it passes that value as true, telling it to display the level up messages.


The only way to make it NOT display the message is to do the function call manually, and pass through false as the second argument.  This means we're skipping gainExp so we also have to do that calculation ourselves.


And yes, if you had another item which gave 500 EXP, you would use the same formula and just substitute 500.

 Ahh, thank you for helping! I get the gist of it.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-stop-level-up-text.72161/