Level Up Sound Effect

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
565
Reaction score
919
First Language
English
Primarily Uses
N/A
YME_LevelUpSe - Jan 14, 2016

Creator name: Yumineko

Overview
Plays a sound effect when level up

Features
- Sound effect is played when level up where the text is displayed. (battle included)
- Short code length.

Put the name of the sound file as a value for "SE Name" parameter.

Note: For a sound effect to play when using Change Level event, put a check next to "Show Level Up."

Credit and Thanks: Yumineko

Terms of Use- Free for commercial and non-commercial use.

License - MIT License: http://opensource.org/licenses/mit-license.php

Code:
//=============================================================================
// YME_LevelUpSe.js
//=============================================================================

/*:
 * @plugindesc Plays a sound effect when level up
 * @author Yumineko
 *
 * @param SE Name
 * @desc Specify the file name of the sound effect.
 * @default Up1
 *
 * @param SE Volume
 * @desc Volume adjustment of the sound effect. 0~100
 * @default 100
 *
 * @param SE Pitch
 * @desc Sound Effect Pitch (speed) adjustment. 50~150
 * @default 100
 *
 * @help Sound effect is played when level up where the text is displayed. (battle included)
 *
 * This plugin is under the terms of MIT license. (please check the website for more info.)
 * http://opensource.org/licenses/mit-license.php
 *
 */

(function() {
    var parameters = PluginManager.parameters('YME_LevelUpSe');
    var seName = String(parameters['SE Name'] || 'Up4');
    var seVolume = Number(parameters['SE Volume'] || 100);
    var sePitch = Number(parameters['SE Pitch'] || 100);


    //var displayLevelUp = Game_Actor.prototype.displayLevelUp;
    var upSE = {"name":seName,"pan":0,"pitch":sePitch,"volume":seVolume}
    Game_Actor.prototype.displayLevelUp = function(newSkills) {
        var text = TextManager.levelUp.format(this._name, TextManager.level, this._level);
        $gameMessage.newPage();
        $gameMessage.add(text);
        newSkills.forEach(function(skill) {
            $gameMessage.add(TextManager.obtainSkill.format(skill.name));
        });
 
        AudioManager.playStaticSe(upSE);
        //displayLevelUp.call(this(newSkills);
    };
 
 
})();
You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/ie9co2dfq5c5ktc/YME_LevelUpSe.js?dl=1
 

Attachments

Last edited:

Sc0wly

Veteran
Veteran
Joined
Feb 13, 2017
Messages
46
Reaction score
9
First Language
English
Primarily Uses
RMMV
Not sure why, but the plugin isn't working for me. I tried adjusting its placement and turning off other plugins too. :/
 

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
565
Reaction score
919
First Language
English
Primarily Uses
N/A
@Sc0wly What sound effect do you set it on?
(by default it's "Up1", it's adjustable by inputting the file name of the sound effect you're using for Level Up)

If a sound effect isn't found, then an error would pop-up. [Failed to load: audio/se/???.ogg]
 
Last edited:

Sc0wly

Veteran
Veteran
Joined
Feb 13, 2017
Messages
46
Reaction score
9
First Language
English
Primarily Uses
RMMV
I tried it with the default settings before (and after) attempting to change anything. I also turned off plugins affecting victory aftermath, level-up, battle, etc., and changed the plugin's order on the list (top, bottom, etc.). No matter what I try it won't play the sound effect.

Edit: I should also add that at no time have I seen an error message indicating an issue. It simply does not play a sound for me. :/
 
Last edited:

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
565
Reaction score
919
First Language
English
Primarily Uses
N/A
If there's no error message, could you try mute the music and listen whether a sound effect plays?

It plays one time if a party member levels up during textbox announcement when a battle ends. Also if an event like "Change Level" is used, it requires a check next to "Show Level Up."
 

Sc0wly

Veteran
Veteran
Joined
Feb 13, 2017
Messages
46
Reaction score
9
First Language
English
Primarily Uses
RMMV
I finally got the sound to play by turning off the two Yanfly plugins that affect victory aftermath. I had turned them off before to check for the sound but with no luck so I must have had something else still turned on that was interfering with it. Problem is that if it's not compatible with the Yanfly VictoryAftermath, and AftermathLevelUp plugins I can't really use it since the impact of turning them off will be greater than not having a sound for level up. It's sad though because the idea that we even require a plugin for a lvl-up sound is ridiculous.

I'd try to get it to work with the Yanfly plugins but I wouldn't really know where to start. Thanks for making this plugin though. I think you're the only one who has so far (which is crazy lol).
 

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
565
Reaction score
919
First Language
English
Primarily Uses
N/A
You're welcome, please credit "Yumineko."
 

Sc0wly

Veteran
Veteran
Joined
Feb 13, 2017
Messages
46
Reaction score
9
First Language
English
Primarily Uses
RMMV
I will of course give credit to all authors of plugins that I use in my final build!
 

Shokan

Warper
Member
Joined
Sep 28, 2017
Messages
2
Reaction score
1
First Language
Finnish
Primarily Uses
RMMV
This plugin does work, but how do i change the timing on the sound effect, it plays instantly when the last monster is defeated, before the game has even told you that your characters have leveled up
"Your party was victorious!"
*Bling*
........
......
huh?.....
i want it to play when you're still on the battle screen, when the text comes up that you've level up, after the EXP and money
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

buinguyenhoangtho wrote on fizzly's profile.
Hello @fizzly, i would like to use your asset/ resource for my project ( is maybe commercial ). May i have your permission? Thanks you !
I have 470+ hours on RMMV but have only made a demo game, is this normal? :kaoswt: (I lose motivation a lot plus I use a 32gb laptop, so..)
I like Iron Maiden.
Benku wrote on Magnus0808's profile.
Hey man you helped me out a long time ago with a plugin i was wondering if you can help me out one more time since its literally the last thing i need help with if not is cool but id figured id ask you one more soild.
Stream will be live shortly with a guest stream! Tonight, a new guest joins~ Feel free to drop by!

Forum statistics

Threads
95,425
Messages
929,063
Members
125,657
Latest member
jack527
Top