질문과 답변

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 21144
RMVXA 그래픽 소스 출처 알고 싶습니다. 1 ahrp 2013.02.26 658
RMVXA NPC가 특정 이벤트를 향해서 움직이는 방법?? 2 수수미 2013.02.25 745
RMVXA 상태이상에 따라 배틀 커맨드가 변화하도록 하는 방법은 없을까요? 3 레미티 2013.02.25 994
RMVXA 아이템 판매 가격 설정 3 시옷청룡 2013.02.23 728
RMVXA 아이템을 장착해야 이벤트가 발생하는건? 2 카온 2013.02.23 699
RMVXA 스크립트 적용하는법을 알려주세요 17 file 비켜비켜 2013.02.22 945
RMVXA 타이머 위치 바꾸는법 6 펭블♡ 2013.02.21 930
RMVXA 커스텀 인터페이스 스킨? 1 ahrp 2013.02.21 777
RMVXA ACE대화창 질문좀요 2 ChamSae 2013.02.21 722
RMVXA Cache스크립트 질문 3 공부중인!연구원 2013.02.20 601
RMVXA 스크립트 공부중 메뉴편집에관한 질문 1 공부중인!연구원 2013.02.20 594
RMVXA Khas Awesome Light Effect 스크립트 관련 질문 3 ghtlr95349 2013.02.19 641
RMVXA 이벤트 페이지 반복 14 file 안내문 2013.02.18 721
RMVXA 적 체력을 표시하고 싶습니다. 10 file ghtlr95349 2013.02.18 1659
RMVXA 액터그래픽 커스텀 모드 3 FNS키리토 2013.02.16 699
RMVXA 제가 만든 게임을 다름사람이 할때... 4 푸른사신 2013.02.16 6207
RMVXA 지역마다 전투원경을 다르게 하고 싶은데... 1 봅쓸레이드 2013.02.16 594
RMVXA 문장 명령어 C[] 사용법 및 출력 속도 조정 2 ahrp 2013.02.16 1099
RMVXA 캐릭터의 플래시 어떻게 구현하나요? 2 이엘 2013.02.12 557
RMVXA Victor 스크립트의 Animated battle 관련 오류 3 file 미양 2013.02.12 603
Board Pagination Prev 1 ... 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 ... 150 Next
/ 150