MV "Upgrade Skills"

I've been browsing for a while now but i can't find a solution that's not a massive workaround.

Problem being relatively simple. I got a bunch of skills that raise various stats via yep skillcore, skill learn and that other yep plugin wich let's you apply passive states via skills.

So I made something like ATK UP I-III and the goal is to have the player "Upgrade the skill" Meaning he can only learn ATK UP II after he learned ATK UP I. Simple enough, we just use <Learn Require Skill: x> and <Learn Cost: x JP> to determine the skill required to learn the upgrade and the JP cost.
Now i found you can use that lunatic mode stuff
<Learn Cost Eval>
user.forgetSkill(x);
</Learn Cost Eval>
in the note to make the player forget the previous skill. This seems to make it so that you can re- learn the previous skill, wich is what I'm trying to avoid for a couple of hours now.

Is there some code that prevents the use from learning a skill if he already has learned a higher tier? Or a code wich just simply hides the previous skill from the list entirely?

I only heard about somehow making the states not able to be applied at the same time using YEP_statecore wich sounds like a big workaround for what seems a simple issue.

As always, help is much appreciated!
Why are you making them forget the previous one?

Sounds like <Hide if Learned Skill: x> is what you're after.
It Wouldn't be much of an upgrade if they just kept both. Also I don't know how they stack together. If i got +10% atk per skill do they equal to 30%? Also it keeps the list smaller when only learnable skills are shown.
So yeah what I'm after is a <hide if learned skill:x> and preferably also <hide unless learned skill:x> if that's a thing.

Edit:
Just realized that <hide if learned skill:x> is right in the skillcore plugin. That leaves only a way to hide higher skills unless the lower tier skill is learned.
That leaves only a way to hide higher skills unless the lower tier skill is learned.
Learn Require Skill should already do that, according to the documentation.
Gonna check that out then. Brain is kinda smooth today. Too much number crunching 😀 Thanks for the help guys 😀

Original thread: https://forums.rpgmakerweb.com/threads/upgrade-skills.137109/