跳过标题v2(同时跳过结束游戏和返回标题的标题)
跳过标题v2(同时跳过结束游戏和返回标题的标题)就多个方法,给各位用事件做标题
JS 代码
//=============================================================================
// SkipTitle.js
//=============================================================================
/*:
* @target MZ
* @plugindesc Skip Title (Include Return to Title).
* @author taroxd & Modified
*
* @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) {
// 1. 游戏启动时跳过标题 (原作者逻辑)
Scene_Boot.prototype.startNormalGame = function() {
this.checkPlayerLocation()
DataManager.setupNewGame()
SceneManager.goto(Scene_Map)
}
// 2. 新增:当从菜单返回或游戏结束进入标题画面时,也强制跳过
Scene_Title.prototype.start = function() {
// 不调用原来的标题画面逻辑,直接重置游戏并进入地图
Scene_Base.prototype.start.call(this)
DataManager.setupNewGame()
SceneManager.goto(Scene_Map)
}
}
})()
本帖来自P1论坛作者79160475,因Project1站服务器在国外有时候访问缓慢不方便作者交流学习,经联系P1站长fux2同意署名转载一起分享游戏制作经验,共同为国内独立游戏作者共同创造良好交流环境,原文地址:https://rpg.blue/forum.php?mod=viewthread&tid=498359若有侵权,发帖作者可联系底部站长QQ在线咨询功能删除,谢谢。
页:
[1]