ovate

tale
Regular
Joined
Dec 16, 2016
Messages
1,054
Reaction score
1,801
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

  • YME_LevelUpSe.js
    1.7 KB · Views: 77
Last edited:

Sc0wly

Regular
Regular
Joined
Feb 13, 2017
Messages
46
Reaction score
15
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. :/
 

ovate

tale
Regular
Joined
Dec 16, 2016
Messages
1,054
Reaction score
1,801
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)
WmHS69B.png

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

Sc0wly

Regular
Regular
Joined
Feb 13, 2017
Messages
46
Reaction score
15
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:

ovate

tale
Regular
Joined
Dec 16, 2016
Messages
1,054
Reaction score
1,801
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

Regular
Regular
Joined
Feb 13, 2017
Messages
46
Reaction score
15
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).
 

ovate

tale
Regular
Joined
Dec 16, 2016
Messages
1,054
Reaction score
1,801
First Language
English
Primarily Uses
N/A
You're welcome, please credit "Yumineko."
 

Sc0wly

Regular
Regular
Joined
Feb 13, 2017
Messages
46
Reaction score
15
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
 

Latest Threads

Latest Posts

Latest Profile Posts

Okay, that is the last from me for a while, back to stupid work. Eugh!
I made a new little movie for my game, but I'm pretty sure it doesn't fit the family friendly rules here. :LZSgrin: I put it up on my youtube channel though.

Main theme for a Start/Continue/Options screen after Title card
28 notifications, and like 30 emails. And I was only gone for six hours. Yeah, I think I'm done for the day.
Also, I think I have a not secret admirer. Hooray...
Working on a battle cutscene, needs some polishing, but I'm liking the result:

Forum statistics

Threads
134,977
Messages
1,252,500
Members
177,852
Latest member
alexithewise
Top