RPGVX 스크립트
2009.04.30 23:48

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

조회 수 2078 추천 수 3 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

자작 스크립트입니다.


 


 


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


 


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. [VX] 조건분기로 키입력의 처리 실행

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views2131 Votes1
    Read More
  2. 직업명 표시

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views2103 Votes0
    Read More
  3. 이벤트 이름 표시하기

    Date2016.04.05 CategoryRPGMV 플러그인 By러닝은빛 Views2098 Votes1
    Read More
  4. Keyboard Event - RPG Maker MV

    Date2017.01.03 CategoryRPGMV 플러그인 By러닝은빛 Views2084 Votes0
    Read More
  5. 대화창에 얼굴 띄우기& 대화창 명령어 모음.

    Date2008.12.31 CategoryRPGXP 스크립트 By창조도시 Views2083 Votes1
    Read More
  6. 맵 이름을 화면 상단에 띄우기.

    Date2008.10.12 CategoryRPGXP 스크립트 By창조도시 Views2083 Votes1
    Read More
  7. 액터선택지이벤트제작 간편화 스크립트

    Date2009.04.30 CategoryRPGVX 스크립트 ByEvangelista Views2078 Votes3
    Read More
  8. 픽쳐 터치 플러그인

    Date2016.04.17 CategoryRPGMV 플러그인 By양갱님 Views2058 Votes0
    Read More
  9. 모션 스크립트

    Date2013.12.06 CategoryRPGXP 스크립트 By 운 Views2057 Votes0
    Read More
  10. 상점에서 상세정보보여주기

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views2057 Votes0
    Read More
  11. 부드러운화면이동

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views2046 Votes0
    Read More
  12. 대각선 방향 이동추가로 8방향 이동 만들기.

    Date2008.08.14 CategoryRPGXP 스크립트 By창조도시 Views2043 Votes1
    Read More
  13. 윈도우 시스템 트레이로 최소화

    Date2016.01.21 CategoryRPGMV 플러그인 By러닝은빛 Views2031 Votes0
    Read More
  14. 파이널 판타지 7 스타일 메뉴

    Date2013.10.01 CategoryRPGXP 스크립트 By Views2027 Votes0
    Read More
  15. Kaus Ultimate Overlay v1.03 (강력레이아웃추가! 빛/포그/파노라마/맵)

    Date2015.11.08 CategoryRPGMV 플러그인 By파란별빛 Views2027 Votes0
    Read More
  16. [VX] 파티 선두 캐릭터 액터ID를 변수에 넣기

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views2014 Votes1
    Read More
  17. 타이틀 메뉴 위치 바꾸기 vx 및 vx ace

    Date2015.09.21 CategoryRPGVX Ace 스크립트 By여줄가리 Views2009 Votes0
    Read More
  18. 모바일 패드 플러그인입니다! MBS - Mobile DirPad & Action Button

    Date2015.11.07 CategoryRPGMV 플러그인 Bywillmv Views2007 Votes3
    Read More
  19. [ MV ] 심장[체력표시 하트] 플러그인

    Date2018.07.01 CategoryRPGMV 플러그인 By수성의물 Views1994 Votes0
    Read More
  20. [VX] 메시지 표시를 한번에 표시로 전환하기

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views1975 Votes1
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15






[개인정보취급방침] | [이용약관] | [제휴문의] | [후원창구] | [인디사이드연혁]

Copyright © 1999 - 2016 INdiSide.com/(주)씨엘쓰리디 All Rights Reserved.
인디사이드 운영자 : 천무(이지선) | kernys(김원배) | 사신지(김병국)