MV How to make a character "learn" how to equip a weapon?

If I want to have my characters able to only equip certain weapon and armor types but then later learn how to equip others, what's the best way to go about doing that? There doesn't seem to be a simple pre-programmed function to give Actors traits. I tried giving them a state that added the ability, but the problem with that is, "Recover All" removes all states, even if there's no other way to remove them. Is there a script call that can add different Equip traits to actors? I've been looking for one, but I can't find it. I feel like I'm missing something, this seems like something that should be doable but I can't figure it out.
The easiest thing to do is just make a new class. You can copy and paste your starting class and simply add different equipment options to the newer version. Then just have an event trigger a class change. I don't think there's any need for something more fancy than that.
The easiest thing to do is just make a new class. You can copy and paste your starting class and simply add different equipment options to the newer version. Then just have an event trigger a class change. I don't think there's any need for something more fancy than that.
Yeah, I mean, I know you can do that, but if I've got like 8 different characters learning 20 different weapons over the course of the game, I'm gonna have to have 200 classes. Especially cause I'd have to make different ones for different orders you know like--say some dude learns sword first and then axe, and then spear--well fine there's three classes, but if he learns spear first and then sword and then axe, well, that's three more classes I have to make accounting for that order. It would take forever and I'd never be able to keep track of them all.
I don't think there's any need for something more fancy than that.
it depends. if when the actor learns the new weapons and which ones they learn are set, then having different classes for each stage works.
but if the player has a choice of which weapons are learned and in what order, then id suggest using something like Shaz's Dynamic Traits plugin to give their class the trait midgame. otherwise you would need classes for each possible combination and to event changing the actor to the correct one.

Is there a script call that can add different Equip traits to actors?
there is, but the linked plugin is a a easier way to go about it for those unfamiliar with how to do it with script
it depends. if when the actor learns the new weapons and which ones they learn are set, then having different classes for each stage works.
but if the player has a choice of which weapons are learned and in what order, then id suggest using something like Shaz's Dynamic Traits plugin to give their class the trait midgame. otherwise you would need classes for each possible combination and to event changing the actor to the correct one.


there is, but the linked plugin is a a easier way to go about it for those unfamiliar with how to do it with script
Cool, I'll def check it out, thanks
I tried giving them a state that added the ability, but the problem with that is, "Recover All" removes all states, even if there's no other way to remove them.

Passive States can solve all sorts of things. They can't be removed by regular forms of removal (because they'll reapply immediately).

For a situation like this, you'll want to teach them a skill that does nothing and can't be used, then have a Passive State be attached to that skill that gives the actor the ability to equip that weapon type. For instance, the skill migh be called 'Equip Axe' and describe that you can now equip axes. Note that the skill can be a regular skill if you want to add further functionality to it.

Passive States can solve all sorts of things. They can't be removed by regular forms of removal (because they'll reapply immediately).

For a situation like this, you'll want to teach them a skill that does nothing and can't be used, then have a Passive State be attached to that skill that gives the actor the ability to equip that weapon type. For instance, the skill migh be called 'Equip Axe' and describe that you can now equip axes. Note that the skill can be a regular skill if you want to add further functionality to it.
Oh, I have that plugin. I have all Yanfly's MV stuff. I already set up the one @Robro33 mentioned now though. But I s'pose if it starts conflicting with anything, I'll use Yanfly's, since most of my plugins are from Yanfly anyway.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-character-learn-how-to-equip-a-weapon.179432/