Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Place file inside /js/plugins
- // Remember to save after adding plugins or changing parameters.
- //=============================================================================
- // Disable Escape
- //=============================================================================
- /*:
- * Version: 2015-11-21-1310
- *
- * CHANGE LOG:
- * 2015-11-21-1310: Released.
- *
- *
- * @plugindesc Ver.2015-11-21-1310. Disable escape menu globally.
- * <Ellye ED>
- * @author https://ellyeblog.wordpress.com/ || http://steamcommunity.com/id/Ellye
- *
- * @param Skip Turn Command
- * @desc Whether to add a Skip Turn command to actors. 0: off, 1: on. Default: 0
- * @default 0
- *
- * @param Skip Turn Text
- * @desc Text do display for Skip Turn Command.
- * @default Skip
- *
- *
- * @help
- * Plug and play, will disable escape for all battles.
- *
- */
- (function()
- {
- var parameters = $plugins.filter(function(p) {
- return p.description.contains('<Ellye ED>');
- })[0].parameters; //Thanks to Iavra
- var skip_turn_command = Number(parameters['Skip Turn Command'] || 0);
- var skip_turn_text = String(parameters['Skip Turn Text'] || "Skip");
- Scene_Battle.prototype.startPartyCommandSelection = function() {
- this.refreshStatus();
- this.commandFight();
- };
- if (skip_turn_command === 1)
- {
- _alias_sb_p_cacw = Scene_Battle.prototype.createActorCommandWindow;
- Scene_Battle.prototype.createActorCommandWindow = function() {
- _alias_sb_p_cacw.call(this);
- this._actorCommandWindow.setHandler('skip', this.commandSkip.bind(this));
- };
- _alias_wacpmcl = Window_ActorCommand.prototype.makeCommandList;
- Window_ActorCommand.prototype.makeCommandList = function() {
- _alias_wacpmcl.call(this);
- if (this._actor)
- {
- this.addSkipCommand();
- }
- };
- Window_ActorCommand.prototype.addSkipCommand = function() {
- this.addCommand(skip_turn_text, 'skip');
- };
- Scene_Battle.prototype.commandSkip = function() {
- this.selectNextCommand();
- };
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement