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 6203
601 전투 SBABS v4 (A-RPG) 5 file 백호 2009.02.22 2055
600 장비 KGC_장비확장 (7/30일자) 12 file 백호 2009.02.22 2055
599 메뉴 Trickster's Plug 'n' Play Gradient Bar 2.0 1 file 백호 2009.02.22 2051
598 전투 SBABS v3 6 file 백호 2009.02.22 2046
597 그래픽 Transition Pack 1.11 by Fantasist Alkaid 2011.01.22 2044
596 메뉴 넷플레이 업그레이드됀 메뉴 스크립트 4 백호 2009.02.22 2040
595 HUD HUD Menu 2.0 by Raziel 3 Alkaid 2010.09.07 2038
594 전투 [신기술 체험] Tactical Battle System 9 file 백호 2009.02.22 2034
593 기타 자동미로 12 file 백호 2009.02.22 2031
592 스킬 KGC_CrashSkill(자폭스킬) 4 file 백호 2009.02.22 2030
591 아이템 흠..몬스터도감말고 아이템도감~ 9 백호 2009.02.21 2028
590 상점 ▼▲▼ XRXS36. 숍·변동시장 ▼▲▼ (시세) 8 D.S.Y 2008.12.09 2025
589 메시지 Hermes(Hermes Extends RPGXP Message System) 0.3d by derula Alkaid 2010.09.10 2025
588 기타 요리 시스템 스크립트 12 file 백호 2009.02.21 2023
587 장비 착용한 장비에 따라 모습이 달라지는 스크립트 예제 5 file 게임애호가 2015.02.14 2018
586 이동 및 탈것 테두리 글자 & 그림자 글자 2 file 백호 2009.02.21 2015
585 기타 회복으로 데미지를 받는 좀비 스크립트 7 백호 2009.02.22 2010
584 스킬 MicKo's Skill Tree 1.2 by DerVVulfman 2 Alkaid 2011.03.15 2010
583 메뉴 메뉴....있길래올립니다. 9 벨☆ 2010.01.23 2001
582 이동 및 탈것 이동루트 설정 스크립트-특정범위 13 file 『★Browneyedgirls』 2010.02.18 2000
Board Pagination Prev 1 ... 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ... 52 Next
/ 52