我在论坛里找到了一个可以跳过标题画面的插件,可是我把游戏部署完启动后,发现这个插件没起作用。它只在测试模式下启动游戏才能跳过标题画面,就算把它自带的设置改成正常游戏模式也会跳过标题画面也无法起作用。怎么回事?//============================================================================= // SkipTitle.js //============================================================================= /*: * @target MZ * @plugindesc Skip Title. * @author taroxd * * @param Test Only * @desc Whether to skip title only in playtest. true/false * @type boolean * @default true * * @help This plugin does not provide plugin commands. */ ;(() => { const parameters = PluginManager.parameters('SkipTitle') const testOnly = parameters['Test Only'] !== 'false' const enable = !testOnly || Utils.isOptionValid("test") if (enable) { Scene_Boot.prototype.startNormalGame = function() { this.checkPlayerLocation() DataManager.setupNewGame() SceneManager.goto(Scene_Map) } } })()
//=============================================================================
// SkipTitle.js
//=============================================================================
/*:
* @target MZ
* @plugindesc Skip Title.
* @author taroxd
*
* @param Test Only
* @desc Whether to skip title only in playtest. true/false
* @type boolean
* @default true
*
* @help This plugin does not provide plugin commands.
*/
;(() => {
const parameters = PluginManager.parameters('SkipTitle')
const testOnly = parameters['Test Only'] !== 'false'
const enable = !testOnly || Utils.isOptionValid("test")
if (enable) {
Scene_Boot.prototype.startNormalGame = function() {
this.checkPlayerLocation()
DataManager.setupNewGame()
SceneManager.goto(Scene_Map)
}
}
})()
|