질문과 답변

Extra Form

이벤트 페이지 중에 어떤 조건(예를들어 스위치가 on이라거나 변수가 1이라거나)이 없는 조건문 페이지가 1개라도 없으면 오류가 납니다. 즉 모든 페이지가 조건문 페이지인 이벤트가 있으면 오류가 납니다.


 var Imported = Imported || {};

Imported.TMTurnMove = true;


var TMPlugin = TMPlugin || {};


if (!TMPlugin.EventBase) {

  TMPlugin.EventBase = true;

  (function() {


    var _Game_Event_setupPage = Game_Event.prototype.setupPage;

    Game_Event.prototype.setupPage = function() {

      _Game_Event_setupPage.call(this);

      if (this._pageIndex >= 0) this.loadCommentParams();

    };


    Game_Event.prototype.loadCommentParams = function() {

      this._commentParams = {};

      var re = /<([^<>:]+)(:?)([^>]*)>/g;

      var list = this.list();

      for (var i = 0; i < list.length; i++) {

        var command = list[i];

        if (command && command.code == 108 || command.code == 408) {

          for (;;) {

            var match = re.exec(command.parameters[0]);

            if (match) {

              this._commentParams[match[1]] = match[2] === ':' ? match[3] : true;

            } else {

              break;

            }

          }

        } else {

          break;

        }

      }

    };


    Game_Event.prototype.loadTagParam = function(paramName) {

      return this._commentParams[paramName] || this.event().meta[paramName];

    };


  })();

} // TMPlugin.EventBase


(function() {


  //-----------------------------------------------------------------------------

  // Game_Map

  //


  Game_Map.prototype.updateTurnMove = function() {

    var events = this.events();

    for (var i = 0; i < events.length; i++) {

      events[i].updateTurnMove();

    }

  };


  //-----------------------------------------------------------------------------

  // Game_Player

  //


  Game_Player.prototype.disableTurnMove = function() {

    this._turnMoveEnabled = false;

  };


  Game_Player.prototype.enableTurnMove = function() {

    this._turnMoveEnabled = true;

  };


  var _Game_Player_increaseSteps = Game_Player.prototype.increaseSteps;

  Game_Player.prototype.increaseSteps = function() {

    _Game_Player_increaseSteps.call(this);

    if (this._turnMoveEnabled == null) this._turnMoveEnabled = true;

    if (this._turnMoveEnabled) $gameMap.updateTurnMove();

  };


  //-----------------------------------------------------------------------------

  // Game_Event

  //


  var _Game_Event_setupPage = Game_Event.prototype.setupPage;

  Game_Event.prototype.setupPage = function() {

    _Game_Event_setupPage.call(this);

    this._alwaysTurnMove = this.loadTagParam('alwaysTurnMove') ||

                           this.loadTagParam('常にターン移動');

    this._turnMove = this._alwaysTurnMove || this.loadTagParam('turnMove') ||

                     this.loadTagParam('ターン移動');

    this._turnMoveCount = 0;

  };


  var _Game_Event_isNearTheScreen = Game_Event.prototype.isNearTheScreen;

  Game_Event.prototype.isNearTheScreen = function() {

    if (this._alwaysTurnMove) return true;

    return Game_Character.prototype.isNearTheScreen.call(this);

  };


  var _Game_Event_checkStop = Game_Event.prototype.checkStop;

  Game_Event.prototype.checkStop = function(threshold) {

    if (this._turnMove) {

      if (this._turnMoveCount == null) this._turnMoveCount = 0;

      if (this._turnMoveFlag) {

        this._turnMoveCount += 60;

        this._turnMoveFlag = false;

      }

      if (this._turnMoveCount < threshold) return false;

      this._turnMoveCount -= threshold;

      return true;

    } else {

      return _Game_Event_checkStop.call(this, threshold);

    }

  };


  Game_Event.prototype.updateTurnMove = function() {

    this._turnMoveFlag = true;

  };


  //-----------------------------------------------------------------------------

  // Game_Interpreter

  //


  var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;

  Game_Interpreter.prototype.pluginCommand = function(command, args) {

    _Game_Interpreter_pluginCommand.call(this, command, args);

    if (command === 'stopTurnMove') {

      $gamePlayer.disableTurnMove();

    } else if (command === 'startTurnMove') {

      $gamePlayer.enableTurnMove();

    } else if (command === 'skipTurnMove') {

      $gameMap.updateTurnMove();

    }

  };

  

})();

 

 

 

 

 

 

 

