Lua API for advancing skills
Currently, the only way to modify skill progress is changing this value:
types.NPC.stats.skills.alteration(self).progress
This has two problems:
- Skill progression is supposed to be non-linear, the progress speed decreases as the skill advances. Modders can circumvent this by doing the calculation themselves, but this could lead to inconsistent uses.
- Setting this value to 1.0(full progressed) or higher will not advance the skill to the next level until the skill is used normally(in this case, casting an alteration spell)
MWSE has this function: tes3.mobilePlayer:exerciseSkill(11, .02)
This advances the skill in the normal manner, not by the 0-1 range above. It will also raise the skill if it is ready to be advanced.
What would be the best way to implement something like this?
Could be an aux function that will take a number and return the 0-1 value needed, and modify the progress property to be advanced when it is set to 1, or create a function similar to MWSE.