질문과 답변

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 21156
RMMV [MV] [툴 내 이벤트] 이벤트 구현 후 원래의 장소로 장소이동하는 방법 2 이니군 2017.08.31 189
RMVXA 제발 도와주십시오 ㅠ 4 file 사탕84 2015.12.01 189
RMMV mv 자료에 대해서 질문올립니다 ㅠ 2 지혈이 2017.03.18 189
RMVXA 화면 축소에 관하여 질문이 있습니다 6 file HST 2016.08.09 189
RMVXA 인터페이스 오류...? 2 file 규레 2017.08.26 189
RMVXA rpg 메이커 처음 만져보는데..카톡이나 통화하면서 알려주실수 있나요?? 2 나호성 2017.11.07 189
RMVXA 스위치를 어떻게 해야될지 모르겠어요 8 Mop 2018.01.14 189
기타 게임찾기 혹시 성검전설3같은 게임은 없나요? 기성124234234 2020.01.31 189
스크립트 사용 RMXP 메세지 스크립트 관련하여 질문 드립니다. 2 file 빈군 2020.05.18 189
플러그인 추천 RMMV "버튼 액션"?에 관한 질문입니다! 2 소랭소랭 2021.03.20 190
RMMV NPC가 따라오다가 특정위치 도달하면.. 3 카시어스 2018.03.24 190
툴선택 게임 만들 프로그램 추천 질문부탁드립니다 2 DoubleU 2017.09.13 190
RMMV (코드분석)Window_BattleLog 클래스가 잘 짜여진 건가요? 2 일단 2016.03.05 190
이벤트 작성 RM2k 게임 시작할때 그림 먼저 뜨게 하는 법 1 qrwdgr 2021.10.04 190
사이트 이용 투표소에 대한 질문입니다. 2 ifeve 2016.01.08 190
RMVXA 캐릭터 선택시 바로 특수창으로 넘기는법 file 기폭 2015.05.28 190
기타 공포게임추격관련 스크립트대해 질문 2 아쳐 2015.08.19 190
사이트 이용 어떡하면 일반회원에서 올라갈 수 있나요? 현준갓 2017.04.30 190
RMVXA 시야제한 삭제에 대해 질문 드립니다. 3 류미엘 2015.12.10 190
기타 RMMZ DorapixelMapChips Bundle MZ라는 DLC 사용해 보신 분 계시나요? 2 COMPUTER 2025.02.10 190
Board Pagination Prev 1 ... 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 ... 518 Next
/ 518