-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSkipFirstTitle.js
39 lines (36 loc) · 1.26 KB
/
SkipFirstTitle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//=============================================================================
// SkipFirstTitle.js
//=============================================================================
/*:
* @target MZ
* @plugindesc Skips the title screen and starts a new game when no savefile exists.
* @author Toru Higuruma
* @url https://github.com/neofuji/RPGMZ-Plugins
*
* @help SkipFirstTitle v1.0 (2020-08-20)
* Copyright (c) 2020 Toru Higuruma
* This plugin is provided under the MIT License.
*
* It does not provide plugin commands.
*/
/*:ja
* @target MZ
* @plugindesc セーブファイルが存在しない場合、タイトル画面を表示せずニューゲームします。
* @author Toru Higuruma
* @url https://github.com/neofuji/RPGMZ-Plugins
*
* @help SkipFirstTitle v1.0 (2020-08-20)
* Copyright (c) 2020 Toru Higuruma
* このプラグインは MIT License の下で提供されます。
*
* プラグインコマンドはありません。
*/
(() => {
const _Scene_Boot_startNormalGame = Scene_Boot.prototype.startNormalGame;
Scene_Boot.prototype.startNormalGame = function() {
_Scene_Boot_startNormalGame.apply(this, arguments);
if (!DataManager.isAnySavefileExists()) {
SceneManager.goto(Scene_Map);
}
};
})();