XP 스크립트

http://www.phylomortis.com/resource/script/scr018.html
  class Scene_Menu를 저걸로 대체하라....고 되어 있습니다(단, 저기에는 걸음수 표시가 빠져 있음).  사실 Scene_Menu를 통째로 갈아엎을 필요 없이 관련 부분만 추가하면 됩니다.

class Scene_Menu
  #--------------------------------------------------------------------------
  # ● オブジェクト初期化
  #    menu_index : コマンドのカーソル初期位置
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
    @changer = 0 #Change Party Order by Yargovish
    @where = 0 #
    @checker = 0  #추가 끝
  end
  #--------------------------------------------------------------------------
  # ● メイン処理
  #--------------------------------------------------------------------------
  def main
    # コマンドウィンドウを作成
    s1 = $data_system.words.item
    s2 = $data_system.words.skill
    s3 = $data_system.words.equip
    s4 = "Status"
    s5 = "Save"
    s6 = "Exit"
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])
#위의 부분을 편집해서 순서변경항목을 추가합니다.
...
    if $game_party.actors.size == 1 #
      @command_window.disable_item(순서변경항목 인덱스번호) #인덱스 번호는 배열처럼 0에서 시작
    end
...
  #--------------------------------------------------------------------------
  # ● フレーム更新 (コマンドウィンドウがアクティブの場合)
  #--------------------------------------------------------------------------
  def update_command
...
# C ボタンが押された場合
    if Input.trigger?(Input::C)
      # パーティ人数が 0 人で、セーブ、ゲーム終了以外のコマンドの場合
      if $game_party.actors.size == 0 and @command_window.index < 4
        # ブザー SE を演奏
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      if $game_party.actors.size <= 1 and @command_window.index == (순서변경항목 인덱스번호) #인덱스 번호는 배열처럼 0에서 시작
        $game_system.se_play($data_system.buzzer_se)
        return
      end #추가끝
...
      case @command_window.index
...
      when (순서변경항목 인덱스번호) #인덱스 번호는 배열처럼 0에서 시작
        #Change Party Order by Yargovish
        $game_system.se_play($data_system.decision_se)
        @checker = 0
        @command_window.active = false
        @status_window.active = true
        @status_window.index = 0
...
  #--------------------------------------------------------------------------
  # ● フレーム更新 (ステータスウィンドウがアクティブの場合)
  #--------------------------------------------------------------------------
  def update_status
...
    # C ボタンが押された場合
    if Input.trigger?(Input::C)
      # コマンドウィンドウのカーソル位置で分岐
      case @command_window.index
...
      when (순서변경항목 인덱스번호) #인덱스 번호는 배열처럼 0에서 시작
        #Change Party Order by Yargovish
        $game_system.se_play($data_system.decision_se)
        if @checker == 0
          @changer = $game_party.actors[@status_window.index]
          @where = @status_window.index
          @checker = 1
        else
          $game_party.actors[@where] = $game_party.actors[@status_window.index]
          $game_party.actors[@status_window.index] = @changer
          @checker = 0
          @status_window.refresh
...

**이 스크립트로 파티멤버들의 순서를 바꾸면 메뉴상이나 전투상에서는 순서가 바뀐 것으로 나오지만 맵상에 표시되는 선두캐릭터에는 영향을 주지 않습니다(누가 선두캐릭터도 바뀌게 해 보실 분?).

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
» 파티 메뉴커맨드로 파티 멤버들 순서 바꾸기 by Yargovish 1 백호 2009.02.22 1622
420 기타 Dynamic Stores by Astro_mech@rmxp.net 1 file 백호 2009.02.22 878
419 스킬 약간 수정한 심플액알(크리티컬,스킬) 10 백호 2009.02.22 3836
418 메뉴 Event Spawner 1 file 백호 2009.02.22 980
417 메뉴 새로운 cms 4 file 백호 2009.02.22 2118
416 기타 KGC - RMXP 스크립트 개발용 프로젝트 1.01 4 file 백호 2009.02.22 1515
415 기타 Random Character Generator by SephirothSpawn (SDK호환) 1 백호 2009.02.22 1040
414 전투 마법검 스크립트 1 백호 2009.02.22 1425
413 기타 Terrain Encounter Areas by SephirothSpawn 백호 2009.02.22 778
412 타이틀/게임오버 타이틀 아주 미묘한 효과 5 백호 2009.02.22 1857
411 메시지 1문자식 표시랑 따랑소리 나는 스크립트 8 백호 2009.02.22 2305
410 기타 Multiple Currencies(여러 개의 통화단위 사용) 2 백호 2009.02.22 1124
409 기타 Text Scroll by Dubealex (Release 3) 2 file 백호 2009.02.22 939
408 기타 Near Fantastica's SDK Test Bed 3 file 백호 2009.02.22 885
407 기타 멋진...제작자 정보를 그림으로 1 백호 2009.02.22 1233
406 전투 배틀 포인트 1 백호 2009.02.22 918
405 전투 배틀샵 스크립트 1 백호 2009.02.22 1126
404 온라인 멀티넷스크립트 => 채팅보완 스크립트 8 file 백호 2009.02.22 2931
403 저장 멀티넷스크립트 -> 아이피 세이브,로드 스크립트 9 file 백호 2009.02.22 2204
402 HUD Advanced HUD Script 3 file 백호 2009.02.22 1341
Board Pagination Prev 1 ... 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 ... 52 Next
/ 52