질문과 답변

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 12449
RMVXA RPG 만들기 VX Aec 게임을 테스트 플레이하면 글자가 깨집니다. 2 file 슬픈밤의늑대 2013.09.01 1230
RMVX 미니현피님의 게임들 중에서 3 보노노 2012.08.25 1230
기타 이건 또 무슨 빛 이펙트 오류.. 2 은색바람 2011.09.09 1230
RMXP 게임 데이터 작성(암호화 프로젝트)를 했는데 문제가 발생했습니다. 현문 2010.10.29 1230
RMVX RPG-VX캐릭터 제작 어떻게 하죠? 2 넥신 2012.12.24 1229
RMVXA esc 키를 눌렀을때 메뉴 말고 다른게 뜨게 하는 방법? 5 file sudoxe 2014.01.13 1228
RMVXA vx ace 버젼에서 ㅁ가 없어요! 2 유리가발 2012.11.29 1228
RM2k 이 칩셋에 말머리의 행방을 아시는분 계십니까? 2 file 중꿔사랑 2014.01.18 1227
RMVX 시작시, 다른맵으로 이동시 이벤트 제작방법을 문의드립니다. 6 안보여어 2013.10.01 1227
RMXP [장소이동]:변수 <-- 이용시 조건달기? 6 file 칸타모 2012.08.01 1227
RMVX 맵상에 하나더 찍혀요 1 file 명품항룡 2011.08.16 1227
RMVX Vlad의 Vampyr SBABS에서 몬스터에게 공격모션주는 방법 질문합니다. 2 신휴이 2011.07.21 1227
RMVX VX로 이런 류의 게임들도 개발 가능한가요? 4 카리아인 2011.03.09 1226
RMVX 오류 4 스노우 2010.09.20 1226
RMVXA 대화창에 반신이 검은색바탕까지 같이 나와요. 5 file 벼루공장 2014.08.08 1225
사이트 이용 픽시브에서 맵타일 받는법 3 팅커 2014.02.20 1225
RMVX Row Changer(Version : 1.2) 사용법 문의입니다;;; 4 니노미야 2011.08.14 1225
RMXP 영어 인디 rpg 'Gingiva'게임 속 텍스트가 출력되지 않습니다. 5 luke26 2014.03.19 1224
RMVX 이벤트로 장소 이동 후 자동실행이 안돼요.. 4 file 하네 2013.10.02 1224
RMVX 애드온 설정 ,,, 2 starsoad 2011.07.08 1224
Board Pagination Prev 1 ... 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 ... 516 Next
/ 516