Status
Not open for further replies.

Hytporsche

Veteran
Veteran
Joined
Jan 28, 2013
Messages
90
Reaction score
1
First Language
English
Primarily Uses
[ACE] Item Inventory (Showing Full) for shop

I'm not sure how to go about this. I used Tuskhime "FP Inventory System" and was able to limit how many items are in my inventory at once and even looked at RPG Maker VX ACE default number of items and was able to make the correct change. But, when i filled my item inventory to its max and went to a shop to buy an item, it still allowed me to buy an item even though i had a full inventory. So, i would be buying an item for no reason, because the item would never be put in my inventory.

So, how would i go about having the shop know if my "Item Inventory" is full?

*I guess i would prefer FP inventory script to work with the item inventory being full, but I don't mind using the default RPG script if needed be. Whatever gives me more control and flexible to be honest.

Default RPG Maker script: 

#==============================================================================# ** Window_ItemList#------------------------------------------------------------------------------# This window displays a list of party items on the item screen.#==============================================================================class Window_ItemList < Window_Selectable #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize(x, y, width, height) super @category = :none @data = [] end #-------------------------------------------------------------------------- # * Set Category #-------------------------------------------------------------------------- def category=(category) return if @category == category @category = category refresh self.oy = 0 end #-------------------------------------------------------------------------- # * Get Digit Count #-------------------------------------------------------------------------- def col_max return 1 end #-------------------------------------------------------------------------- # * Get Number of Items #-------------------------------------------------------------------------- def item_max @data ? @data.size : 1 end #-------------------------------------------------------------------------- # * Get Item #-------------------------------------------------------------------------- def item @data && index >= 0 ? @data[index] : nil end #-------------------------------------------------------------------------- # * Get Activation State of Selection Item #-------------------------------------------------------------------------- def current_item_enabled? enable?(@data[index]) end #-------------------------------------------------------------------------- # * Include in Item List? #-------------------------------------------------------------------------- def include?(item) case @category when :weapon item.is_a?(RPG::Item) && !item.key_item? || item.is_a?(RPG::Armor) when :key_item item.is_a?(RPG::Item) && item.key_item? end end #-------------------------------------------------------------------------- # * Display in Enabled State? #-------------------------------------------------------------------------- def enable?(item) $game_party.usable?(item) end #-------------------------------------------------------------------------- # * Create Item List #-------------------------------------------------------------------------- def make_item_list @data = $game_party.all_items.select {|item| include?(item) } @data.push(nil) if include?(nil) end #-------------------------------------------------------------------------- # * Restore Previous Selection Position #-------------------------------------------------------------------------- def select_last select(@data.index($game_party.last_item.object) || 0) end #-------------------------------------------------------------------------- # * Draw Item #-------------------------------------------------------------------------- def draw_item(index) item = @data[index] if item rect = item_rect(index) rect.width -= 4 draw_item_name(item, rect.x, rect.y, enable?(item)) draw_item_number(rect, item) end end #-------------------------------------------------------------------------- # * Draw Number of Items #-------------------------------------------------------------------------- def draw_item_number(rect, item) draw_text(rect, sprintf(":%2d", $game_party.item_number(item)), 2) end #-------------------------------------------------------------------------- # * Update Help Text #-------------------------------------------------------------------------- def update_help @help_window.set_item(item) end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh make_item_list create_contents draw_all_items endend
Tsukihime FP Inventory System: http://dl.dropboxusercontent.com/u/23043573/RPG%20Maker/RMVXA%20Scripts/Tsuki_Inventory_Plus.txt
 
Last edited by a moderator:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,906
Reaction score
14,999
First Language
English
Primarily Uses
RMMV
Provide a link to the script please.
 

Hytporsche

Veteran
Veteran
Joined
Jan 28, 2013
Messages
90
Reaction score
1
First Language
English
Primarily Uses
Provide a link to the script please.
There is no need for the script. As i have mentioned, I have been able to use the default rpg maker script to control the items in my inventory. But, if I need to provide the FP Inventory system, then i will :)

Default RPG Maker script: 

#==============================================================================# ** Window_ItemList#------------------------------------------------------------------------------# This window displays a list of party items on the item screen.#==============================================================================class Window_ItemList < Window_Selectable #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize(x, y, width, height) super @category = :none @data = [] end #-------------------------------------------------------------------------- # * Set Category #-------------------------------------------------------------------------- def category=(category) return if @category == category @category = category refresh self.oy = 0 end #-------------------------------------------------------------------------- # * Get Digit Count #-------------------------------------------------------------------------- def col_max return 1 end #-------------------------------------------------------------------------- # * Get Number of Items #-------------------------------------------------------------------------- def item_max @data ? @data.size : 1 end #-------------------------------------------------------------------------- # * Get Item #-------------------------------------------------------------------------- def item @data && index >= 0 ? @data[index] : nil end #-------------------------------------------------------------------------- # * Get Activation State of Selection Item #-------------------------------------------------------------------------- def current_item_enabled? enable?(@data[index]) end #-------------------------------------------------------------------------- # * Include in Item List? #-------------------------------------------------------------------------- def include?(item) case @category when :weapon item.is_a?(RPG::Item) && !item.key_item? || item.is_a?(RPG::Armor) when :key_item item.is_a?(RPG::Item) && item.key_item? end end #-------------------------------------------------------------------------- # * Display in Enabled State? #-------------------------------------------------------------------------- def enable?(item) $game_party.usable?(item) end #-------------------------------------------------------------------------- # * Create Item List #-------------------------------------------------------------------------- def make_item_list @data = $game_party.all_items.select {|item| include?(item) } @data.push(nil) if include?(nil) end #-------------------------------------------------------------------------- # * Restore Previous Selection Position #-------------------------------------------------------------------------- def select_last select(@data.index($game_party.last_item.object) || 0) end #-------------------------------------------------------------------------- # * Draw Item #-------------------------------------------------------------------------- def draw_item(index) item = @data[index] if item rect = item_rect(index) rect.width -= 4 draw_item_name(item, rect.x, rect.y, enable?(item)) draw_item_number(rect, item) end end #-------------------------------------------------------------------------- # * Draw Number of Items #-------------------------------------------------------------------------- def draw_item_number(rect, item) draw_text(rect, sprintf(":%2d", $game_party.item_number(item)), 2) end #-------------------------------------------------------------------------- # * Update Help Text #-------------------------------------------------------------------------- def update_help @help_window.set_item(item) end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh make_item_list create_contents draw_all_items endend
Tsukihime FP Inventory System: http://dl.dropboxusercontent.com/u/23043573/RPG%20Maker/RMVXA%20Scripts/Tsuki_Inventory_Plus.txt
 
Last edited by a moderator:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,906
Reaction score
14,999
First Language
English
Primarily Uses
RMMV
You don't need to provide the default script - we all have access to that. You just need to link any additional scripts, so we don't have to go searching.


And you DO need to link the additional script, because whoever helps will need to see how it limits inventory, to make the default shops do the same.


Is there a forum thread for Tsukihime's script? If there is, it's better to link to that than just the script itself, because the forum post might have additional info and examples that will help understand it better (even a scripter prefers to get an overview of a script and some demo/samples, than reading through trying to figure out what it's doing)
 
Last edited by a moderator:

Hytporsche

Veteran
Veteran
Joined
Jan 28, 2013
Messages
90
Reaction score
1
First Language
English
Primarily Uses
I wasn't sure how to go about asking for help on my matter and so I apologize for the lack of info. I ended up finding what i needed. 

I am using "Tsukihime - Inventory Size". It does exactly what i was wanting above. Fixes the limit on the inventory and tells the shop is the inventory is full or empty. Topic can be closed.
 

Archeia

Level 99 Demi-fiend
Staff member
Developer
Joined
Mar 1, 2012
Messages
15,384
Reaction score
15,844
First Language
Filipino
Primarily Uses
RMMZ
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Currently working on a playlist of songs that have inspired my work on revamping Battle Castle, as well as making sure they flow decently from one to the next. This is the first song in the playlist.
Artists out there, is there something RPG maker related you wish your graphics software had but doesn't? (Something like automatically transform a wall tile into a cylindrical tower). I want to give a boost to WecTools, but I'm dry of ideas right now...
having anxiety during all this virus stuff is the absolute worst. I'm the only one missing out on my friend's wedding in Sept. because I can't be in large groups of people anymore due to anxiety.
Well... I just spent most of the day making something I cant even use xD

Hero_1.png
The idea was to look at the original but at a medium distance.
In hindsight, I might as well have just edited the original lol... I didn't intend for it to end up so similar.

Forum statistics

Threads
113,906
Messages
1,078,341
Members
148,011
Latest member
minh0408
Top