VX 스크립트

아이템
2008.10.27 21:45

~[Hide Item]~

조회 수 1597 추천 수 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 5398
16 아이템 현재있는 파티원 선택 레벨업 아이템 만들기 1 file 싸패 2016.06.06 713
15 아이템 편리한 디자인의 아이템메뉴 30 file RPGbooster 2008.10.11 5098
14 아이템 적과 만나지않는 아이템 12 file RPGbooster 2008.10.11 2718
13 아이템 아이템입수 화면 16 file RPGbooster 2008.10.08 4526
12 아이템 아이템의 공격횟수 추가 8 star211 2010.01.19 2413
11 아이템 아이템 획득 팝업 스크립트 24 아방스 2009.01.07 3805
10 아이템 아이템 프라이스 체인저?? Man... 2008.10.28 2385
9 아이템 아이템 분류 19 file RPGbooster 2008.10.11 3309
8 아이템 아이템 믹서 21 file 미양 2010.07.02 3983
7 아이템 아이템 무게, 아이템별 소지수 적용 16 file 허걱 2010.11.11 2981
6 아이템 레벨,능력치,아이템소지갯수,소지금의 한계돌파스크립트 21 file 이탁 2009.01.28 4547
5 아이템 드롭 아이템 확장 6 신규회원 2012.02.24 2977
4 아이템 돈 아이템 장비를저장 11 file RPGbooster 2008.10.11 3452
» 아이템 ~[Hide Item]~ Man... 2008.10.27 1597
2 아이템 KGC]아이템 합성 29 file 찌나 2008.03.08 5123
1 아이템 Item Price Changer 7 Man... 2008.10.28 1530
Board Pagination Prev 1 Next
/ 1