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
357 기타 말풍선 그림 바꾸기 6 file 허걱 2009.08.15 3565
356 기타 데이터베이스 자체 제한 해체 스크립트 [Database Limit Breaker] 13 file 할렘 2009.02.07 3562
355 전투 XAS Hero Edition VX Manual 번역 1 케이언 2012.01.02 3554
354 기타 KGC패시브 스크립트 30 카르와푸딩의아틀리에 2009.10.07 3551
353 메뉴 지난 메뉴 스크립트에 이은 스테이터스 스크립트! 5 file 독사 2008.06.29 3545
352 기타 경험치, HP, MP 백분율계산 (실시간) 8 file 허걱 2009.08.01 3540
351 이동 및 탈것 A* 알고리즘을 이용한 길찾기 스크립트 3 file 허걱 2009.04.20 3528
350 기타 Staff Roll 13 file 허걱 2009.01.31 3523
349 새로운 종류의 세이브 스크립트!! 8 Man... 2008.10.28 3517
348 메시지 MessageSound v2.0 글자에 소리 다다닥 스크립트 21 할렘 2009.02.02 3510
347 상점 상점에서 아이템 분류 5 file 파이어 2011.01.23 3510
346 메뉴 Final Fantasy VII Menu System 8 비극ㆍ 2010.04.19 3506
345 온라인 VX Phoenix 온라인 스크립트 1.3버전 12 아방스 2009.06.18 3486
344 파티 전투중 파티 변경 스크립트 21 아방스 2008.03.09 3477
343 기타 범용 게이지 묘화 - KGC 14 file 카르와푸딩의아틀리에 2009.08.19 3476
342 직업 [직업 변경] TBK_JobChanger_Demo_v1.2 10 아방스 2009.02.05 3468
341 폰 시스템 29 RPGbooster 2008.10.11 3454
340 아이템 돈 아이템 장비를저장 11 file RPGbooster 2008.10.11 3452
339 퀘스트 Omegas7's Quest System 3.0 퀘스트 스크립트 5 리프네버 2010.01.09 3452
338 그래픽 토마스 에디슨(파티클 엔진 비슷) 9 file 비극ㆍ 2010.04.19 3432
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ... 32 Next
/ 32