질문과 답변

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 21155
RMVXA VX ace는 사이드뷰배틀이없나요? 2 WOL 2012.11.10 1245
RMVX 메뉴창에 아이템,저장,게임종료만 남기고싶어요. 3 카온 2012.08.03 1245
RMVX RPG-VX캐릭터 제작 어떻게 하죠? 2 넥신 2012.12.24 1245
RMXP 이거 폰트인건가요?? 무슨 폰트인건가요? rpg게임들은 거의 이런 폰트던데... 6 file 호오라그렇군여 2014.05.07 1244
RMXP 책장을 건드리면 문을 막고있는 이벤트가 옆으로 비키는 것 11 괴생명체 2013.05.03 1243
RMXP 캐릭터가 절뚝(...)거려요 6 file 이룩 2013.10.19 1243
RMVX RPGVX 창고 스크립트랑 아이템에 색상넣는 스크립트.. 스트링호 2011.01.07 1243
RMXP 강(물속)으로 들어갔을때 이미지랑 속도 바꾸는법좀 알려주세요 ㅠㅠ; 1 도롭 2013.09.08 1242
기타 이건 또 무슨 빛 이펙트 오류.. 2 은색바람 2011.09.09 1242
RMVX 캐릭터의 따라감 2 SBㅡ백색 2011.07.07 1242
RMXP RPGXP, F1을 누르면 이상한 언어가 나옵니다 4 file 에이미 2013.04.04 1241
RMVX 인터페이스(메뉴 스킨) 설명 7 file 뻘짓킹파야 2013.11.09 1241
RMVX vampyr SBABS-Requiem ABS 9 질문드립니다 6 9219jin 2011.09.24 1241
RMVX 맵상에 하나더 찍혀요 1 file 명품항룡 2011.08.16 1241
RMXP 넷플레이1.7 질문 1 *나루토* 2011.06.01 1241
RMXP 연타 이벤트는 어떻게 만드는건가요? 2 키르비 2011.03.22 1241
RMXP 영어 인디 rpg 'Gingiva'게임 속 텍스트가 출력되지 않습니다. 5 luke26 2014.03.19 1240
RMXP 페이스 메이커... 2 file 아아방스임 2012.10.23 1240
RMVXA RPG VX Ace버젼은 온라인이 없나요? 1 Rain35 2013.12.12 1240
RM2k 번역 방법좀.. 3 GangSters 2011.08.20 1240
Board Pagination Prev 1 ... 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 ... 518 Next
/ 518