MV Replace actor's skill by equipment's one

I have various weapons that suppose to give various skills to user. And some skills are suppose to replace those that an actor already has. How to do that?
I remember and found some kind of solutions. But Trivel's "SimpleReplaceSkill" plugin is not working with this kind of stuff. The project uses Yanfly's Skill Core. In theory I can solve it by writing correct conditions in <Custom Show Eval> but I don't know what to write.
"Learn Skill" plugin also may help but the game is not suppose to have any learning skill system. Because the main feature is that each type of weapon grants its own specific skillset.

Another thing is that I don't have to check by weapon types because some weapons of various types have different skillsets and are not replacing actor's skills.
The main problem you're facing here is that you're trying to mix two different RM-mechanics.

you can give skills by equipment by simply giving the weapon the trait for the skill, but in that case it never counts as learning the skill - the skill is added by equipping and gone when the equipment is removed.

Learning a skill (either by class or by event command) makes that skill permanently available to the actor no matter what equipment is there.

your wishes are easily handled if that is to different skills however, the weapon only needs traits to seal the unwanted skills or skill types. That does not remove those skills however, it makes them just not selectable and greyed out. Which is not the same as replacing.

All the plugins you mentioned likely only work with learned skills, not equipment-granted skills.
And all the solutions I know of only block skills, they don't vanish them - and as far as I know that even includes Yanfly's skill core.

I think you'll have to chose between just blocking/sealing the unwanted skills, or having a specific plugin for your mechanic requested or commissioned.
The project uses Yanfly's Skill Core. In theory I can solve it by writing correct conditions in <Custom Show Eval> but I don't know what to write.
if you make the skill's visibility eval be that its only hidden if the skill is sealed, then you can give your equipment that grants the other skills traits that seal the original skill. wearing such equipment will then hide the original

try putting this inside the original skill as-is
Code:
<Custom Show Eval>
visible = !user.isSkillSealed(skill.id)
</Custom Show Eval>
I suppose that is to make things right I have to make all weapon skills into learned by class. And then checking by wearing specific equipment.
If simple then I should write in <Custom Show Eval> a script that checks if the actor is equipped specific weapons, not types.
Sticking to actor's ID. If I remember correctly that would be something like:
Code:
$gameActors.actor(1).equips(1) contains($dataWeapon [2,3,4,10,11,12,13,14,15,16]);

if you make the skill's visibility eval be that its only hidden if the skill is sealed, then you can give your equipment that grants the other skills traits that seal the original skill. wearing such equipment will then hide the original

try putting inside the original skill as-is
Code:
<Custom Show Eval>
visible = !user.isSkillSealed(skill.id)
</Custom Show Eval>
And in skill.id write the original skill's one. Got it.
That works like a charm. Thanks.
And in skill.id write the original skill's one
no, thats what i meant by leave it as-is. you dont have to change it at all.
if you leave it as skill.id, the plugin will use the skill's id. You dont have to put it in yourself.
no, thats what i meant by leave it as-is. you dont have to change it at all.
if you leave it as skill.id, the plugin will use the skill's id. You dont have to put it in yourself.
Okay. Understood.
I have tried it in my way. It can grant the same effect but better to be careful to avoid situations like "skill A is hidden because skill B is sealed".

Original thread: https://forums.rpgmakerweb.com/threads/replace-actors-skill-by-equipments-one.177890/