Level up one-off message?

Hello gamers,

I'm trying to make a script for my game that displays text when a character hits a particular level (ie. to explain new abilities and how they work)
Is there a script available for this or otherwise?

thanks again xo

I've moved this thread to Script Requests. Thank you.

oh snap sorry!
oh snap sorry!
Don't worry about it. Those blue messages are auto-generated so it's not directed personally to you. It's our job as mod to move things around 🙂

As for your request, a script would be the ideal way to do it as it would more efficient and more customizable, but if you can't find a script for it you can do it with common events.

Common events set to parallel process always run in the background. You can set one to check the level of a character and display a message as soon as he gets to that level. Then you activate a switch once the character reach that level (after displaying the message), and you set the event to not run and to delete itself if the switch if on.
Common events set to parallel process always run in the background. You can set one to check the level of a character and display a message as soon as he gets to that level. Then you activate a switch once the character reach that level (after displaying the message), and you set the event to not run and to delete itself if the switch if on.
Parallel common event with the variable being checked and changed every frame is prone to lag. Don't do this.

Here's a little piece of code to solve it.
Code:
class Game_Actor
  alias common_event_lvup display_level_up
  def display_level_up(new_skills)
    common_event_lvup(new_skills)
    # Change 1 to common event ID you want to run
    $game_temp.reserve_common_event(1)
  end
end
If any level up happens, it will reserve a common event to run.
Parallel common event with the variable being checked and changed every frame is prone to lag. Don't do this.

Here's a little piece of code to solve it.
Code:
class Game_Actor
  alias common_event_lvup display_level_up
  def display_level_up(new_skills)
    common_event_lvup(new_skills)
    # Change 1 to common event ID you want to run
    $game_temp.reserve_common_event(1)
  end
end
If any level up happens, it will reserve a common event to run.


Oh my god it worked! Thank you so much for helping out!

Original thread: https://forums.rpgmakerweb.com/threads/level-up-one-off-message.120857/