질문과 답변

Extra Form
=begin
Improved Item Processing
by Fomar0153
Version 1.0
----------------------
Notes
----------------------
Allows you to define which items appear in the item
processing window.
----------------------
Instructions
----------------------
Set VARIABLE_CAT to the id of the variable you wish 
to use to define what appears.
By defualt:
VARIABLE -> What appear
0 -> Normal Items
1 -> Weapons
2 -> Armours
3 -> Key Items
4 -> All Items
5+ will open up a custom selection window.
You define the items to be included in it by note tagging.
<itemp x>
Where x is the value of the variable you want to use.
----------------------
Known bugs
----------------------
None
=end
class Window_KeyItem < Window_ItemList
  #--------------------------------------------------------------------------
  # ● Change the number to the id of the variable you wish to use
  #--------------------------------------------------------------------------
  VARIABLE_CAT = 2
  #--------------------------------------------------------------------------
  # ● Replaces the inherited method.
  #--------------------------------------------------------------------------
  def include?(item)
    case $game_variables[VARIABLE_CAT]
    when 0 # Normal Items
      item.is_a?(RPG::Item) && !item.key_item?
    when 1 # Weapons
      item.is_a?(RPG::Weapon)
    when 2 # Armours
      item.is_a?(RPG::Armor)
    when 3 # Key Items
      item.is_a?(RPG::Item) && item.key_item?
    when 4 # All Items
      item.is_a?(RPG::Item)
    else
      item.is_a?(RPG::Item) && item.note.include?("<itemp " + $game_variables[VARIABLE_CAT].to_s + ">")
    end
  end
  #--------------------------------------------------------------------------
  # ● Otherwise weapons and armours are not clickable - hopefully this won't
  #   have any unforseen consequences.
  #--------------------------------------------------------------------------
  def enable?(item)
    return true
  end
end




일단 텍스트파일로도 첨부했습니다

이 스크립트는 199번 변수의값이 뭐냐에따라서 아이템의선택처리시 장비아이템,중요템,일반템,아머 등등을 보여주게할수있습니다. 제시도가능하구요

아무튼.. 제가 뭘 부탁드리고싶냐면요

이 스크립트에다가 카테고리를 넣고싶습니다

즉. 장비아이템,중요아이템 . 이렇게 분류탭을 넣고싶습니다.

그림으로도 첨부하겠습니다! 

제목 없음.png

저런식으로요! 




List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12393
RMVXA 퀘스트 스크립트 사용질문이요.. 7 참깨빵위에순쇠고기패티두장특별한소스양상추치즈피클양파까지 2013.10.13 824
퀘스트 작성 RMVXA 퀘스트 메시지 만들기 2 rsy1189a 2024.03.10 39
RMVXA 퀘스트 로그 스크립트 사용법이 이게 맞나요? 3 치느 2015.09.24 290
RMVXA 콤보 히트시 감탄사 표현 file winspec 2012.11.17 6664
RMVXA 케릭터칩으로 맵을 제작하시는분 계신가요? 3 xxxxxx 2016.08.11 190
RMVXA 케릭터변신에대해서 3 file fkdlrj 2014.02.08 779
RMVXA 케릭터 레이더로 파일 불러올 때 4 유리가발 2012.12.02 1493
RMVXA 케릭이 안나와여ㅠㅠ 2 사용자 2012.11.17 1036
RMVXA 컷씬 만들기 4 BENi 2016.10.23 464
RMVXA 컴퓨터 포멧이후 갑자기 ㅁㅁㅁ 라고 나옵니다 3 file 클로아 2017.12.20 182
RMVXA 컴퓨터 두대 작업 2 혲이 2014.01.01 831
RMVXA 커스텀 인터페이스 스킨? 1 ahrp 2013.02.21 773
RMVXA 커스텀 UI를 적용시키고 싶습니다. 1 파송송뇌진탕 2013.09.24 1045
RMVXA 커먼이벤트의 병렬실행에 관한 질문입니다. 2 file 홍안 2012.10.26 861
RMVXA 커먼이벤트를 통한 몹들 공격을 만드는데 도저히 작동이 안됩니다. 7 file repola 2014.04.03 718
스크립트 작성 RMVXA 커먼이벤트를 스크립트에서 실행하려면 어떻게 해야 하나요? 2 이경로 2020.05.23 166
RMVXA 커먼이벤트로 이벤트를 불러오고 내보내고 싶습니다. 10 file 너구리신랑 2014.01.25 675
RMVXA 커먼이벤트가 적용된 기술의 첫턴불발..? 14 반내림 2013.10.29 651
RMVXA 커먼이벤트 병렬처리를 몇 개정도 넣어놔야 렉이 발생하나요? 1 흰강아지 2015.01.09 226
RMVXA 커먼이벤트 반복문제. 3 file 크리펄 2013.05.20 1051
Board Pagination Prev 1 ... 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 ... 149 Next
/ 149