Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- // Maliki's Custom Game Ove ME
- // MalCustomGameOverME.js
- // version 1.0a
- //=============================================================================
- /*:
- * @plugindesc ver1.0a - Allows devs to set custom Music to GameOver Scene.
- *@author Maliki79
- *
- * @help Use the below Script calls to change music from the default one chosen in the database.
- *
- * SCRIPT CALLS
- *
- * $gameSystem.setCustomGOME(name);
- * This call will enter the file in the game's ME folder to be used at the game over screen.
- * (Remeber to use "quotes" and omit the file extension)
- * If you leave the name blank, the ME will return to the default ME.
- */
- var MalGOMEInitialize = Game_System.prototype.initialize;
- Game_System.prototype.initialize = function() {
- MalEncounterInitialize.call(this);
- this._customGOME = "";
- }
- Game_System.prototype.setCustomGOME = function(name) {
- if (name) {
- this._customGOME = name;
- } else {
- this._customGOME = "";
- };
- };
- Scene_Gameover.prototype.playGameoverMusic = function() {
- AudioManager.stopBgm();
- AudioManager.stopBgs();
- var name = $gameSystem._customGOME;
- var sound = $dataSystem.gameoverMe;
- if (name !== "") sound.name = name;
- AudioManager.playMe(sound);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement