MV YEP Item Core + Mr. Trivel's Unlock Shop Items - Compatibility issue?

Hello,

I'm trying to make a system where you have a limited bag inventory and you can sell items in a shop to get new unlocks, a la Etrian Odyssey. With YEP Item core I'm able to turn on a limit for items which also makes each item you get take up an independent slot in the item screen. Mr. Trivel's unlock shop items, works as intended too, until you set an item limit.

The issue is that whenever I go to sell an item in the unlock shop, let's say 3 rocks, I should get the item that is unlocked to appear in the shop and followed by a window saying I unlocked it. It only works if the items aren't independent/inventory space is limited via the item core plugin.

I just wanted to know if there was anyway to get these plugins to work with the limited inventory on item core?
I haven't tested it, but from a quick look it seems all you need to do is open Trivel's plugin, and inside the addSoldItems() function (from lines 250-282) replace all instances of item.id with item.baseItemId

That should cause it to count sold items by their database ID rather than their independent item ID.
I haven't tested it, but from a quick look it seems all you need to do is open Trivel's plugin, and inside the addSoldItems() function (from lines 250-282) replace all instances of item.id with item.baseItemId

That should cause it to count sold items by their database ID rather than their independent item ID.
Just tested it out now. It didn't seem to change anything. Made sure to replace all the instances in-between those lines.

However I did kinda came up with a band aid solution so I don't have to enforce a "hard item limit". Basically made a diet encumbrance system where if you go over a certain limit, your moving speed gets slowed to a crawl all done through checking how many items are in the item category with a script call. Now the unlock shop works without the yep item core limit feature.

Although, I would much rather have these plugins work with each other 😅

Original thread: https://forums.rpgmakerweb.com/threads/yep-item-core-mr-trivels-unlock-shop-items-compatibility-issue.181207/