MZ Customize ‘Optimize Equipment’

This is a big ask, so I don’t expect it to get a complete answer, unless I missed some existing plugin when I was doing my preliminary search.

I have certain consumable items like arrows, crossbow bolts, and bullets, which are associated with equipment that goes into an Ammunition slot such as quivers, crossbow bolt cases, and bullet boxes. These bullet boxes come in different sizes. When optimizing my character, I want to ensure that if Optimize equips them with a blunderbuss (which requires large bullets), they are also equipped with the corresponding large bullet box, and no other bullet box or ammunition type should be equipped if the large bullet box is not available. Essentially, I want to specify which ammunition slot equipment should be optimized with which weapon slot equipment using notetags.

I’ll read up on the forum regarding making a plugin with notetag functionality, but if anyone could point me in the right direction regarding the rest of my request, I would be grateful! Thank you!

P.S. I found this plugin: https://forums.rpgmakerweb.com/index.php?threads/customize-the-optimize-equipment-function.152008/ but it seems to only work for actor or class, not for pieces of equipment in tandem like I described. I'm looking at the code for that plugin as well, but I am a bit lost when it comes to the part regarding making this revolve around equipment ID alone, since the code is referencing stats.
I think "optimize" is the wrong search word here, because optimization always suggests to get the best values.
What you want instead is something like linked equipment, where one equipment forces the use of a certain other equipment.

I do not know of any plugin that does this directly.

However one possibility might be to implement that as a custom equip requirement - like equipment (arrow) can only be equipped if weapon type is bow and so on.
That would require a lot of javascript-based custom requirements, but it should be possible with existing equip type plugins.
Can't tell you how that would affect existing optimize functions, but it would be a start.
I think "optimize" is the wrong search word here, because optimization always suggests to get the best values.
What you want instead is something like linked equipment, where one equipment forces the use of a certain other equipment.

I do not know of any plugin that does this directly.

However one possibility might be to implement that as a custom equip requirement - like equipment (arrow) can only be equipped if weapon type is bow and so on.
That would require a lot of javascript-based custom requirements, but it should be possible with existing equip type plugins.
Can't tell you how that would affect existing optimize functions, but it would be a start.
I'm looking to write my own plugin for this; it would be my second plugin. That's an interesting idea. I wonder how custom requirements would affect the way that the engine naturally optimizes the equipment. Perhaps they wouldn't, perhaps they would. I'll be sure to try it out before I get around to tackling this idea.
Have you checked out mine? If it doesn't currently do this, I should be able to add the feature. https://forums.rpgmakerweb.com/index.php?threads/trilobytes-mz-5-optimize-plus.157093/
Have you checked out mine? If it doesn't currently do this, I should be able to add the feature. https://forums.rpgmakerweb.com/index.php?threads/trilobytes-mz-5-optimize-plus.157093/
No I haven't @Trihan! This one slipped by me. Thank you for the recommendation, I will check it out.

Original thread: https://forums.rpgmakerweb.com/threads/customize-optimize-equipment.158726/