Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- // Maliki's Title ME Changer
- // MalTitleME.js
- // version 1.0
- //=============================================================================
- /*:
- * @plugindesc ver1.0 - Allows you to set a ME to play as you Title Screen music. This will prevent the mucis from looping.
- * @author Maliki79
- *
- * @param Title ME
- * @desc ME to start playing at Title Screen.
- *
- * @param Title ME volume
- * @desc Volume level of ME. (number must be between 0 and 100)
- * @default 100
- *
- * @param Title ME pitch
- * @desc Pitch level of ME. (number must be between 1 and 300)
- * @default 100
- *
- * @param Title ME pan
- * @desc Pan level of ME. (number must be between -100 and 100)
- * @default 0
- *
- * @help In order to use this plugin, you must first decide which ME you want
- * and make sure the file is IN YOUR me FOLDER.
- * Pick the name of the ME and put it's file name
- * in the parameters section.
- * (No need for " marks.)
- */
- var MalTitleMusic = PluginManager.parameters('MalTitleME');
- MalTitleMusic.MTitleME = String(MalTitleMusic['Title ME']) || '';
- MalTitleMusic.MTitleVol = Number(MalTitleMusic['Title ME volume']);
- MalTitleMusic.MTitlePitch = Number(MalTitleMusic['Title ME pitch']);
- MalTitleMusic.MTitlePan = Number(MalTitleMusic['Title ME pan']);
- Scene_Title.prototype.playTitleMusic = function() {
- var sound = this.buildSound();
- if (sound) AudioManager.playMe(sound);
- AudioManager.stopBgm;
- AudioManager.stopBgs();
- };
- Scene_Title.prototype.buildSound = function () {
- var sound = {
- name: MalTitleMusic.MTitleME,
- volume: MalTitleMusic.MTitleVol,
- pitch: MalTitleMusic.MTitlePitch,
- pan: MalTitleMusic.MTitlePan
- };
- console.log(MalTitleMusic.MTitleME);
- return sound;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement