Project1

标题: 【MZ 就这?】跳过标题画面 [打印本页]

作者: taroxd    时间: 2020-8-21 08:23
标题: 【MZ 就这?】跳过标题画面
本帖最后由 taroxd 于 2020-8-21 08:50 编辑

看了看自己写过的玩意儿,好像基本上只有这个明显要改……那就改一下吧

https://taroxd.github.io/mvmz-plugins/SkipTitleMZ.html

JAVASCRIPT 代码复制
  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. })()

作者: walf_man    时间: 2020-8-21 23:46
这就跳过标题了?真棒呀
作者: 我是李蜀黍    时间: 2020-10-29 16:29
厉害啊{:4_95:}
作者: qq7145    时间: 2020-11-13 00:40
谢谢楼主分享,楼主辛苦了
作者: mmmmttt    时间: 2020-12-30 17:57
厉害!
作者: 745686368    时间: 2021-1-28 21:18
支持楼主,谢谢
作者: mgq910346357    时间: 2021-2-12 16:06
问下楼主为什么我用了这个在测试里是可以正常跳过的,把游戏导出来之后就不能跳过了呀
作者: GOODGUY0719    时间: 2021-5-23 23:18
這是真的很實用的插件,真心感謝您的無私分享
作者: mmmmttt    时间: 2021-5-24 08:20
非常实用,感谢大神!
作者: roudanlunde    时间: 2022-2-10 13:40
本帖最后由 roudanlunde 于 2022-2-11 10:21 编辑

但是部署后还是会有标题界面,只是测试时生效是为什么呢
作者: roudanlunde    时间: 2022-2-10 15:47
但是部署出来后还是到标题界面?
作者: 13176593952    时间: 2022-3-1 14:53
void function() {
        Scene_Title.prototype.start = function() {
            Stage.prototype.initialize.call(this);
            DataManager.setupNewGame();
            SceneManager.clearStack();
            $gamePlayer.requestMapReload();
            SceneManager.goto(Scene_Map);
    }
}();
作者: yxd5108    时间: 2022-6-9 21:00
有效果,不错,在使用中试用中
作者: Xeon    时间: 2022-12-18 10:41
有没有办法能让从菜单返回标题画面时也跳过标题画面呢?




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