MV Any idea how I might create a Gacha system which produces party members?

I put this in the MV forum, but I also have VX Ace and might get MZ while it's on sale, so if this is possible in any of these programs, I'd appreciate if you guys could explain to me how to do it.

So what I want to do is create a Gacha system which will recruit random characters into your party, similar to all those pay to win mobile games (don't worry, all of the Gacha rolls in my game would be purchased with an ingame currency). I know there is an official Gacha plugin for MV, however that seems to just produce generic collectable cards instead of party members.

What I would like to be able to do, in summary:

1. Have a menu option that will let you choose to spend gold or preferably a variable, in order to roll the Gacha. Ideally the Gacha event should be flashy looking, just like a real Gacha.

2. Gacha will then produce a random party member from your list of Actors.

3. Each Actor will be assigned a rarity in some manner, so your chances of getting stronger/cooler party members is lower.

4. If the Gacha pulls a party member that is already in your team, the game will "dismantle" that character automatically into Gold or a variable.

So... How might I achieve this?
1. You'll need a choice window, or custom menu, and then some fancy graphics to do the rolling.

2-4. Sounds like a job for variables and conditional branches. Not very difficult, but if you got a lot of characters, it would take some time to set up. If you don't know how to use variables well, it'll be good to look up some tutorials for these.
Moved to: Plugin Requests
basically control variable to get a random number, then check the number with a long list of conditional branches. different rarities just mean different weight for the different conditional branches

EDIT: the only part that needs a plugin is the change to the menu, the other parts can be done with eventing

Original thread: https://forums.rpgmakerweb.com/threads/any-idea-how-i-might-create-a-gacha-system-which-produces-party-members.137914/