RPGVX スクリプト
2009.04.30 23:48

액터선택지이벤트제작 간편화 스크립트

閲覧数 2740 推奨数 3 コメント 1
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷

자작 스크립트입니다.


 


 


사용법은 아래에 있습니다.


 


http://www.acoc.co.kr/bbs/zboard.php?head_data=head.php&footer_data=footer.php&root_data=../../ncoc2/&cafeno=&id=free&page=1&sn1=&divpage=11&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=56606


 


 


이하 내용을 복사하여 스크립트 에디터의 소재 섹션 아무 곳에나 넣어 주십시오.


충돌의 우려는 거의 없습니다.


 


 


 


 


▽아래부터 복사


#==============================================================================
# ■ Scene_ActorChoice
#------------------------------------------------------------------------------
# 액터의 선택 후 선택한 액터의 ID, 선택시 인덱스를 각각 변수에 대입합니다.
#
# [사용방법]
# 이벤트커맨드 스크립트에서 $scene = Scene_ActorChoice 를 입력.
# 사용시의 윈도우는 Window_MenuStatus 를 이용했습니다.
# 변수에 액터 ID나 선택시 인덱스를 대입한 후에는 조건분기로 사용해 주십시오.
# 주의할 것은 선택시 인덱스는 실제 선택한 것이 몇 번째이든 -1을 해야 한다는 점입니다.
# 예) 선택화면에서 세 번째 캐릭터를 선택했을 때 인덱스 : 2
#
# [커스터마이즈]
# 66, 68행
# $game_variables[n]의 n 부분에 대입할 변수 ID를 기입해 주십시오.
#
# ※ 본 스크립트의 기본 베이스는 Scene_Menu를 사용했습니다.
#
#==============================================================================


class Scene_ActorChoice < Scene_Base
  #--------------------------------------------------------------------------
  # ● 오브젝트 초기화
  #     menu_index : 커멘드의 커서 초기 위치
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @status_window_index = menu_index
  end
  #--------------------------------------------------------------------------
  # ● 개시 처리
  #--------------------------------------------------------------------------
  def start
    super
    create_menu_background
    @status_windows = Window_MenuStatus.new(0, 0)
    @status_windows.active = true
    @status_windows.index = @status_window_index
  end
  #--------------------------------------------------------------------------
  # ● 종료 처리
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_menu_background
    @status_windows.dispose
  end
  #--------------------------------------------------------------------------
  # ● 업데이트
  #-------------------------------------------------------------------------- 
  def update
    super
    update_menu_background
    @status_windows.update
    update_actor_selection_achoice
  end
  #--------------------------------------------------------------------------
  # ● 액터 선택의 갱신
  #--------------------------------------------------------------------------
  def update_actor_selection_achoice
    if Input.trigger?(Input::B)
      Sound.play_cancel
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      $game_party.last_actor_index = @status_windows.index
      # n번 변수에 선택한 캐릭터의 선택시 인덱스(-1)를 대입한다. (초기값 48, 수정가능)
      $game_variables[48] = @status_windows.index
      # n번 변수에 선택한 캐릭터의 액터ID를 대입한다. (초기값 49, 수정가능)
      $game_variables[49] = $game_party.members[@status_windows.index].id
      Sound.play_decision
      $scene = Scene_Map.new
    end
  end
end


 


########################################################
# 제작 : dest21c (창조도시 Evangelista)                #
########################################################

?
  • ?
    차진스 2009.04.30 23:48
    사용하는데 에러가 납니다.

    왜 그런거죠? 너무 쓰고 싶은 스크립트인데...


  1. 3D 그래픽 파티클 스크립트

    Date2013.09.29 CategoryRPGVX スクリプト By청담 Views1495 Votes0
    Read More
  2. 1인용메뉴

    Date2010.07.18 CategoryRPGVX スクリプト ByA.M.S Views2769 Votes0
    Read More
  3. vx 전용 오토세이브<자동저장>

    Date2011.08.31 CategoryRPGVX スクリプト By고진수 Views3003 Votes0
    Read More
  4. Window_Message_Plus v3.2

    Date2009.11.29 CategoryRPGVX スクリプト By에존 Views2836 Votes1
    Read More
  5. 에너미 아이템 변화 스크립트

    Date2009.05.29 CategoryRPGVX スクリプト ByEvangelista Views3025 Votes1
    Read More
  6. 이벤트커맨드 스크립트 관련 설명

    Date2009.01.29 CategoryRPGVX スクリプト ByEvangelista Views2826 Votes3
    Read More
  7. 이벤트커맨드 스크립트 조건분기법 모음

    Date2009.11.18 CategoryRPGVX スクリプト ByEvangelista Views2685 Votes2
    Read More
  8. 이벤트커맨드 스크립트 사용법 모음

    Date2009.07.21 CategoryRPGVX スクリプト ByEvangelista Views2884 Votes2
    Read More
  9. 액터선택지이벤트제작 간편화 스크립트

    Date2009.04.30 CategoryRPGVX スクリプト ByEvangelista Views2740 Votes3
    Read More
  10. 현재 파티내 캐릭터를 선택지로 처리할 때 간편히 하자.

    Date2009.01.01 CategoryRPGVX スクリプト ByEvangelista Views2461 Votes1
    Read More
  11. [VX] 메시지 표시를 한번에 표시로 전환하기

    Date2008.11.28 CategoryRPGVX スクリプト ByEvangelista Views2571 Votes1
    Read More
  12. [VX] 조건분기로 키입력의 처리 실행

    Date2008.11.28 CategoryRPGVX スクリプト ByEvangelista Views2310 Votes1
    Read More
  13. [VX] 파티 선두 캐릭터 액터ID를 변수에 넣기

    Date2008.11.28 CategoryRPGVX スクリプト ByEvangelista Views2172 Votes1
    Read More
  14. vx 한글이름입력

    Date2010.05.21 CategoryRPGVX スクリプト By가가상 Views2944 Votes1
    Read More
  15. vx 전용 오토세이브<자동저장>

    Date2011.08.31 CategoryRPGVX スクリプト By고진수 Views2976 Votes0
    Read More
  16. Window_Message_Plus v3.2

    Date2009.11.29 CategoryRPGVX スクリプト By에존 Views2685 Votes1
    Read More
  17. 에너미 아이템 변화 스크립트

    Date2009.05.29 CategoryRPGVX スクリプト ByEvangelista Views2642 Votes1
    Read More
  18. 이벤트커맨드 스크립트 관련 설명

    Date2009.01.29 CategoryRPGVX スクリプト ByEvangelista Views2331 Votes3
    Read More
  19. 이벤트커맨드 스크립트 조건분기법 모음

    Date2009.11.18 CategoryRPGVX スクリプト ByEvangelista Views2789 Votes2
    Read More
  20. 이벤트커맨드 스크립트 사용법 모음

    Date2009.07.21 CategoryRPGVX スクリプト ByEvangelista Views2722 Votes2
    Read More
Board Pagination Prev 1 2 Next
/ 2