질문과 답변

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 21139
RMVXA 퀘스트 알리미 창 계속 뜨게 하는 법 2 Leonis 2014.11.20 345
RMVXA 퀘스트 스크립트를 8 종목의 퀘스트로 개조하려고 합니다. 2 file 탐험가 2012.11.18 5316
RMVXA 퀘스트 스크립트 충돌문제 3 세븐체크 2012.07.31 1573
RMVXA 퀘스트 스크립트 충돌 (언어) 2 file 세븐체크 2012.08.07 1314
RMVXA 퀘스트 스크립트 사용질문이요.. 7 참깨빵위에순쇠고기패티두장특별한소스양상추치즈피클양파까지 2013.10.13 832
퀘스트 작성 RMVXA 퀘스트 메시지 만들기 2 rsy1189a 2024.03.10 127
RMVXA 퀘스트 로그 스크립트 사용법이 이게 맞나요? 3 치느 2015.09.24 299
RMVXA 콤보 히트시 감탄사 표현 file winspec 2012.11.17 6672
RMVXA 케릭터칩으로 맵을 제작하시는분 계신가요? 3 xxxxxx 2016.08.11 206
RMVXA 케릭터변신에대해서 3 file fkdlrj 2014.02.08 783
RMVXA 케릭터 레이더로 파일 불러올 때 4 유리가발 2012.12.02 1502
RMVXA 케릭이 안나와여ㅠㅠ 2 사용자 2012.11.17 1046
RMVXA 컷씬 만들기 4 BENi 2016.10.23 505
RMVXA 컴퓨터 포멧이후 갑자기 ㅁㅁㅁ 라고 나옵니다 3 file 클로아 2017.12.20 206
RMVXA 컴퓨터 두대 작업 2 혲이 2014.01.01 843
RMVXA 커스텀 인터페이스 스킨? 1 ahrp 2013.02.21 777
RMVXA 커스텀 UI를 적용시키고 싶습니다. 1 파송송뇌진탕 2013.09.24 1060
RMVXA 커먼이벤트의 병렬실행에 관한 질문입니다. 2 file 홍안 2012.10.26 872
RMVXA 커먼이벤트를 통한 몹들 공격을 만드는데 도저히 작동이 안됩니다. 7 file repola 2014.04.03 721
스크립트 작성 RMVXA 커먼이벤트를 스크립트에서 실행하려면 어떻게 해야 하나요? 2 이경로 2020.05.23 191
Board Pagination Prev 1 ... 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 ... 150 Next
/ 150