Title Screen uses different SE than game

Nephilium

Veteran
Veteran
Joined
Jul 14, 2015
Messages
32
Reaction score
7
Primarily Uses
I'd like to use different sound effects say for New Game and Continue then the default Ok SE. I found a post here, but I can't really make any sense of you. Any idea how to achieve this? Is there another plugin or one I can attempt to build on my own?


Thanks!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
I've moved this thread to JS Plugin Requests. Please be sure to post your threads in the correct forum next time. Thank you.
 

Nephilium

Veteran
Veteran
Joined
Jul 14, 2015
Messages
32
Reaction score
7
Primarily Uses
Sorry, I had the link copied, just forgot to paste, it's been a long night.


And I would have posted this in the js scripts if I knew I was looking for a script. I only started using MV and wasn't sure if this was something that was script based or maybe they built it in. Or if this could even be done. Fairly new to the RPG Maker world.


Anyway heres the link the to post talking about it.






Thanks.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
Most things that you want to change, that can't be done with an event command or in the database, require a plugin.  This includes the majority of changes to any menu screen.


The script above is for VX Ace and has been reformatted so as to be unusable by the forum upgrade.  Here is a version that should work in MV.  Save this to TitleAudio.js in your plugins folder and set up the parameters.  Do not include file extensions in the audio names.


//=============================================================================
// TitleAudio.js
// by Shaz
// last updated 2016.11.27
//=============================================================================

/*:
* @plugindesc Changes the audio played for each Title entry
* <TitleAudio>
* @author Shaz
*
* @param New Game Sound
* @desc File name for New Game SE (omit extension)
* @default Decision1
* @require 1
* @dir audio/se
* @type file
*
* @param New Game Pan
* @desc Pan for New Game SE
* @default 0
*
* @param New Game Pitch
* @desc Pitch for New Game SE
* @default 100
*
* @param New Game Volume
* @desc Volume for New Game SE
* @default 90
*
* @param -----------------
*
* @param Continue Sound
* @desc File name for Continue SE (omit extension)
* @default Decision1
* @require 1
* @dir audio/se
* @type file
*
* @param Continue Pan
* @desc Pan for Continue SE
* @default 0
*
* @param Continue Pitch
* @desc Pitch for Continue SE
* @default 100
*
* @param Continue Volume
* @desc Volume for Continue SE
* @default 90
*
* @param -----------------
*
* @param Options Sound
* @desc File name for Options SE (omit extension)
* @default Decision1
* @require 1
* @dir audio/se
* @type file
*
* @param Options Pan
* @desc Pan for Options SE
* @default 0
*
* @param Options Pitch
* @desc Pitch for Options SE
* @default 100
*
* @param Options Volume
* @desc Volume for Options SE
* @default 90
*
* @help This plugin does not provide plugin commands.
*/

(function() {

var parameters = $plugins.filter(function(p) { return p.description.contains('<TitleAudio>'); })[0].parameters;

var titleSounds = [];
titleSounds.newGame = {};
titleSounds.newGame.name = String(parameters['New Game Sound'] || 'Decision1');
titleSounds.newGame.pan = Number(parameters['New Game Pan'] || 0);
titleSounds.newGame.pitch = Number(parameters['New Game Pitch'] || 100);
titleSounds.newGame.volume = Number(parameters['New Game Volume'] || 90);

titleSounds.continue = {};
titleSounds.continue.name = String(parameters['Continue Sound'] || 'Decision1');
titleSounds.continue.pan = Number(parameters['Continue Pan'] || 0);
titleSounds.continue.pitch = Number(parameters['Continue Pitch'] || 100);
titleSounds.continue.volume = Number(parameters['Continue Volume'] || 90);

titleSounds.options = {};
titleSounds.options.name = String(parameters['Options Sound'] || 'Decision1');
titleSounds.options.pan = Number(parameters['Options Pan'] || 0);
titleSounds.options.pitch = Number(parameters['Options Pitch'] || 100);
titleSounds.options.volume = Number(parameters['Options Volume'] || 90);

Window_TitleCommand.prototype.playOkSound = function() {
AudioManager.playStaticSe(titleSounds[this.currentSymbol()]);
};

})();




If you have other plugins that change the title menu (like adding a 'quit' option, for example), you will need to modify this plugin to cater for the changed/added options.
 

Nephilium

Veteran
Veteran
Joined
Jul 14, 2015
Messages
32
Reaction score
7
Primarily Uses
Thanks Shaz, took me a minute to figure out, but I got it working.
 


Didn't realize there's a difference between the js folder and than the plugin folder.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
The js folder is where the default scripts go that come with the engine.  The plugins folder is where you add the plugin scripts.
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top