I'm trying to make a system like Skyrim's armor system, wherein the armor stat you gain from armor depends on your skill in heavy or light armor. I'm using YEP_SkillMasteryLevels for all the skills, so I can reference the values from that in whatever calculation is needed. The question is how do I implement it? Maybe some complicated logic for YEP_ItemCore? Recalcuate armor on occasion based on the player's heavy and light armor skills? Then I might need to have it check through all instances of items to modify them all. Troublesome.
Does anyone have any better suggestions?
A few more details would help, because there are probably half a dozen ways to implement this, but each with their own advantages and disadvantages. And without details we can't even guess which method would fit best.
that said, have youz considered going a completely different way?
Basically have several different passive states that add different values to DEF, and condition those passives on what armor is worn?
the entire mathematics - what values do you want to come out of the system? will they be percentual or absolute values? what is the maximum and minimum? and so on
For example even in the post abovewhere you said that the solution can't work because you need a degree of variability, you never said what degree of variability you need. Those are the details that are missing.