질문과 답변

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 12448
RMVXA 공격할때 배틀러 숨기는법 4 기폭 2016.09.09 156
RMVXA 스크립트 에디터에서 게임오버시... 3 BeNew 2016.09.08 145
RMVXA 게임 화면 크기설정 9 cchandelier 2016.09.05 1362
RMVXA 스위치가 먹통이에요 1 Leonis 2016.09.05 120
RMVXA 게임오버표시창에 관하여 2 클라크 2016.09.03 134
RMVXA 대열보행[분산/모임]에 관하여 질문을 좀 드리겠습니다. 4 로브남 2016.09.01 154
RMVXA 이 스크립트좀 바꿔주세요! file 버섯수프 2016.08.29 161
RMVXA 전투시 배경 문제 6 file 락취한스님 2016.08.27 182
RMVXA 몬스터 아이템 드랍확률 4 철이 2016.08.21 800
RMVXA 스크립트 관련 몇가지 질문드립니다. 4 file Xmania 2016.08.21 155
RMVXA 한글이안되요.. 2 락취한스님 2016.08.20 109
RMVXA 메시지 창 중앙 하단에 있는 화살표를 옮길 방법이 없을까요? file GOETSU 2016.08.20 104
RMVXA 이 스크립트좀 바꿔주세요..! file 버섯수프 2016.08.17 119
RMVXA 저장 시 캐릭터가아닌 페이스 가 나오게 할 수 있나요? 1 file 파랑빛 2016.08.16 168
RMVXA [스크립트] draw_text를 한문장처럼 묶어서 표시되게 하고 싶습니다.... 몽롱하다 2016.08.13 100
RMVXA 파일암호화 관련 질문드립니다. 4 l미누리l 2016.08.12 1638
RMVXA 외국 알만툴 마더구스 2016.08.12 132
RMVXA 안녕하세요~ rpg2k처럼 다른이벤트와 안겹칩 하려면 어떻게 해야하나요~? 4 file DJN 2016.08.11 115
RMVXA 위사진처럼 캐릭터가 쓰러지는걸 설정하고싶은데 혹시 어떻게 하시는지 아는분 계세요? 3 file BJ멜로 2016.08.11 264
RMVXA 케릭터칩으로 맵을 제작하시는분 계신가요? 3 xxxxxx 2016.08.11 190
Board Pagination Prev 1 ... 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 149 Next
/ 149