So Immersive Jewelry has been out for some time, and I've finished all parts of it that I'd wanted to except one. There needs to be some form of breakdown whereby players can extract gems and metals from unwanted pieces of jewelry.
What I would like to do is have a miscellaneous object called "pliers" that when clicked on, allows you to click on any piece of jewelry in your inventory. Once clicked, the jewelry will disappear and be replaced by X sized gems and portions of "hackmetal". The hackmetal can then be combined into ingots at the smelter.
Immersive Jewelry already has about 3600 unenchanted items that this would have to work for, however, so going in by hand and programming what each object breaks down into with this method would take months.
However, when I categorized each of the 3600 armor objects for jewelry as I made them, I followed a scheme wherein they were identified by mod author name, then the object slot, then metal, then race, and then the gem and its cut. For example "JohnSkyrimCircletSilverNordicDiamondCheckerboard".
Is it possible that I could write a script that would identify the proper breakdown components of any clicked on object immediately based on its editor ID? For example, just from the editor string, it would know to give diamonds, from "circletsilver" it would know to give 12 portions of hacksilver, and from "JohnSkyrim" it would know to give 7 diamonds, because the circlets by that author have 7 gems in them?
If so, what would the calls for that function and name string identification look like?