Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Someone can give me an script of item limitation, i'm talking about the item limitation of the tales series, like you can only can carry 15 copies of an item no 99 as default
 def update_number
  if Input.trigger?(Input::B)
   $game_system.se_play($data_system.cancel_se)
   @number_window.active = false
   @number_window.visible = false
   case @command_window.index
   when 0
    @buy_window.active = true
    @buy_window.visible = true
   when 1
    @sell_window.active = true
    @sell_window.visible = true
    @status_window.visible = false
   end
   return
  end
  if Input.trigger?(Input::C)
   $game_system.se_play($data_system.shop_se)
   @number_window.active = false
   @number_window.visible = false
   case @command_window.index
   when 0
    $game_party.lose_gold(@number_window.number * @item.price)
    case @item
    when RPG::Item
     $game_party.gain_item(@item.id, @number_window.number)
    when RPG::Weapon
     $game_party.gain_weapon(@item.id, @number_window.number)
    when RPG::Armor
     $game_party.gain_armor(@item.id, @number_window.number)
    end
    @gold_window.refresh
    @buy_window.refresh
    @status_window.refresh
    @buy_window.active = true
    @buy_window.visible = true
   when 1
    $game_party.gain_gold(@number_window.number * (@item.price / 2))
    case @item
    when RPG::Item
     $game_party.lose_item(@item.id, @number_window.number)
    when RPG::Weapon
     $game_party.lose_weapon(@item.id, @number_window.number)
    when RPG::Armor
     $game_party.lose_armor(@item.id, @number_window.number)
    end
    @gold_window.refresh
    @sell_window.refresh
    @status_window.refresh
    @sell_window.active = true
    @sell_window.visible = true
    @status_window.visible = false
   end
   return
  end
 end
end