VXAce Only show specific items when selling at a shop

Hey!

I'm looking for a script or even just editing the script to make it so when I select "Sell" at any shop, instead of displaying every single item, it will only show (and thus allow) the selling of specific items.

My game has a lot of items that are unsellable, including all the equipment, but they still appear in the sell menu and really clogs everything up. I've tried searching for a way myself but I get a lot of other scripts that aren't exactly doing this.

Also note I do have Yanfly's Ace Shop Menu script as well, if that changes anything. It's not a huge deal if it's not possible, but I'm just trying to clean everything up. Thanks so much for any help! I appreciate it!!
Just a suggestion, you could reorganize your database so that usable and sellable items are near the top. That would make it more convenient for the player anyways. Also when making item categories in the database, I usually leave a LOT of empty space in between, to allow easily adding more items in the future.

Another way is to just put all the unsellable items into the "Key Items" basic type, since those appear in a separate list.
Also note I do have Yanfly's Ace Shop Menu script as well, if that changes anything. It's not a huge deal if it's not possible, but I'm just trying to clean everything up. Thanks so much for any help! I appreciate it!!
This works in my testing
Spoiler: hide shop items
Ruby:
# ╔═══════════════════════════════════════════════╦════════════════════╗
# ║ Title: Exclude Items from Selling             ║  Version: 1.00     ║
# ║ Author: Roninator2                            ║                    ║
# ╠═══════════════════════════════════════════════╬════════════════════╣
# ║ Function:                                     ║   Date Created     ║
# ║                                               ╠════════════════════╣
# ║   Exclude item from selling                   ║    13 Mar 2026     ║
# ╚═══════════════════════════════════════════════╩════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Requires: Yanfly Engine Ace - Ace Shop Options v1.01               ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Brief Description:                                                 ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Instructions:                                                      ║
# ║   Mark each item in the notebox with tag                           ║
# ║      <unsellable>                                                  ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Updates:                                                           ║
# ║ 1.00 - 13 Mar 2026 - Script finished                               ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Credits and Thanks:                                                ║
# ║   Roninator2                                                       ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Terms of use:                                                      ║
# ║  Follow the original Authors terms of use where applicable         ║
# ║    - When not made by me (Roninator2)                              ║
# ║  Free for all uses in RPG Maker except nudity                      ║
# ║  Anyone using this script in their project before these terms      ║
# ║  were changed are allowed to use this script even if it conflicts  ║
# ║  with these new terms. New terms effective 03 Apr 2024             ║
# ║  No part of this code can be used with AI programs or tools        ║
# ║  Credit must be given                                              ║
# ╚════════════════════════════════════════════════════════════════════╝

# ╔════════════════════════════════════════════════════════════════════╗
# ║                      End of editable region                        ║
# ╚════════════════════════════════════════════════════════════════════╝

module YEA
  module REGEXP
  module BASEITEM
    
    NO_SELL    = /<(?:UNSELLABLE|unsellable)>/i
    
  end # BASEITEM
  end # REGEXP
end # YEA

#==============================================================================
# ■ RPG::BaseItem
#==============================================================================

class RPG::BaseItem
 
  #--------------------------------------------------------------------------
  # public instance variables
  #--------------------------------------------------------------------------
  attr_accessor :cant_sell
 
  #--------------------------------------------------------------------------
  # common cache: load_notetags_aso
  #--------------------------------------------------------------------------
  def load_notetags_r2_aso
    #---
    self.note.split(/[\r\n]+/).each { |line|
      case line
      #---
      when YEA::REGEXP::BASEITEM::NO_SELL
        @cant_sell = true
      end
    } # self.note.split
    #---
  end
 
end # RPG::BaseItem

#==============================================================================
# ■ DataManager
#==============================================================================

module DataManager
 
  #--------------------------------------------------------------------------
  # alias method: load_database
  #--------------------------------------------------------------------------
  class <<self; alias load_database_r2_aso load_database; end
  def self.load_database
    load_database_r2_aso
    load_notetags_r2_aso
  end
 
  #--------------------------------------------------------------------------
  # new method: load_notetags_aso
  #--------------------------------------------------------------------------
  def self.load_notetags_r2_aso
    groups = [$data_items, $data_weapons, $data_armors]
    for group in groups
      for obj in group
        next if obj.nil?
        obj.load_notetags_r2_aso
      end
    end
  end
 
end # DataManager

