Beastmaster script? (Final Fantasy V/Bravely Default II)

Hello!
I’m looking for a script that works like beastmaster job from Final Fantasy V or Bravely Default II. Lemme explain:

The beastmaster job allows the user to capture a beast and then release it in another battle.

For example, first you gotta lower Slime's HP so the beastmaster can capture it. Then, in other battle, the beastmaster can release it causing said enemy to use an ability. After that the beastmaster is left without any beast and has to capture another one.

It would be also cool that the Beastmaster can keep multiple beasts instead of only one. So they can capture, for example, a bat in one battle, a slime in other and a zombie in other one. So they can choose which one they want to release, causing it, of course, to run out of said beast.
It sounds like the beasts are basically consumable items that trigger a battle effect.
It sounds like the beasts are basically consumable items that trigger a battle effect.
That's pretty much how they operate, with the exception that you have to go through the capturing process to get access to them.
It sounds like the beasts are basically consumable items that trigger a battle effect.
I'm trying to think on a non-script way to do it, but I really don't know how.
I use a different engine so I dont know anything about the scripts you need but it sounds like you either have a capture skill or item you use on the beast, run a catching formula with the beast's HP as one of the multipliers, and if it's succesful, add that beast as an item to your inventory.
I use a different engine so I dont know anything about the scripts you need but it sounds like you either have a capture skill or item you use on the beast, run a catching formula with the beast's HP as one of the multipliers, and if it's succesful, add that beast as an item to your inventory.
I’m going to try this and I’ll let you know if it worked.

Original thread: https://forums.rpgmakerweb.com/threads/beastmaster-script-final-fantasy-v-bravely-default-ii.171971/