질문과 답변

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 12451
RMMV 스텟 항목 중 어질리티에 대해서 3 겜제작광 2016.08.13 179
RMMV 제작 화면 오류 1 file Pawn 2016.08.14 103
RMMV RPG 만들기 MV 흰화면.. 1 김정훈입니다 2016.08.15 510
RMVXA 저장 시 캐릭터가아닌 페이스 가 나오게 할 수 있나요? 1 file 파랑빛 2016.08.16 168
RMVXA 이 스크립트좀 바꿔주세요..! file 버섯수프 2016.08.17 119
기타 게임 안에서 캐릭터의 목소리나 음향 효과가 들리지 않아요 2 백아 2016.08.17 135
RMMV 크롬에서의 RPGMV에서 이럴때 프레임하락이 심하더군요 랑비 2016.08.18 208
툴선택 rpg maker 싼 버전들 1 이겸 2016.08.18 190
RMMV 인벤토리를 보여주고 그 안에서 아이템을 선택하고 이벤트를 발생시키는 방법 2 겜제작광 2016.08.18 347
기타 울프툴 고수님들께 질문있습니다. 1 무슨상관이라도 2016.08.18 980
RMMV 플레이어의 좌표에 따라 이벤트가 바뀌는 것 10 file 카코로 2016.08.19 180
RMVXA 메시지 창 중앙 하단에 있는 화살표를 옮길 방법이 없을까요? file GOETSU 2016.08.20 104
RMVXA 한글이안되요.. 2 락취한스님 2016.08.20 109
RMVX 한걸음 움직이면 이벤트 발생하는 법좀요! 6 hero_히어로 2016.08.20 116
RMVXA 스크립트 관련 몇가지 질문드립니다. 4 file Xmania 2016.08.21 155
RMVXA 몬스터 아이템 드랍확률 4 철이 2016.08.21 800
RMMV tp가 전투끝나도 누적됬으면 좋겠어요 3 택형 2016.08.21 156
RM2k3 캐릭터 초기 파티 위치 설정 이겸 2016.08.21 202
RMVX 그림의 표시 이겸 2016.08.22 138
RMXP 게임 플레이 창의 크기를 늘리고 싶습니다만, 어떻게 하는거죠...? 2 file 비두 2016.08.23 264
Board Pagination Prev 1 ... 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 ... 516 Next
/ 516