질문과 답변

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 12460
RMVX 한번한 퀘스트 3 rkdwjddn16 2013.01.01 908
RMVXA RPGVXACE에서 맵만들때요. 6 file by오브 2013.01.01 1926
RM2k3 전투 내부 속에서 질문입니다. 2 엑스트라 2013.01.01 820
RMVX ( 스크립트 ) Scene_Map 에서 오류가나요 ㅠㅠ 2 file 고자몬 2012.12.31 790
RMVXA 레벨업시 HP, MP 모두 회복되게 어떻게 하죠? 3 알만툴 2012.12.31 1098
RMXP em 2 na linda 'Syntaxerror'에 대해 아시는 분? 4 bluesu1004 2012.12.31 730
RMVXA 전리품 전달 퀘스트를 만드는데 문제가 있습니다 4 file 알만툴 2012.12.31 910
RMVX 스크립트를 끼워넣었는데 작동을 안합니다 18 file KeV 2012.12.31 761
RMXP 이건 대체 어디에 쓰이는 기능이죠? 1 file 데버 2012.12.31 715
RMVX 아이템사용시 그이벤트를 사라지게하는방법좀 알려주세요 1 강진별 2012.12.31 742
RMVXA 퀘스트 이벤트 자동실행에 관련된 질문이에요 2 noallja 2012.12.31 870
RMVX 테스트플레이 또는 게임 실행 시 특정 글자 인식 오류 3 NEXONON 2012.12.31 789
RMXP rpgxp의 시야+광원효과 질문합니다 1 file 클로시스 2012.12.30 2625
RMVXA 타이틀 화면에서 게임제목 안뜨게하는법좀요!! 2 file 카로 2012.12.30 1356
게임의 한글화 도중 스크립트 추가로 인한 부작용에 대해서 5 KeV 2012.12.30 818
RMXP 에피소드 클리어 시 퍼즐의 그림이 채워지게 하는 방법!부탁드려요! 2 꿈꾸는아이 2012.12.30 706
RMVXA 전투중 일본어... 어디서 바꾸나요? 4 file 알만툴 2012.12.30 799
RMVXA 일정확률로 몬스터가 등장하게 하는법 2 알만툴 2012.12.30 811
VXA 한글패치 후에 2인이상 파티로 전투 승리시 오류가 뜨네요;; 1 file 닥훈이 2012.12.30 1330
기타 노래 수정에 관해서 6 엑스트라 2012.12.30 829
Board Pagination Prev 1 ... 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 ... 517 Next
/ 517