#==============================================================================
# ■ Window_ShopSell
#==============================================================================
class Window_ShopSell < Window_ItemList
  #--------------------------------------------------------------------------
  # * Include in Item List?
  #--------------------------------------------------------------------------
  def include?(item)
    case @category
    when :item
      item.is_a?(RPG::Item) && !item.key_item? && !item.cant_sell
    when :weapon
      item.is_a?(RPG::Weapon) && !item.cant_sell
    when :armor
      item.is_a?(RPG::Armor) && !item.cant_sell
    when :key_item
      item.is_a?(RPG::Item) && item.key_item? && !item.cant_sell
    else
      false
    end
  end
end
This works in my testing
Spoiler: hide shop items
Ruby:
# ╔═══════════════════════════════════════════════╦════════════════════╗
# ║ Title: Exclude Items from Selling             ║  Version: 1.00     ║
# ║ Author: Roninator2                            ║                    ║
# ╠═══════════════════════════════════════════════╬════════════════════╣
# ║ Function:                                     ║   Date Created     ║
# ║                                               ╠════════════════════╣
# ║   Exclude item from selling                   ║    13 Mar 2026     ║
# ╚═══════════════════════════════════════════════╩════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Requires: Yanfly Engine Ace - Ace Shop Options v1.01               ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Brief Description:                                                 ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Instructions:                                                      ║
# ║   Mark each item in the notebox with tag                           ║
# ║      <unsellable>                                                  ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Updates:                                                           ║
# ║ 1.00 - 13 Mar 2026 - Script finished                               ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Credits and Thanks:                                                ║
# ║   Roninator2                                                       ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Terms of use:                                                      ║
# ║  Follow the original Authors terms of use where applicable         ║
# ║    - When not made by me (Roninator2)                              ║
# ║  Free for all uses in RPG Maker except nudity                      ║
# ║  Anyone using this script in their project before these terms      ║
# ║  were changed are allowed to use this script even if it conflicts  ║
# ║  with these new terms. New terms effective 03 Apr 2024             ║
# ║  No part of this code can be used with AI programs or tools        ║
# ║  Credit must be given                                              ║
# ╚════════════════════════════════════════════════════════════════════╝

# ╔════════════════════════════════════════════════════════════════════╗
# ║                      End of editable region                        ║
# ╚════════════════════════════════════════════════════════════════════╝

module YEA
  module REGEXP
  module BASEITEM
   
    NO_SELL    = /<(?:UNSELLABLE|unsellable)>/i
   
  end # BASEITEM
  end # REGEXP
end # YEA

#==============================================================================
# ■ RPG::BaseItem
#==============================================================================

class RPG::BaseItem
 
  #--------------------------------------------------------------------------
  # public instance variables
  #--------------------------------------------------------------------------
  attr_accessor :cant_sell
 
  #--------------------------------------------------------------------------
  # common cache: load_notetags_aso
  #--------------------------------------------------------------------------
  def load_notetags_r2_aso
    #---
    self.note.split(/[\r\n]+/).each { |line|
      case line
      #---
      when YEA::REGEXP::BASEITEM::NO_SELL
        @cant_sell = true
      end
    } # self.note.split
    #---
  end
 
end # RPG::BaseItem

#==============================================================================
# ■ DataManager
#==============================================================================

module DataManager
 
  #--------------------------------------------------------------------------
  # alias method: load_database
  #--------------------------------------------------------------------------
  class <<self; alias load_database_r2_aso load_database; end
  def self.load_database
    load_database_r2_aso
    load_notetags_r2_aso
  end
 
  #--------------------------------------------------------------------------
  # new method: load_notetags_aso
  #--------------------------------------------------------------------------
  def self.load_notetags_r2_aso
    groups = [$data_items, $data_weapons, $data_armors]
    for group in groups
      for obj in group
        next if obj.nil?
        obj.load_notetags_r2_aso
      end
    end
  end
 
end # DataManager

#==============================================================================
# ■ Window_ShopSell
#==============================================================================
class Window_ShopSell < Window_ItemList
  #--------------------------------------------------------------------------
  # * Include in Item List?
  #--------------------------------------------------------------------------
  def include?(item)
    case @category
    when :item
      item.is_a?(RPG::Item) && !item.key_item? && !item.cant_sell
    when :weapon
      item.is_a?(RPG::Weapon) && !item.cant_sell
    when :armor
      item.is_a?(RPG::Armor) && !item.cant_sell
    when :key_item
      item.is_a?(RPG::Item) && item.key_item? && !item.cant_sell
    else
      false
    end
  end
end
Yes!!

That works exactly what I was looking for! Thank you so much I appreciate this a bunch! Thank you! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/only-show-specific-items-when-selling-at-a-shop.182853/