■ 질문전 필독!
  • 질문할 내용이 이 게시판이나 강좌에 이미 있는지 확인합니다.
  • 하나의 게시물에는 하나의 질문만 합니다.
  • 제목은 질문의 핵심 내용으로 작성합니다.
  • 질문 내용은 답변자가 쉽게 이해할 수 있도록 최대한 상세하게 작성합니다.
  • 스크립트의 전문이 필요할 경우 txt 파일 등으로 첨부해 주시기 바랍니다.
  • 답변받은 게시물은 삭제하지 않습니다.
  • 답변이 완료된 경우 해당 답변해주신 분들께 감사의 댓글을 달아줍니다.
    • 처음 오신 분들은 공지 게시물을 반드시 읽어주세요!

※ 미준수시 사전경고 없이 게시물을 삭제합니다.

Comment '2'
  • ?
    작은꼬리 2017.10.09 07:29

    모든 페이지가 출현 조건을 충족하지 않는 이벤트에서 오류가 난다는 거라면 어제 해결된 것으로 보입니다.
    홈페이지에 가서 최신 버전의 플러그인을 다시 받아보세요.

    2017/10/08
    RPGツクールMV用プラグイン『ターン移動』を更新しました。
    出現条件を満たしていないイベントがあるとエラー落ちする不具合を
    修正しています。
    報告ありがとうございました!
    ■ターン移動

  • ?
    잠행인 2017.10.09 16:25
    아 저도 확인했는데 트윗으로 이거 고쳤다고 알려줬어요. 제가 문의한겁니다

List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 21133
RMXP 이건 무슨 에러임? 1 file RPG1256 2011.08.28 2076
RMVXA 이건 무슨 에러인가요.. 8 file 아러리 2013.09.12 840
기타 이건 또 무슨 빛 이펙트 오류.. 2 은색바람 2011.09.09 1242
RMXP 이건 대체 어디에 쓰이는 기능이죠? 1 file 데버 2012.12.31 720
기타 이건 가능하게 되겠죠? 타락한마왕 2015.10.22 106
RMVX 이거뭐가잘못된거죠? main 스크립트를 바꿧는데 이상하네요.. 3 십스키교수 2013.08.19 1042
RMVX 이거는 안고쳐지는건가요? ㅠㅠ 2 file 언제나기쁨 2013.10.09 1037
기타 이거계속오류나는데 어떡하죠 스크립트 오류임 4 file Robin.black™ 2013.08.30 961
RMVX 이거..스트립트문제인데..알려주세요 ㅠ 4 file RPGVX여우 2013.05.20 744
RMVXA 이거...혹시 툴 버그인가요? 1 금목걸이 2017.01.04 119
RMVX 이거... 어떻게 해야할까요? 1 file 르코 2011.06.15 867
기타 기타 이거... 스팀에서 게임 업데이트 이렇게 하는 거 아닌가요? file 하라아아암 2023.12.24 88
RMVX 이거 해결 방법좀 알려주세요 ㅠ 1 www 2011.01.21 660
RMXP 이거 할줄 아시는분 답변점 1 hero 2011.01.04 368
RMXP 이거 할수있어요??? 1 ★RPG마스터★ 2011.03.06 757
RMXP 이거 폰트인건가요?? 무슨 폰트인건가요? rpg게임들은 거의 이런 폰트던데... 6 file 호오라그렇군여 2014.05.07 1244
RMVX 이거 타이머 질문.. 1 츠미코 2010.09.22 821
RMMV 이거 체험판 다운로드 주소가 이메일을 등록해야 깔 수 있는 주소인데 이미 깔아서 1 드래곤규 2015.12.09 139
RMVX 이거 진짜 해결이 안되네요 2 아이카 2012.01.04 2510
RMXP 이거 좀 제발 알려주세요 ㅠㅠ 1 카시오페아 2011.04.05 1251
Board Pagination Prev 1 ... 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 ... 518 Next
/ 518