ovate

tale
Veteran
Joined
Dec 16, 2016
Messages
911
Reaction score
1,550
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: 60
Last edited:

Sc0wly

Veteran
Veteran
Joined
Feb 13, 2017
Messages
46
Reaction score
12
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
Veteran
Joined
Dec 16, 2016
Messages
911
Reaction score
1,550
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

Veteran
Veteran
Joined
Feb 13, 2017
Messages
46
Reaction score
12
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
Veteran
Joined
Dec 16, 2016
Messages
911
Reaction score
1,550
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
12
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
Veteran
Joined
Dec 16, 2016
Messages
911
Reaction score
1,550
First Language
English
Primarily Uses
N/A
You're welcome, please credit "Yumineko."
 

Sc0wly

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

FirestormNeos wrote on DarkPlasmaBall's profile.
asking this here instead of the thread in question to avoid derailing it, but I'm curious; is there a particular reason you'd include a "Terms of Use" for an RPG Maker game? Like, are there multiplayer features for the game you're working on?
The holidays are upon us! Everyone search for safety from the grocery store music!
I don't understand people sometime. Walking to work today came across someone walking the opposite way in a nice suit, I politely move to the side into the shrubbery so he doesn't have to get his suit dirty and say "good morning" as he passes me, he turns around glaring daggers and asks "why are you talking to me?" like he's bloody offended by me wishing him a good morning or something. Just, why?
I dreamed about watching Gackt concert live.
He was riding some kind of crescent moon boat.
But his appearance resembled Andhika Kangen Band (Indonesian singer),
and the first song he sang was L'arc en Ciel's Hitomi no Jyuunin.
Weird, but still beautiful though. :D
I've been working on making a simple sprite frame system. And I'm really happy with the progress.
ZAyFw65.gif

Forum statistics

Threads
117,135
Messages
1,104,879
Members
153,198
Latest member
burkedylan
Top