Level up music

YanFly had a working script as a recall for MZ for this, titled After Battle something, but my old project is on VX so what I am looking for is well just that. A means to change the music for leveling up, beyond that no other script should be needed, just tool tweaking on my part.

In theory at least, hopefully I can finish this one without further scripts, also while I'm obviously scripting impaired. I am actually quite skilled at story telling <--- writer, and fairly ok at drawing pixel art if anyone needs help with that, or Knarf! Taking over... the world.
First question is what are you using for playing music when leveling up?
There is nothing in the default engine that would play a sound when the actor levels up.
The Level Up ME Script

Ruby:
# * Level Up ME ACE * #
#   2024-01-23

class << BattleManager
  LVL_UP_ME_SETUP = ["Victory2", 80, 100]
  LVL_UP_ME = RPG::ME.new(*LVL_UP_ME_SETUP)
  alias :kyon_lvl_up_me_play_btl_proc_vict :process_victory
  def play_battle_end_me
    @level_up_flag ? LVL_UP_ME.play : $game_system.battle_end_me.play
    @level_up_flag = nil
  end

  def test_gain_exp
    exp = $game_troop.exp_total
    lvl_up = $game_party.all_members.map {|actor| actor.test_change_exp(exp) }
    @level_up_flag = lvl_up.any?
  end

  def process_victory
    test_gain_exp
    kyon_lvl_up_me_play_btl_proc_vict
  end
end

class Game_Actor
  def test_change_exp(exp)
    last_exp = @exp[@class_id]
    @exp[@class_id] = [exp, 0].max
    last_level = @level
    level_up while !max_level? && self.exp >= next_level_exp
    next_level = @level
    level_down until @level == last_level
    @exp[@class_id] = last_exp
    next_level > last_level
  end
end

The Level Up SE Script

Ruby:
# * Level Up SE ACE * #
#   2024-01-23

class Game_Actor
  # Arguments Order: ["Filename", Volume, Pitch]
  LVL_UP_SE_SETUP = ["Chime2", 80, 100]
  LVL_UP_SE = RPG::SE.new(*LVL_UP_SE_SETUP)
  alias :kyon_lvl_up_se_gm_act_dis_lvl_up :display_level_up
  def display_level_up(new_skills)
    LVL_UP_SE.play
    kyon_lvl_up_se_gm_act_dis_lvl_up(new_skills)
  end
end
Is this what you are looking for?
I don't mind to be negative here but if you dive into that script's code, you'd notice that it forces the game developer to use a game switch. And people love to use tons of such switches in their games. Food for thought here.

My solution doesn't need that at all. It also lets you use only some ME script or the SE one or event both at the the same time if ever needed.
Is this what you are looking for?
The OP has not said what they are using to play level up music, if anything.
And the request sounded like they wanted to be able to change the music throughout the game.
If that's the case then my script nor Kyonides one will work fully.
The only way to change it mid game is to use a variable where they can alter the variable as they see fit. or an array or hash where it changes at specific times while being controlled by something else, probably a variable.
But if they are only setting it once and will never change then either option is fine.
The difference with my script and kyonides (besides the switch) is that mine is designed to play the sound once while all actors level up. Kyonides script (haven't tested it) will play for each actor as they level up.

Original thread: https://forums.rpgmakerweb.com/threads/level-up-music.164818/