XP 스크립트

이벤트 명령 'Wait for Move Completion(이동 완료까지 대기)'가 특정상황(캐릭터나 이벤트에 이동경로를 할당한 뒤 그것을 반복시킬 때)에서 게임을 멈추게 하는 문제를 수정하는 스크립트입니다.


#==========================================================================
# ** SG Wait for Move Completion Fix
#==========================================================================
# sandgolem
# Version 1
# 22.07.06
#==========================================================================
#
# To use this script, copy it and insert it in a new section above "Main",
# but under the default scripts and the SDK if you're using it.
#
#==========================================================================

begin
  SDK.log('SG Wait for Move Completion Fix', 'sandgolem', 1, '22.07.06')
  if SDK.state('SG Wait for Move Completion Fix') != true
    @sg_completionfix_disabled = true
  end
  rescue
end

if !@sg_completionfix_disabled
#--------------------------------------------------------------------------

class Game_Character
  attr_accessor :sg_move_fix
 
  alias sandgolem_completionfix_character_forcemr force_move_route
  def force_move_route(move_route)
    @sg_move_fix = nil
    sandgolem_completionfix_character_forcemr(move_route)
  end
 
  alias sandgolem_completionfix_character_mtcustom move_type_custom
  def move_type_custom
    if @move_route.list[@move_route_index].code == 0
      @sg_move_fix = true
    end
    sandgolem_completionfix_character_mtcustom
  end
end

#--------------------------------------------------------------------------
end


스크립트를 삽입한 뒤 인터프리터부분에서 다음을 찾음:
class Interpreter
.........
  def update
.........
        # Loop (map events)
        for event in $game_map.events.values
          # If this event is forcing move route
          if event.move_route_forcing #찾기
            return
          end
        end
.........

해당 부분을 다음처럼 수정:
class Interpreter
.........
  def update
.........
        # Loop (map events)
        for event in $game_map.events.values
          # If this event is forcing move route
          if event.move_route_forcing && !event.sg_move_fix #수정
            return
          end
        end
.........

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 7317
701 오디오 CG, 음악 감상 스크립트 [한글화] 11 file 백호 2009.02.21 2429
700 기타 쓸 용도가 없지만 마비노기 게임 만들 때 좋죠[장작스크립트] 5 백호 2009.02.22 2428
699 기타 [신기술 체험] 페스트 채팅 17 file 백호 2009.02.22 2424
698 파티 파티교환 시스템...이걸로 순서 교체도 가능할 듯... 9 file 백호 2009.02.21 2424
697 기타 레벨을 표시해주는 스크립트 5 백호 2009.02.22 2419
696 HUD HUD Menu 1.2 by Raziel 6 file 백호 2009.02.22 2415
695 HUD 맵이름표시 6 캉쿤 2011.09.14 2412
694 화면에 축소된 맵을 표시하는 스크립트 7 file 백호 2009.02.21 2408
693 기타 거울에 캐릭 반사 20 ok하승헌 2010.02.18 2406
692 메뉴 L's Custom Menu #3: 1인용 메뉴 Revision 1 3 Alkaid 2010.09.12 2403
691 전투 전투후 경험치 분배와 레벨업시 HP/SP 전회복 15 백호 2009.02.21 2390
690 이동 및 탈것 이거만드느라 똥줄탓다!(는뻥) 초간단스크립트 10 *PS인간 2009.02.10 2384
689 메뉴 자세항 개인 상태화면 8 아방스 2009.01.12 2382
688 메뉴 메뉴 변경 스크립트 2 file 백호 2009.02.21 2381
687 이동 및 탈것 하이 대쉬 시스템 ver.1.0 15 백호 2009.02.22 2377
686 전투 Active Time Battle 2.57 by パラ犬 6 file 백호 2009.02.22 2376
685 장비 에러 안나는 장비창 전능력 표시 스크립트... 3 백호 2009.02.21 2369
684 메뉴 Breath Of Fire 스타일의 메뉴 3 file 백호 2009.02.21 2365
683 HUD 적의 남은 HP만큼 적의 이름 색깔 변하는 스크립트 6 file 백호 2009.02.21 2364
682 메뉴 자작 커스텀 메뉴(데모 첨부) 3 백호 2009.02.22 2363
Board Pagination Prev 1 ... 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 ... 52 Next
/ 52