Project1

标题: 关于跳过标题画面的问题 [打印本页]

作者: fbeds    时间: 2021-7-16 11:15
标题: 关于跳过标题画面的问题
我在论坛里找到了一个可以跳过标题画面的插件,可是我把游戏部署完启动后,发现这个插件没起作用。它只在测试模式下启动游戏才能跳过标题画面,就算把它自带的设置改成正常游戏模式也会跳过标题画面也无法起作用。怎么回事?
RUBY 代码复制
  1. //=============================================================================
  2. // SkipTitle.js
  3. //=============================================================================
  4.  
  5. /*:
  6. * @target MZ
  7. * @plugindesc Skip Title.
  8. * @author taroxd
  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.         Scene_Boot.prototype.startNormalGame = function() {
  25.             this.checkPlayerLocation()
  26.             DataManager.setupNewGame()
  27.             SceneManager.goto(Scene_Map)
  28.         }
  29.     }
  30. })()

作者: yaminolancelot    时间: 2021-7-16 11:25
插件设置里把Test Only改成false就好了啊
作者: fbeds    时间: 2021-7-16 11:52
yaminolancelot 发表于 2021-7-16 11:25
插件设置里把Test Only改成false就好了啊

没用,试过。
作者: MH-Pride    时间: 2021-7-16 11:57
这个是我在用的你可以试试

IgnisSkipTitle.rar

671 Bytes, 下载次数: 76


作者: fbeds    时间: 2021-7-16 12:02
好吧,我直接把那个enable的判定去掉了,现在问题解决了。
作者: yaminolancelot    时间: 2021-7-16 12:05
fbeds 发表于 2021-7-16 11:52
没用,试过。

那你就留这一段,放所有脚本最底下试试
  1.         Scene_Boot.prototype.startNormalGame = function() {
  2.             this.checkPlayerLocation()
  3.             DataManager.setupNewGame()
  4.             SceneManager.goto(Scene_Map)
  5.         }
复制代码





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