질문과 답변

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
RMMV 연속공격을 더 빠르게 할수없을까요? 3 nachthexen 2017.06.17 181
RMMV mv 질문이요 ㅠㅠ 2 3ad 2018.03.15 181
RMMV MV 공격력중첩에 관한 질문 the추장 2016.01.12 181
RMMV 이건 어떻게 해결해야 하나요? 4 file 잠행인 2016.09.13 181
RMMV 제작 당시의맵과 실제 게임 실행시 표현되는 맵이 다릅니다. 8 file 질라이자로즈 2017.08.04 181
이벤트 작성 RMMV 세이브파일을 로드하여 불러왔을때마다 따로 생기는 분기는 어떻게 생성하나요? 2 일반적잉간 2019.03.15 181
RMMV 이 플러그인 오류 고치는 방법 2 잠행인 2017.10.09 181
RMMV MV 현재 소지 금액을 메세지로 출력하고 싶습니다. 2 gamsayo 2018.11.05 181
턴제 전투 RMMV 전투 방식을 바꾸고 싶습니다. 5 QUzc 2019.05.09 181
플러그인 추천 RMMV Hp와 TP 바 등등 그래픽 수정하는 법/텍스트 효과음 BLT 2020.05.19 181
게임 배포 RMMV mv 체험판 배포 되나요 4 나이아드 2022.07.24 181
액션 전투 RMMV QABS 플러그인 잘아시는분 있으신가요? file 카르네스아리엔 2021.04.09 181
이벤트 작성 RMMV 물체가 생기는 이벤트 도와주십쇼 2 file 개백수인생입니다 2022.01.02 181
맵배치 RMMV 캐릭터 오브젝트 아래로 보이게하기 1 file 소용돌이은하에서사는자 2020.08.20 182
RMMV 전투 도중에 총이나 활을 사용하면 총알&화살이 소모하게 만들고 싶은데 2 해킹당한해커 2018.06.30 182
RMMV 레벨을 캐릭터레벨/종족레벨/직업레벨로 분활 하고 싶습니다. 10 RoyalNavy 2018.07.01 182
RMMV 마우스 우클릭 잠금 & 마우스로 액터 이동하기 룡료이 2017.09.08 182
라이선스 RMMV MV 모바일 포팅때 글꼴파일을 게임 안에 넣어야하나요? 잠행인 2016.08.26 182
RMMV 만렙제한 메뉴가 없네요. 1 자유와바람 2016.10.18 182
RMMV 안녕하세요 MV 모바일 플랫폼 동작 시 프레임 저하(렉 현상)관련 질문 드립니다. Rashiel 2017.02.22 182
Board Pagination Prev 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 ... 83 Next
/ 83