ovate

tale
Veteran
Joined
Dec 16, 2016
Messages
994
Reaction score
1,612
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
994
Reaction score
1,612
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
994
Reaction score
1,612
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
994
Reaction score
1,612
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

Marketing seems to be about reducing dependence on luck to sell a product, as well as expanding the number of avenues in which luck can play a role in selling a product.
So, I've been wanting to do this randomized logic puzzle in my game for years now. I finally figured out how to do it by using arrays and a few small script calls. It's based on the Einstein Fish Puzzle! :D Though, I have no idea how to actually have the player put in answers.... might start a thread about it.

The projectiles shown in this video are as follows:
1, Basic Triple
2, 30-Degree Arc
3, Randomized Blast Wave
4, 8-way
5, 8-way Double
6, 8-way Slowness
7, 120-Degree Arc Repetitive
8, Projective Triple
9, Split 8-way
10, 2-way Split Randomized Arc
11, HP-MP Split Arc
12, Split Laser
13, Shock
14, Cosine
Drop shadows and water reflections tests in RPG Maker VX Ace


BgI3F80.png
I'm doing a fairy tale project Little Red Riding Hood and the Woodsman. I'm almost done with the demo in my native language and I intend to make a demo version in English as well. I'm just going to use the translator because I don't know the pronunciations very well, I only know how to say "Hey" and nothing else.. :kaoswt2:

Forum statistics

Threads
118,622
Messages
1,117,405
Members
155,706
Latest member
gaoumaru
Top