MV How do I seal and hide a user skill?

Hey, I have am trying to seal and hide a specific skill, and replace it with a same-named tutorial version of the skill (which has a 100% tutorial hit ratio, instead of the default 75% ratio). How would I achieve this without hiding the skill every time the skill is sealed?

This will only happen during turn zero of the troop phase.

I tried this way, but I had a few problems:

With Yanfly's Skill Core Plugin, you can set skills to hide or reveal with the <Custom Show Eval> notetag in the skill notetags.

I am trying to use this method to hide skills that are not usable.

For that, I used this skill code:

JavaScript:
  <Custom Show Eval>
  if (user.canUse($dataSkills[11])) {
    visible = true;
  } else {
    visible = false;
  }
  </Custom Show Eval>

This works, but it causes the stack to increase to infinity, looping itself.

Screenshot 2025-06-09 140113.png

In addition, if you have the debugger open, it won't even print out the error.

Screenshot 2025-06-09 140418.png


By default YEP Skill Core does not autohide unusable skills. If a skill is unusable (aka "sealed"), it will still show the skill.

In addition, through this method, it will hide the skill every time it's sealed. So if the entire group or just the skill is disabled, you won't be able to see the skill.

How do I go about this?
if youre worried about the skill being visible while its sealed, then use the isSkillSealed() function as your condition instead of canuse() so that it being sealed is what hides it.

but also, if the only difference between the skills is the hit rate, then at the start of your tutorial you can just change the .successRate of that skill to 100 directly and set it back when the tutorial is done. no need for the duplicate skill unless it serves another purpose

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-seal-and-hide-a-user-skill.178226/