I am in the midst of creating a mod that dynamically alters the properties of armor and weapon stats based on the underlying "material" of that item (ie. Deadric, orcish, elven, etc.)
I would like this mod to interfere with as few other mods as possible, so ideally, I don't want to modify ANY weapons or armor in the creation kit.
The scripting for doing this should be pretty straightforward, but I'm running into one major problem: how do I determine what "material" the item is made out of? I can't find any function or property (vanilla or SKSE) that seems to give the modder access to this stat.
Now this is obviously a property that the game has access to at some point (like with perks which control crafting certain types of items) and constructible objects have a property for "Recipe Filter" in the creation kit, (which are keywords that show the crafting category the item belongs to.) Furthermore, keywords also have a "type" property which can again be set to "recipe filter" and can signify an item's class.
There is also "Match Conditions" field for constructble objects in the creation kit which usually contains which (if any) perks are needed to craft an item: I imagine this could also be used to determine a weapon's type.
Does anyone have any ideas how I can access any of the aforementioned properties, or achieve what I'm aiming to do in some other way? I'm not against setting up a script with one-to-one matching with all weapons and armor in the game, but I would prefer to take a more streamlined approach if at all possible.