Remove Weapon And Armor From Item List

Inside my Item list on Item_scene, the weapons and armor I have in inventory are drawn in the itemlist. I am trying to remove these as it's uneccasary to see in my game. I am trying to remove them completly.  I found the part of the script that draws the items but when I comment out the code they still show up. I also tried re-writing the method in my own script snippet but it still shows up. Is there another method that is creating the items list that I am not seeing?

Spoiler
Code:
  #--------------------------------------------------------------------------  # * Include in Item List?  #--------------------------------------------------------------------------  def include?(item)    case @category    when :item      item.is_a?(RPG::Item) && !item.key_item?#    when :weapon#      item.is_a?(RPG::Weapon)#    when :armor#      item.is_a?(RPG::Armor)    when :key_item      item.is_a?(RPG::Item) && item.key_item?    else      false    end  end
class Window_ItemCategory < Window_HorzCommand #-------------------------------------------------------------------------- # * Get Digit Count #-------------------------------------------------------------------------- def col_max return @list.size end #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list add_command(Vocab::item, :item)#~ add_command(Vocab::weapon, :weapon)#~ add_command(Vocab::armor, :armor) add_command(Vocab::key_item, :key_item) endend 😀
Nope not quite what im looking for I already removed the categorys but I need the actual icons and text inside my item list to be gone. I will give a screenshot to show you what I mean.

uHHmM06.png

 
Oh, use this instead.

Code:
  #--------------------------------------------------------------------------  # * Include in Item List?  #--------------------------------------------------------------------------  def include?(item)    return !item.is_a?(RPG::Weapon) && !item.is_a?(RPG::Armor)  end
hmm that dont seem to work for my project, it must be because of luna engine( I will ask over on the luna support forum)  but I tried it on a new project and for some reason it removes all armor and weapons for all categorys. This seems to be a tougher and tougher job lol.
Hi,

By default items are separated into items, weapons, armors and key items within the item scene (as you can see in the code you posted, a different condition is evaluated depending on the active @category).

If that is not working for you, then it's possible this method definition is replaced within another custom script of yours. You could try to move your snippet as close to the main script as possible and see if it takes effect then.

As an alternative, you could also search for "class Window_ItemList" within your scripts for example and see if one of the matches redefines the include? method for that class.

If the same method for the same class is defined multiple times throughout your scripts, the latest definition (= closest to the main script) is used.

Original thread: https://forums.rpgmakerweb.com/threads/remove-weapon-and-armor-from-item-list.45003/