질문과 답변

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 21156
기타 Wolf RPG 게임 한글화 4 ★찜찜 2013.01.07 6604
RMVX 메뉴 관련 질문 4 anito 2013.01.07 708
RMVX 필드위의 몬스터가 플레이어를 쫓아가게 하는 방법? 2 길라잡이 2013.01.07 1652
RMVX 수납장을 회전시키고 싶어요.. 6 라이온킹 2013.01.07 735
RMVXA 아이템 사용시 그림 나오게하는거 관련.. 왜 버튼이 말을 안 듣죠? 3 file 알만툴 2013.01.07 1026
RMVX 캐릭터가 자동으로 움직이게 하고 싶어요 2 라이온킹 2013.01.07 803
RMVX 튜토리얼을 만드는 법을 알려 주세요.. 6 라이온킹 2013.01.07 868
RMVXA 아이템을 사용하면 화면에 사진이 나오도록 하는 법 없나요 3 알만툴 2013.01.07 3783
RMVXA 선택지 표시 위치 변경 5 file lallal 2013.01.06 2245
RM2k3 시야제한에 대해 질문 (2) 3 엑스트라 2013.01.06 2465
RMVX 처음 화면에 캐릭터가 다른 것이 뜨게 할 수는 없나요? 2 라이온킹 2013.01.06 615
RMVXA vxace에서 탈것에관한것들좀 알려주세요 4 game 光 ㅋㅋ 2013.01.06 815
RMVXA 어느 장소에 플레이어가 들어가면 그 장소의 이름이 뜨게하는법 2 file 알만툴 2013.01.06 792
RM2k3 시야제한에 대해 질문 2 엑스트라 2013.01.06 963
RMVX 기본 스크립트 자체를 약간 수정하는거... 괜찮을까요? 4 file 파치리스 2013.01.05 966
RMVX 캐릭터 주위빼고 어둡게하는 방법 5 wLauncher 2013.01.04 936
기타 상업적 이용이 가능한지에 대한 질문 6 엑스트라 2013.01.04 953
RMXP 움직이는 이벤트를 클릭하면 아이템을 얻게 하는 법.. 1 분리수거 2013.01.04 942
RM2k3 파일 시스템 C를 열수 없음? 3 엑스트라 2013.01.02 906
RMVXA 메뉴 장비창에 속성 유효도(속성 저항), 상태저항 표시 가능여부 2 lallal 2013.01.02 1189
Board Pagination Prev 1 ... 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 ... 518 Next
/ 518