MV [YR_ItemCrafting] Get Discipline Exp Relative To Level

I'm using YR_ItemCrafting with YEP_Skill_Mastery_Levels and trying to sync progression between the Discipline Exp so it's displayed on the skill exp. But it's out of sync because $gameParty.getDisciplineExp(disciplineId); returns the total exp for the discipline and not since the last level.

The code that I have running after the crafting menu is as follows:
let x = $gameParty.getDisciplineLevel(1);
$gameActors.actor(1).setSkillMasteryLevel(31, x);
let y = $gameParty.getDisciplineExp(1);
$gameActors.actor(1).setSkillMasteryUses(31, y);

The exp rates are bothlevel * 20.
maybe you can setthe exp inside the parameters.

while its level * 1, you can use the eval, so you can try to
target the skill mastery uses.

same for the level (or max level), eval it to the mastery skill level 🙂

Original thread: https://forums.rpgmakerweb.com/threads/yr_itemcrafting-get-discipline-exp-relative-to-level.176004/