设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 52|回复: 2
打印 上一主题 下一主题

[有事请教] 战斗胜利结算后自动结束结算界面

[复制链接]

Lv3.寻梦者

梦石
0
星屑
4812
在线时间
1333 小时
注册时间
2018-1-16
帖子
383
跳转到指定楼层
1
发表于 前天 19:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
153星屑
如题,每次战斗结束后要点几次很麻烦,有没有什么办法可以等待一秒后自动结算到地图界面?

Lv2.观梦者

梦石
0
星屑
315
在线时间
9 小时
注册时间
2014-4-1
帖子
6
2
发表于 前天 19:35 | 只看该作者
  1. /*:
  2. * @target MZ
  3. * @plugindesc 战斗对话跳过
  4. *
  5. * @help
  6. * 跳过战斗的对话。
  7. *
  8. * @author slenderping
  9. *
  10. * @version 0.0.0
  11. */



  12. BattleManager.processEscape = function() {
  13.     $gameParty.performEscape();
  14.     SoundManager.playEscape();
  15.     const success = this._preemptive || Math.random() < this._escapeRatio;
  16.     if (success) {
  17.         this.onEscapeSuccess();
  18.         setTimeout(() => {$gameMessage.clear();}, 800);
  19.     } else {
  20.         this.onEscapeFailure();
  21.     }
  22.     return success;
  23. };

  24. BattleManager.displayStartMessages = function() {
  25.     for (const name of $gameTroop.enemyNames()) {
  26.         $gameMessage.add(TextManager.emerge.format(name));
  27.         setTimeout(() => {
  28.             SceneManager._scene._messageWindow.close();
  29.             $gameMessage.clear();
  30.         }, 1000);
  31.     }
  32.     if (this._preemptive) {
  33.         $gameMessage.add(TextManager.preemptive.format($gameParty.name()));
  34.     } else if (this._surprise) {
  35.         $gameMessage.add(TextManager.surprise.format($gameParty.name()));
  36.     }
  37. };

  38. BattleManager.displayVictoryMessage = function() {
  39.     $gameMessage.add(TextManager.victory.format($gameParty.name()));
  40.     setTimeout(() => {$gameMessage.clear();}, 2000);
  41. };






























复制代码
回复

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
4812
在线时间
1333 小时
注册时间
2018-1-16
帖子
383
3
 楼主| 发表于 昨天 11:38 | 只看该作者
有没有大佬有办法啊,急求
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-4-27 03:26

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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