江湖梦网游戏服务平台

 找回密码
 免费注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 2383|回复: 0

[搬运汉化] 战斗开始时跳过命令 直接战斗

[复制链接]

449

帖子

41

精华

25

贡献

江湖英豪

检察者

Rank: 5Rank: 5Rank: 5

积分
7217
发表于 2020-11-30 15:51 | 显示全部楼层 |阅读模式

马上注册,享用更多精彩。

您需要 登录 才可以下载或查看,没有帐号?免费注册

x
在回合制中,如果您与第一个演员取消,您将返回派对命令。

如果在聚会命令窗口中取消,则您将处于选择战斗的状态。


  MIT许可证。
  https://ja.osdn.net/projects/ope ... enses%2FMIT_license
*未经作者许可,可以修改和重新分发,
*使用方式没有任何限制(商业用途,18种禁止使用等)。



  1. /*
  2. * --------------------------------------------------
  3. * MNKR_PartyCommandSkipMZ Ver.1.1.0
  4. * Copyright (c) 2020 Munokura
  5. * This software is released under the MIT license.
  6. * [url]http://opensource.org/licenses/mit-license.php[/url]
  7. * --------------------------------------------------
  8. */

  9. /*:ja
  10. * @target MZ
  11. * @url [url]https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_PartyCommandSkipMZ.js[/url]
  12. * @plugindesc 戦闘開始時にパーティコマンドを飛ばし、アクターコマンドから開始します。
  13. * @author munokura
  14. *
  15. * @help
  16. * 戦闘開始時にパーティコマンドを飛ばします。
  17. *
  18. * ターン制では、先頭のアクターでキャンセルすると、パーティコマンドに戻ります。
  19. *
  20. * パーティコマンドウィンドウでキャンセルすると、戦うを選んだ状態になります。
  21. *
  22. * プラグインコマンドはありません。
  23. *
  24. *
  25. * 利用規約:
  26. *   MITライセンスです。
  27. *   [url]https://ja.osdn.net/projects/opensource/wiki/licenses%2FMIT_license[/url]
  28. *   作者に無断で改変、再配布が可能で、
  29. *   利用形態(商用、***利用等)についても制限はありません。
  30. */

  31. (() => {
  32.       'use strict';

  33.       const _Scene_Battle_prototype_createPartyCommandWindow = Scene_Battle.prototype.createPartyCommandWindow
  34.       Scene_Battle.prototype.createPartyCommandWindow = function () {
  35.             _Scene_Battle_prototype_createPartyCommandWindow.call(this);
  36.             this._partyCommandWindow.setHandler('cancel', this.commandFight.bind(this));
  37.       };

  38.       const _Scene_Battle_prototype_startPartyCommandSelection = Scene_Battle.prototype.startPartyCommandSelection;
  39.       Scene_Battle.prototype.startPartyCommandSelection = function () {
  40.             if (this._partyCommandSkipped && !($dataSystem.battleSystem === 0)) {
  41.                   _Scene_Battle_prototype_startPartyCommandSelection.call(this);
  42.             } else {
  43.                   this._partyCommandSkipped = true;
  44.                   this.selectNextCommand();
  45.             }
  46.       };

  47.       Scene_Battle.prototype.selectPreviousCommand = function () {
  48.             BattleManager.selectPreviousCommand();
  49.             if (BattleManager.isInputting() && BattleManager.actor()) {
  50.                   this.startActorCommandSelection();
  51.             } else {
  52.                   _Scene_Battle_prototype_startPartyCommandSelection.call(this);
  53.             }
  54.       };

  55. })();
复制代码


QQ群:135474765游戏群 [img]http://img2.17getfun.com/FhlesUf3VWxvhVFuc0qdBwYuanyt?imageMogr2/auto-orient/thumbnail/1080x%3E/format/jpg/
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|手机版|Archiver|小黑屋|江湖梦网 ( 粤ICP备18126133号-1 )

GMT+8, 2024-4-20 10:37 , Processed in 0.254301 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表