RPG Maker MZ help with enemies unlocking actors

Hello
I am very new to RPG Maker MZ (and the whole RPG maker scene) and I am trying to wrap my head around things. So sorry if I am asking dumb questions or do not fully understand. I am trying to make a game where a major focus of the game is to collect actors. The player character achieves this by initially defeating an enemy which causes their actor counterpart to unlock and become usable (it will be based on random chance so some enemies may require multiple KOs to unlock their actor). I guess the best comparisons I can make would be similar to pokemon (without the balls) or the shadow of mordor and war games where you dominate captains into serving you.

My issue is that I am unsure how to make it so that actors unlock with a random chance after defeating their specific enemy. Also, I am unsure how to make these actors 'unlock' rather than immediately placing them into the active party upon unlocking them. If I were to create 50 actors for example how can I make it so only one actor is available to be placed in the party at the beginning of the game while the rest are hidden until the aforementioned unlocking process happens? (there are only 4 actor slots in the active party) Is there some sort of 'party manager' event I can have to help with swapping out these actors? Is there a way the player can level up these actors to the players level with gold for example? Are there any plugins currently available that can help me with what I am trying to do?

I appreciate all the help I can get and would be willing to communicate over Discord with anyone who is willing.
Thanks
First step, in either the troop event or the map event that is the enemy, you check for defeat and if yes count up a variable for that enemy. if it is high enough, use control variable with a random result to check if it succeeds or not.

Second, if you don't want to add an actor immediatly, you'll need a map event where you can recruit it - for example as a person waiting on a guild map.
that event needs multiple pages, one where there is nothing there or one where it tells "you can't hire me", then one conditioned to a switch where it can be hired. And that switch is of course turned on by success in the event above.
First step, in either the troop event or the map event that is the enemy, you check for defeat and if yes count up a variable for that enemy. if it is high enough, use control variable with a random result to check if it succeeds or not.

Second, if you don't want to add an actor immediatly, you'll need a map event where you can recruit it - for example as a person waiting on a guild map.
that event needs multiple pages, one where there is nothing there or one where it tells "you can't hire me", then one conditioned to a switch where it can be hired. And that switch is of course turned on by success in the event above.
I appreciate the response and I think I am on the right track. Do you know any ways of leveling up the actors that have not been in the party for a while? But without exceeding the main characters level? Perhaps a plugin you are familiar with? Thanks
@Andar gave you some basic concepts for what you want to do.

Just a suggestion that is usually offered since it sounds like you are very new. If you haven't done the built in tutorial in MZ and if you haven't done some other tutorials (thousands available on YouTube), I strongly recommend doing that. There are content creators that have made series of tutorials that go from very Basic things and walking you through the interface options, the database, etc. to more advance concepts.

Learning the basics of how you change things in the database (like the number of party members) and how Variables, Switches, Self-Switches, and Conditional Branches work is a very important foundation.

Hopefully what Andar shared is helpful for your specific question. But if you have any questions about tutorials, feel free to ask as well.

Good luck and remember to have fun!
Will do thanks
Do you know any ways of leveling up the actors that have not been in the party for a while? But without exceeding the main characters level?
mathematics
just use control variable to get the exp number of the party, then substract the exp of the actor and add the remainder of the exp to the actor with the event command for that.
If you look up party management plugins, sharing experience with members not in the battle party is a standard feature.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mz-help-with-enemies-unlocking-actors.165015/