VX 스크립트

아이템
2008.10.27 21:45

~[Hide Item]~

조회 수 1599 추천 수 0 댓글 0
Version 1.0 revision 1
Author puppeto4
Release Date 20/06/08

Script


#==============================================================================
# ** Hide Item Snippet
#------------------------------------------------------------------------------
# Author  : puppeto4 (puppeto5@hotmail.com)
# Version : 1.0 revision 1
# Date    : 20 / 06 / 2008
# Note    : Order Pizza Hut, support the rebellion.
# Check RPG RPG Revolution(http://www.rpgrevolution.com) for support
#------------------------------------------------------------------------------
# Function :  
#   This snippet will hide choosen item from showing in item window.
#==============================================================================
# ** Puppeto
#------------------------------------------------------------------------------
#  This module handles setup for any script writen by me ^^.
#==============================================================================
module Puppeto
  # Text that need to be put in the note field to hide the item.
  Hidden_Text     = "*HIDDEN"
#==============================================================================
# ** End of Puppeto module
#------------------------------------------------------------------------------
end  
#==============================================================================
# ** Window_Item
#------------------------------------------------------------------------------
#  This window displays a list of inventory items for the item screen, etc.
#==============================================================================
class Window_Item < Window_Selectable
  #--------------------------------------------------------------------------
  # * Whether or not to include in item list
  #     item : item
  #--------------------------------------------------------------------------
  def show?(item)
    return false if item.note.include?(Puppeto::Hidden_Text)
    return true
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    @data = []
    for item in $game_party.items
      next unless include?(item) and show?(item)
      @data.push(item)
      if item.is_a?(RPG::Item) and item.id == $game_party.last_item_id
        self.index = @data.size - 1
      end
    end
    @data.push(nil) if include?(nil)
    @item_max = @data.size
    create_contents
    for i in 0...@item_max
      draw_item(i)
    end
  end  
end
#==============================================================================
# ** Window_EquipItem
#------------------------------------------------------------------------------
#  This window displays choices when opting to change equipment on the
# equipment screen.
#==============================================================================
class Window_EquipItem < Window_Item
  #--------------------------------------------------------------------------
  # * Whether to include item in list
  #     item : item
  #--------------------------------------------------------------------------
  def show?(item)
    return false if item.note.include?(Puppeto::Hidden_Text)  
    return @actor.equippable?(item)
  end
end
#==============================================================================
# ** Window_ShopSell
#------------------------------------------------------------------------------
#  This window displays items in possession for selling on the shop screen.
#==============================================================================
class Window_ShopSell < Window_Item
  #--------------------------------------------------------------------------
  # * Whether or not to include in item list
  #     item : item
  #--------------------------------------------------------------------------
  def show?(item)
    return false if item.note.include?(Puppeto::Hidden_Text)
    return true    
  end
end

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5452
177 MAX Level Limitation System 3 Man... 2008.10.28 1198
176 Menu Background Effects(온라인 스크립트 올릴려고 했다가 못 올렸음)아깝다.. Man... 2008.10.28 1665
175 레오 저장 스크립트 9 Man... 2008.10.28 2529
174 Skill Delay VX 4 Man... 2008.10.28 1503
» 아이템 ~[Hide Item]~ Man... 2008.10.27 1599
172 (?스크립트) 스크립트 읽어서 그래픽 넣으세요.(영어 잘하는 사람만 권장...) 2 Man... 2008.10.27 1444
171 Sprite Mover 2 Man... 2008.10.27 1529
170 변수/스위치 MapSwitch VX Version: 1.1 1 Man... 2008.10.27 1327
169 컴퓨스트 플레이어 워크(?) 2 Man... 2008.10.27 1304
168 Jens009's Critical Flash 1.0 3 Man... 2008.10.27 1240
167 LevelMe v1.2 3 Man... 2008.10.27 1154
166 Scene_Credit script Plug & Play 1 Man... 2008.10.27 1086
165 다운로드 링크로 가세요.(스크린 샷 올려놨음) 5 Man... 2008.10.27 1618
164 Screen Shortcut Script Man... 2008.10.27 1142
163 AutoLight v3.7(?) 6 Man... 2008.10.27 1647
162 ??(다 영어)여기서 부터 드레그만 빼고 Man... 2008.10.27 1079
161 ??? 2 Man... 2008.10.27 1334
160 ??? 1 Man... 2008.10.27 1021
159 ??무슨 스크립트?? 3 Man... 2008.10.27 1323
158 영어 잘하는 사람만 보세요..저도 모르겠음(무슨 스크립트인지) 3 Man... 2008.10.27 1373
Board Pagination Prev 1 ... 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Next
/ 32