MZ Making a type of shop with hundreds of items in it at once?

Hey y'all, I'm wondering how I could go about doing this:

So essentially, what I'm trying to make is a system where you gain points from exploration and such, and then you can spend those points at a "shop" that pops up whenever you press TAB (This is already implemented, just used Hendrix's Keyboard plugin) to buy different armors, weapons, and skills. Now, I've made around 400 of those in total for the entire game, but I need a way to fit them all in a shop. (NOTE: I'm not using the default currency for this, rather a key item called "scraps".)
I've tried using Visustella's common event menu, but that would've been a lot of effort and tons of common events, I tried using a shop with extra currency plugins, but that just didn't work out due to the sheer length of it. Does anyone have any ideas? Preferably modular / easier to import new items into the shop as it will update throughout the game. I know this is alot to ask, so I appreciate everybody who is spending their time helping me. (oh and a way to show the stats of it would be nice / a description of it but thats a bonus on top of just getting this to function.)
Use the shop processing script and you can push stuff there with a loop.
Is there a reason you don't want to name your currency as 'scraps' and just use that?
VS has extra currencies plugin, where you can set item costs to stuff with notetags.
Thanks! I don't want to name my currency 'scraps' because gold is still in the game. I'm aware of the VS plugin, but I'm broke so I'm not in the mood to spend 15 dollars on something that could have a free alternative out there.
Hmmm, before you open the special shop, save your gold, switch gold name to 'scraps', set gold equal to scrap item quantity. When you close the special shop, check how much scraps you used and deduct items and gold and switch gold name back. LOL.

You can change gold name with a switch, like:
Window_Gold.prototype.currencyUnit = function() {
if ($gameSwitches.value(20)){
return "scraps";}
else {
return TextManager.currencyUnit;
}
};
You could also put each item on a display table and have the player interact with and buy each item one at a time. It would avoid having a lot of conditional branches and instead you'd just need one for can the player buy this item (if appliciable) which could be handled with switches.

You would need a conditional check to ensure the player can afford it too though. But it can work. That's how I did redeeming GP (game points) for bonus items in my gaming area in my game.
I was thinking of maybe using the display table method, although the sheer size of it + lore explanations for why you can just teleport into a shop is a bit odd for me. I'll tinker around with the changing currency idea, I'm sure I can keep track of the gold and stuff like that. Although it would be a really large shop lol, I feel a grid-based solution could work better for the size, but that's stretch goals
Getting the shop itself with all the items you have available shouldn't be a problem, however as you mentioned, the Shop would be rather big in size.

JavaScript:
Shop = []
category = 0
for (let itemId = 0; itemId < $dataItems.length; itemId++) {
        item = [category,itemId,0];
    Shop = Shop.concat([item])
}
SceneManager.push(Scene_Shop);
SceneManager.prepareNextScene(Shop,true);

This Code would setup a Shop with all the ITEMS you have in your database

If you want to change the category to be Weapons or Armors, you'd need to change the category value to 1 for Weapons or 2 for Armors.
this also means that $dataItems.length needs to be changed to your $dataWeapons.length or $dataArmors.length as well.

I'm not 100% certain if it will help with your main issue but I figured I at least share my knowledge to what I have so far.
Thanks a ton! Is there any way to exclude specific id's or to have an array of id's? Just so I can control what items are in the shop
Yes that's possible!
JavaScript:
weaponList = [1,3,5,7,8]
Shop = []
category = 0
for (let itemId = 0; itemId < weaponList.length; itemId++) {
        item = [category,weaponList[itemId],0];
    Shop = Shop.concat([item])
}
SceneManager.push(Scene_Shop);
SceneManager.prepareNextScene(Shop,true);

You include ANY Weapon Id into the Array for weaponList and then it only includes the Id's that are inside the Array.

don't worry about the Array being too big if you need to have hundreds of entries.
Thanks alot to everyone that helped! I think I can make the shops now - it may be a bit tedious but it's doable lol
You can reduce the numbers by letting the player choose what type of stock they want to buy.
Screenshot 2025-07-19 073744.png

In this case, I have just separated weapons and armour. The "Weapons" and "Armour" choices open separate shop-processing calls, of course. You could, for instance, offer choices of "Swords", "Spears", "Bows", "Knives" etc.
I did that actually! I split it up into the type of equipment, and then which character's weapons to buy (as they all have unique ones), while I left armor as a general class

Original thread: https://forums.rpgmakerweb.com/threads/making-a-type-of-shop-with-hundreds-of-items-in-it-at-once.178989/