Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> ~[Hide Item]~, Hide item from showing in inventory
YanXie
post Jun 20 2008, 09:19 AM
Post #1


Because Tomorrow Will Surely Come...
Group Icon

Group: Revolutionary
Posts: 1,137
Type: None
RM Skill: Skilled




~[Hide Item]~

Version 1.0 revision 1
Author puppeto4
Release Date 20/06/08


Exclusive Script at RPG RPG Revolution


Introduction

I write this sometimes ago, but never post it, since I hammered almost all the bugs, so I'll just post it for this request :

Elemental Sword Skills

Features

Hide item so that it won't appear in the item inventory. Perfect for eventing purpose.

This apply to normal items, weapons and armors.


Script



Attached File  HideItemSnippet.txt ( 3.88K ) Number of downloads: 86


[Show/Hide] HideItemSnippet
CODE
#==============================================================================
# ** 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


Customization

Change the Hidden_Text value to anything that you think fit(altough I don't think there is a need for this tongue.gif)

CODE
Hidden_Text     = "*HIDDEN"


Compatibility

This snippet rewrite "refresh" method in Window_Item, there might be problem arise because of that.


Screenshot

do you need it? huh.gif

DEMO

huh.gif

Installation

Copy the script and paste in a new empty script page under the material section but above main.

FAQ

To make an item not showing in the inventory, write the value of Hidden_Text on the item note field(by default is "*HIDDEN")

Refer to screenshot below :



Note Field is located at the bottom of "Elements to guard" & "States to resist"

Terms and Conditions

Credit & use.

Please don't post this script outside of RPG RPG Revolution


( ´,_ゝ`)
cheers, puppeto4. smile.gif



__________________________
how make teleport to graveyard then your character die?

AWAY FOR VACATION.
NOT HERE UNTIL JAN/FEB 2010 -w-/
Go to the top of the page
 
+Quote Post
   
Zenok Blueraven
post Jun 20 2008, 09:36 AM
Post #2


Level 11
Group Icon

Group: Revolutionary
Posts: 189
Type: None
RM Skill: Skilled




Whats the purpose of hiding an item from your inventory
and how do i get my warn lvl back down to 0% on RRR.com?


__________________________
Go to the top of the page
 
+Quote Post
   
Netto
post Jun 20 2008, 07:46 PM
Post #3


芸術家
Group Icon

Group: Revolutionary
Posts: 708
Type: None
RM Skill: Skilled




QUOTE (Zenok Blueraven @ Jun 20 2008, 09:50 AM) *
Whats the purpose of hiding an item from your inventory
and how do i get my warn lvl back down to 0% on RRR.com?

It says perfect for eventing purposes, so I suppose it could be used as a strategy based event, such as when you trigger 1 event it hides one item. You have 3 items, you trigger the events in order to see all the items that were hidden to move forward.


__________________________
Current Project[RC]: Twilight Realm 3DMMORPG w/dx9, and char creation through mysql after I get a server, now C++ scripting
Current Project[VX]: Obsidian Trilogy just started 08/12/2008
Current Project[XP&RM2K3]: none
Go to the top of the page
 
+Quote Post
   
westingtyler08
post Jul 10 2008, 05:45 PM
Post #4



Group Icon

Group: Member
Posts: 3
Type: Event Designer
RM Skill: Skilled




I like this idea because my game is very Zelda-like in that there are transportation items (lantern, ladder, jump boots, etc.) that activate automatically and can't be USED via the menu, so why waste menu space on items that can't be used? It's really irritating having to scroll past certain items EVERY TIME I open the menu. Useful script if it works out.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th May 2013 - 10:03 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker