I've been trying to make it so that when you have 0 if an item it won't vanish from the item menu, please help.
How do I make it so that when you have 0 of an item it doesn't disappear from the menus
RPG Maker VX SupportFirst consider this, how could it benefit the player to show up to... 100 or 200 items with 0 units each?
I wouldn't want it to show every item, just certain items
but then would the item only show if you have found it?
I mean it would be possible to add items to the menu with just a note tag and show their numbers as 0, but that would show all items you tag even if the player has never found them. like Kyonides was saying.
Maybe there would be a way to alter the item menu with a note tag on the item as a true/false for if it was found. then add them if they are true and not in inventory.
Is this only for items and not weapons or amour?
does this work? for items only currently. Tag the items with <zero_item> in the note box
I mean it would be possible to add items to the menu with just a note tag and show their numbers as 0, but that would show all items you tag even if the player has never found them. like Kyonides was saying.
Maybe there would be a way to alter the item menu with a note tag on the item as a true/false for if it was found. then add them if they are true and not in inventory.
Is this only for items and not weapons or amour?
does this work? for items only currently. Tag the items with <zero_item> in the note box
Ruby:
class RPG::Item
attr_accessor :zero_item
end
class Game_Party < Game_Unit
alias :r2_gain_zero_item_tag :gain_item
def gain_item(item, n, include_equip = false)
item.zero_item = true if item.note.include?("<zero_item>")
r2_gain_zero_item_tag(item, n, include_equip = false)
end
end
class Window_Item < Window_Selectable
alias :r2_zero_item_include_refresh :refresh
def refresh
r2_zero_item_include_refresh
for item in $data_items
next if item == nil
next unless item.zero_item
@data.push(item) unless $game_party.items.include?(item)
end
@item_max = @data.size
create_contents
for i in 0...@item_max
draw_item(i)
end
end
end
This would only be meant for items, not armor or weapons
also this doesn't seem to work, no matter if I put the item name nor ID
also this doesn't seem to work, no matter if I put the item name nor ID
Can you show me the notebox for the item you're trying it with?
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-it-so-that-when-you-have-0-of-an-item-it-doesnt-disappear-from-the-menus.159221/