Project1

标题: 求问可否在开始游戏时判断是否使用某个插件 [打印本页]

作者: lucy94920    时间: 2018-2-21 14:48
标题: 求问可否在开始游戏时判断是否使用某个插件
想请教一下各位dalao……想在打开游戏的时候根据是否有存档来判断一个插件使不使用……
实际效果是在使用yami_skiptitle的时候,想一开始打开游戏时跳过标题画面的直接显示序幕,在序幕过了以后并且有存档过,下次打开游戏的时候进入正常标题界面……
十分感谢

以下是插件本身的代码


作者: 芯☆淡茹水    时间: 2018-2-21 14:48
这样?

  1. /*:
  2. * @plugindesc Skip the title scene for testing purpose.
  3. * @version 1.0
  4. */

  5. (function() {

  6.     Scene_Boot.prototype.start = function() {
  7.         Scene_Base.prototype.start.call(this);
  8.         SoundManager.preloadImportantSounds();
  9.         if (DataManager.isBattleTest()) {
  10.             DataManager.setupBattleTest();
  11.             SceneManager.goto(Scene_Battle);
  12.         } else {
  13.             this.checkPlayerLocation();
  14.             DataManager.setupNewGame();
  15.             SceneManager.goto(DataManager.isAnySavefileExists() ? Scene_Title : Scene_Map);
  16.         }
  17.         this.updateDocumentTitle();
  18.     };

  19. })();
复制代码

作者: lucy94920    时间: 2018-2-21 20:30
芯☆淡茹水 发表于 2018-2-21 14:48
这样?

十分感谢!




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