How do I "unseal" a type of skill?

In my project I want to implement a mechanic of "quest specific character", that after the player complete certain quests in that area their party member came from they will unlock a side quest with said character and found more about their backstorie and etc, etc... But in this little adventure the player will also be rewarded with a "special attack", a powerfull skill that character can use in combat.

For this I made a skill type specifically for these attacks, and sealed them within that actors class. My idea was to make an event where it will unseal that skil and become avaiable (the descripition of "seal skill" says it's only temporary) but i can't find a command for it to "unseal"... am I missing something? I can't even add the type of skill later because there isn't a command for that either.

Sorry if this is confusing, thanks in advance!
if you are talking about the trait seal skill, then that is supposed to be used by states only - if you place it as a permanent trait in the actor or class it can't be removed, not without a plugin for dynamic traits.

that said, why do you even add the skill and the seal to the actor in the first place?
the better solution would be to NOT place the skill in the class, but have the quest event use the learn skill event command after completing the quest only.
I can't even add the type of skill later because there isn't a command for that either.
Sure you can. Even if there's no event command for it, you can make a hidden state that doesn't wear off, give it an Add Skill Type trait, and apply that state using an event command.
that said, why do you even add the skill and the seal to the actor in the first place?
I didn't know the seal was for states only, I thought since it was temporarily i could just put "if swicth is active, unseal type of skill" or something like that... i wanted the type of skill to already be in that actors class, so I could just call the event.

the better solution would be to NOT place the skill in the class, but have the quest event use the learn skill event command after completing the quest only.
The problem isn't the skill, it's their trait/label, instead of puting it in "magic" or "abilities" i put a special category for this special skills. I don't want the player for the majority of the game seeing that action they can't perform, that's why I wanted to hide it (and seal it).
Sure you can. Even if there's no event command for it, you can make a hidden state that doesn't wear off, give it an Add Skill Type trait, and apply that state using an event command.
I haven't thought about that, thank you! This could work 🙂
This could work
there is a slight problem: the death state automatically removes all other states.
so you'll need to re-apply that state on reviving from death
Be wary, though: The base engine will automatically remove all states on death or if you use the 'recover all' command. You would need a plugin like http://www.yanfly.moe/wiki/State_Categories_(YEP) to circumvent that.

I'm with @Andar . The easiest way is to simply have an event command at the end of the side quest that has the actor learn that command.

However I can also greatly empathize with the desire to only display skill types to the player, where the actor actually has a skill.
The following is an extract of a plugin I am developing for my own game. If you install it as a plugin in your project, it should automatically hide any skill types that an actor has, but doesn't know a single actual skill in.
JavaScript:
Window_ActorCommand.prototype.addSkillCommands = function() {
    var skillTypes = this._actor.addedSkillTypes().filter(function(sType){
          return this._actor.utilizesSkillType(sType);
        }, this);
    skillTypes.sort(function(a, b) {
        return a - b;
    });
    skillTypes.forEach(function(stypeId) {
        var name = $dataSystem.skillTypes[stypeId];
        this.addCommand(name, 'skill', true, stypeId);
    }, this);
};

Window_SkillType.prototype.makeCommandList = function() {
    if (this._actor) {
        var skillTypes = this._actor.addedSkillTypes().filter(function(sType){
          return this._actor.utilizesSkillType(sType);
        }, this);
        skillTypes.sort(function(a, b) {
            return a - b;
        });
        skillTypes.forEach(function(stypeId) {
            var name = $dataSystem.skillTypes[stypeId];
            this.addCommand(name, 'skill', true, stypeId);
        }, this);
    }
};

Game_Actor.prototype.utilizesSkillType = function(sType) {
  var skills = this.skills();
  for(let i = 0; i < skills.length; i++)
    if (skills[i])
      if(skills[i].stypeId == sType)
        return true;

  return false;
};
I would just do an invisible class change. The new class is exactly like the old one, but with the skill type.
Be wary, though: The base engine will automatically remove all states on death or if you use the 'recover all' command. You would need a plugin like http://www.yanfly.moe/wiki/State_Categories_(YEP) to circumvent that.

I'm with @Andar . The easiest way is to simply have an event command at the end of the side quest that has the actor learn that command.

However I can also greatly empathize with the desire to only display skill types to the player, where the actor actually has a skill.
The following is an extract of a plugin I am developing for my own game. If you install it as a plugin in your project, it should automatically hide any skill types that an actor has, but doesn't know a single actual skill in.
JavaScript:
Window_ActorCommand.prototype.addSkillCommands = function() {
    var skillTypes = this._actor.addedSkillTypes().filter(function(sType){
          return this._actor.utilizesSkillType(sType);
        }, this);
    skillTypes.sort(function(a, b) {
        return a - b;
    });
    skillTypes.forEach(function(stypeId) {
        var name = $dataSystem.skillTypes[stypeId];
        this.addCommand(name, 'skill', true, stypeId);
    }, this);
};

Window_SkillType.prototype.makeCommandList = function() {
    if (this._actor) {
        var skillTypes = this._actor.addedSkillTypes().filter(function(sType){
          return this._actor.utilizesSkillType(sType);
        }, this);
        skillTypes.sort(function(a, b) {
            return a - b;
        });
        skillTypes.forEach(function(stypeId) {
            var name = $dataSystem.skillTypes[stypeId];
            this.addCommand(name, 'skill', true, stypeId);
        }, this);
    }
};

Game_Actor.prototype.utilizesSkillType = function(sType) {
  var skills = this.skills();
  for(let i = 0; i < skills.length; i++)
    if (skills[i])
      if(skills[i].stypeId == sType)
        return true;

  return false;
};
You should never replace the original functions with something else. It's just a move for plugins incompatibility. It's okay when you're a programmer and it's for your own project, but it's not for a "general solution" since the project of everyone are differents and have differents plugins, etc. If OP have any plugin that add stuff to these functions, your plugin would overwrite theirs depending on the placement of the plugin.

At least if your modification actually work (as I suppose they do, I didn't test it), @Momonica should place this plugin on top of everything, since it's directly gonna overwrite the basic functions. Again, even in this case it might cause some issues depending on what kind of plugins OP have... 😅
@Reizod I am well aware of these facts and in general I agree with you. I try to develop my plugins with compatibility in mind, since I currently have 82 plugins in my project. Of which I only have written 17 myself. (Which, to be fair, are mostly pretty small.)

However these are all still WIP, because I mainly develop them for my project's needs specifically. Before I can publish them as general solutions, I will need to further refactor and polish them. I just posted an extract of their current state because OP seemed to have a very similar problem which I was trying to solve. If they do decide to use the code I provided and do have any issues, I will be happy to help.

(Note: Originally I was going to write about how in this case, sadly, a less intrusive solution wasn't easily possible. However while arguing that case an in fact less intrusive and easy solution occurred to me. Which just further proves my point that my plugins need more polish before I will be able to publish them.)
I would just do an invisible class change. The new class is exactly like the old one, but with the skill type.
Yes, that's an option of course but I would have to copy and paste everything... it would require a lot of work (but then again making a game is also a lot of work 😅).

If OP have any plugin that add stuff to these functions, your plugin would overwrite theirs depending on the placement of the plugin.

I don't believe I have any actually... I just started working in the battle system, but yeah that's something I need to keep in mind.
If they do decide to use the code I provided and do have any issues, I will be happy to help.
Thank you so much! It's a good solution i'm planning to try 🙂 I will give you full credit of course so don't worry
You could just write up your main class in its entirety, copy the whole thing, and then add the skill to the copy.
However I can also greatly empathize with the desire to only display skill types to the player, where the actor actually has a skill.
I actually have a plugin that does exactly this, although I don't think I posted it anywhere yet. It's a far superior solution if you have several such skill types, as I did. It's basically the same as yours, though I didn't override makeSkillCommands…

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-unseal-a-type-of-skill.143921/