질문과 답변

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 12387
기타 RMVXA 압축된 파일 툴 분해하는법이 있나요 겜만들고싶다앙 2021.01.30 86
턴제 전투 RMVXA VX ACE) 급합니다 부탁드려요) 스킬을 화면에 꽉 차게 그림을 그려서 만들려면 어떻게 해야 하나요? 6 file 황태국 2021.01.29 161
기타 RMMV 이미지를 불러올 때마다 메모리가 쌓입니다 1 아루미 2021.01.28 128
기타 RMMV 타이틀, 메뉴의 이름을 마음대로 바꿀 수 있나요? 2 아루미 2021.01.27 303
플러그인 사용 RMMV "특정이름을 입력했을 때 이벤트 발생하기" 질문입니다! 2 소랭소랭 2021.01.26 148
기타 RMVXA 화면 사이즈를 800X600으로 수정후 동영상을 플레이했는데 옆으로 치우치네요 2 선인장해마 2021.01.26 94
이벤트 작성 RMMV 특정 캐릭터들이 파티에 함께 있으면 버프가 발생하도록 만들고 싶습니다 1 유카이 2021.01.26 77
턴제 전투 RMMV 버프를 제한하고 싶습니다 2 마차군 2021.01.25 100
기타 RMVXA vx ace) (급합니다....부디 도움을...) 알만툴 내 기본 설정 관련 질문 2 게임이만들고파 2021.01.25 113
게임 배포 RMMV 스팀에 MV로 게임을 제작 배포할때 파일명을 전부 영문으로 해야 할까요? 3 카르와푸딩의아틀리에 2021.01.23 238
이벤트 작성 RMMV 변수에 따른 이득을 어떻게 바꾸나요? 1 hurakan 2021.01.22 87
기본툴 사용법 RMMV 캐릭터 제작 관련 질문입니다 (초보자 도움좀 주세요 ㅠㅠ) 2 이닉을쓰다니 2021.01.21 218
플러그인 추천 RMMV rpg maker mv에서 아이템 선택의 처리에서 아이템 설명 보도록 하는 방법 1 CowderMide 2021.01.19 475
기타 RMVXA VX ACE)특정 상태이상을 중첩시키는 방법 게임이만들고파 2021.01.17 223
기본툴 사용법 RMMV 대화 제어판 어떻게여나요? 1 file hurakan 2021.01.13 162
기본툴 사용법 RMVXA 캐릭터 스탠딩(BIG페이스칩)을 넣고 싶어요! 3 빨간토끼 2021.01.13 575
턴제 전투 RMMV 턴제전투에서 스킬 실행시 파티원들도 강제적으로 그 스킬을 실행하는법 Marine 2021.01.11 146
라이선스 기타 해당 맵 제작자 분이나 사용 범위에 대해 아시는 분 계신가요ㅜㅜ file 신화 2021.01.08 176
기타 RMMV 1280*720 사이즈에 맞는 맵 사이즈 1 멮쟝 2021.01.07 250
스크립트 추천 RMVXA npc가 마주볼때 이벤트 발생 시키기 3 겜만들고싶다앙 2021.01.07 215
Board Pagination Prev 1 ... 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 ... 516 Next
/ 516