MZ How on Earth can I make an Actor learn a Skill upon equipping an Item, and unlearn it upon unequip it?

For example, once an Actor equips a Sword, they can learn slashing moves, but once they unequip the item, the skills they learned from the item is forgotten until they equip the item again?

And also, once the skill (s) that are learnt using items is learnt, certain moves in the (default) skillset of an Actor is hidden, but once those skills are forgotten, the default moves appears again*.

* Note that the default equipment of an Actor won't alter the moveset of that Actor. Only equipment obtained via gameplay can do that.

Is there any way I can do it (preferably with some plugins involved)?

Thanks!
All you have to do is add a Trait on the weapon. The fourth tab is Skill, and allows you to add whatever skills you like while that item is equipped.

And also, once the skill (s) that are learnt using items is learnt, certain moves in the (default) skillset of an Actor is hidden, but once those skills are forgotten, the default moves appears again*.
For this part, you'd need to use a plugin. VisuStella's Skills and States Core has a "Hide if Has Skill" notetag.
it still can be done without plugins despite the comment above - but doing so without a plugin requires you to get tricky with where you place the skill type traits, and using weapon type conditions and a number of other build-in skill options.

That is not easy and would have to be carefully designed, so I can't give a simple example.
But I wanted to mention it in case you'll ever get problems with plugins.
it still can be done without plugins despite the comment above
Only maybe kind of? The OP didn't indicate that an entire skill type would disappear if these weapons were equipped, just that specific skills would not be visible.

I don't know of a way to make an individual skill not be visible using the editor. You can seal it, but it will still show up in the list.
It strongly depends on what exactly is needed to happen, and would still be tricky, yes.

I don't know of a way to make an individual skill not be visible using the editor.
You'll need to think outside the box and use two different skill types with the same name (so that the player cannot realise they are two different skill types).

A decade ago I wrote a tutorial (unfortunately lost during one of the forum updates) on how to use skill types on weapons together with learned skill by level on classes to allow actors to have different level-based skills for different weapons, with different classes activating different skills on the same weapon..

If that tutorial would still be archived somewhere I would simply have linked to it, but it was too complex and too long to recreate aftert it was lost.
You'll need to think outside the box and use two different skill types with the same name (so that the player cannot realise they are two different skill types).
Okay...I did not think that far outside the box 🤣
Use this script in Conditional Branch:
$gameActors.actor(YourActorID).equips()[0] && $gameActors.actor(YourActorID).equips()[0].id === WeaponID

Number 0 means Weapon.
Basically, create a parallel event with that conditional branch. It'll always check if Actor X is equipped with Weapon ID X. If it's equipped then > add skill, if false > remove skill.
@SangHendrix That will also work, but I would view that as the least efficient method. Adding a parallel process just for however infrequently players change equipment seems wasteful.

There's also no need to get into scripting for that method, everything you typed is right in the Conditional Branch event command:
Screenshot 2023-05-08 120234.png
@SangHendrix That will also work, but I would view that as the least efficient method. Adding a parallel process just for however infrequently players change equipment seems wasteful.

There's also no need to get into scripting for that method, everything you typed is right in the Conditional Branch event command:
View attachment 261322
Nope. That condition of yours will always return true if you have a selected weapon in your inventory. My English isn't quite good so I'm gonna give an example: According to op, he wants a skill to be added whenever a specific weapon is equipped. If he uses the Weapon condition as above and he has 2 weapons in his inventory and both these weapons add different skills, it'll always return true depending on the order of conditional branches.
If he uses the script I provided, it'll only check the weapon that is currently equipped.

I tested all of this so I'm confident without that script, it won't work they way you wanted.

Original thread: https://forums.rpgmakerweb.com/threads/how-on-earth-can-i-make-an-actor-learn-a-skill-upon-equipping-an-item-and-unlearn-it-upon-unequip-it.157341/