Project1

标题: 跳过标题v2(同时跳过结束游戏和返回标题的标题) [打印本页]

作者: 79160475    时间: 2025-12-3 18:23
标题: 跳过标题v2(同时跳过结束游戏和返回标题的标题)
跳过标题v2(同时跳过结束游戏和返回标题的标题)
就多个方法,给各位用事件做标题

JS 代码复制
  1. //=============================================================================
  2. // SkipTitle.js
  3. //=============================================================================
  4.  
  5. /*:
  6. * @target MZ
  7. * @plugindesc Skip Title (Include Return to Title).
  8. * @author taroxd & Modified
  9. *
  10. * @param Test Only
  11. * @desc Whether to skip title only in playtest. true/false
  12. * @type boolean
  13. * @default true
  14. *
  15. * @help This plugin does not provide plugin commands.
  16. */
  17.  
  18. ;(() => {
  19.     const parameters = PluginManager.parameters('SkipTitle')
  20.     const testOnly = parameters['Test Only'] !== 'false'
  21.     const enable = !testOnly || Utils.isOptionValid("test")
  22.  
  23.     if (enable) {
  24.         // 1. 游戏启动时跳过标题 (原作者逻辑)
  25.         Scene_Boot.prototype.startNormalGame = function() {
  26.             this.checkPlayerLocation()
  27.             DataManager.setupNewGame()
  28.             SceneManager.goto(Scene_Map)
  29.         }
  30.  
  31.         // 2. 新增:当从菜单返回或游戏结束进入标题画面时,也强制跳过
  32.         Scene_Title.prototype.start = function() {
  33.             // 不调用原来的标题画面逻辑,直接重置游戏并进入地图
  34.             Scene_Base.prototype.start.call(this)
  35.             DataManager.setupNewGame()
  36.             SceneManager.goto(Scene_Map)
  37.         }
  38.     }
  39. })()

作者: 习惯就好    时间: 2026-3-29 12:14
本帖最后由 习惯就好 于 2026-3-29 12:20 编辑

楼主不行啊,测试过,部署文件之后还是显示标题




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1