monster catch not working

So I want to make a monster catch mechanic but I want it to have only a percentage chance to work, my thought was to use a skill to work a %x of the time. Then check if the status effect is there, then if so give the party the enemy as a party member. Problem is I can't seem to get the first If statement to work If monster hp <= 70% nor have the change party member add slime portion work. I'm very new to rmmv, I have light coding experenice with c# but not enough to make the game in unity with c# my thought was to make this game in rmmv and then once it was done or done enough move it over to unity with c#. The way I learn personally is by having a project or something I need to accomplish then I can search and learn but rmmv is very restricting in a lot of ways. Can anyone help?

Below is how I tried to set the variable to 70% of the monsters hp.
◆Control Variables:#0003 Monster HP 70 Percent = \v[1] * .7

below is the rest of the event.
◆If:already caught slime is ON
◆Text:None, Window, Bottom
: :Already Caught
◆Control Switches:#0001 Monster Attempt = OFF
◆
:Else
◆Control Variables:#0001 Monster HP = HP of #1 Slime
◆If:Monster HP ≤ Monster HP 70 Percent
◆Force Action:Harold, Breach, Last Target
◆If:#1 Slime is affected by Reprogramed
◆Change Party Member:Add Slime
◆
:End
◆
:Else
◆
:End
◆
:End
I've made progress but one thing I'm having problems with is when i force use this skill it loops until success. Two problems 1) it doesn't seem to be evaluating the hp% of the monster.

◆Control Variables:#0003 HP Monster1 = HP of #1
◆Control Variables:#0003 HP Monster1 *= 100
◆Control Variables:#0005 MHP Monster1 = Max HP of #1
◆Control Variables:#0005 MHP Monster1 /= MHP Monster1

I used Game Data HP of #1 to try to get the hp value of the monster. Then do the above math operations on it.

The skill calls a common event called try catch. The event goes to You Did not reprogram the mech! and then tries the action again over and over again. I added a wait after the you did not reprogram the mech part of the event to force it to stop looping but that is clunky.

◆If:MHP Monster1 ≤ 70
◆Script:eval: $gameActors.actor(1).forceAction(13);
◆If:#1 is affected by Breached
◆Change Party Member:Add Slime
◆Change Enemy State:#1, + Knockout
◆
:Else
◆Text:None, Window, Top
: :You did not reprogram the mech!
◆
:End
◆
:Else
◆Text:Monster(1), Window, Top
: :You must weaken the monster first!
◆
:End

eval: $gameActors.actor(1).forceAction(13);
Just as a suggestion, there are a number of Pokémon/monster catching plugins and video tutorials out there that already work. You could simply use one of those instead of wrestling through it yourself.

However, as far as your event goes:
◆Control Variables:#0003 HP Monster1 = HP of #1
◆Control Variables:#0003 HP Monster1 *= 100
◆Control Variables:#0005 MHP Monster1 = Max HP of #1
◆Control Variables:#0005 MHP Monster1 /= MHP Monster1
This is an error - dividing MHP / MHP will always result in 1. You mean to divide variable 3, HP, by MHP.
◆Script:eval: $gameActors.actor(1).forceAction(13);
Why do this instead of using the Force Action event command?

I don't know how the target is supposed to get the Breached state (presumably through skill 13), but clearly it's not. The answer for that would be in a screenshot of the skill, not this event.
Just as a suggestion, there are a number of Pokémon/monster catching plugins and video tutorials out there that already work. You could simply use one of those instead of wrestling through it yourself.

However, as far as your event goes:

This is an error - dividing MHP / MHP will always result in 1. You mean to divide variable 3, HP, by MHP.

Why do this instead of using the Force Action event command?

I don't know how the target is supposed to get the Breached state (presumably through skill 13), but clearly it's not. The answer for that would be in a screenshot of the skill, not this event.
Do you have any suggestions for which ones to use? I find the whole process of searching for plugins very difficult. I did end up getting it to work though.

What I ended up doing is setting the monsters rate to Breach to 10%, so the baseline to catch it is 10%. I setup states for different values to change the state rate to breach. Then I setup battle event triggers to apply those states at 70%, 50%,30%, and 10%. Each previous state removes the other states so the math is correct. At hp 70% changes state rate by 300%, then 500%, then 700%, and finally 900%. Giving the monster less resistance at each trigger. After using the Breach skill it tries to apply breach, then it runs a common event called Try to Catch, that event checks for the Breached state, if present it adds the actor corresponding to the monster to the party and KO's the monster. To make sure this only works on Mechs non-mechs have a resistance to the breach effect. I ended up making the skill a magic skill and making a custom element for it. Before it was the sure hit type of skill and thus was bypassing the monsters state rate.
Also where can I find all the script call options? I've been messing around with RMMV for only about 5 days now or so and have a ton to learn. The game I'm making will combine elements from different types of games and I'm trying to make each system before I start working on the game itself. I consider this system working now. The next step is how to make a squad positioning system so front line units are hit before back line units. Ala Advanced wars.
Just as a tip, we're not supposed to double post. If you have something to add and no one else has posted, you can simply click the Edit button.

Do you have any suggestions for which ones to use? I find the whole process of searching for plugins very difficult. I did end up getting it to work though.
No, I've never made a game with that mechanic. But I Googled "RPG Maker MV catch monster" and saw three or four plugins as well as YouTube video tutorials.
What I ended up doing is setting the monsters rate to Breach to 10%, so the baseline to catch it is 10%. I setup states for different values to change the state rate to breach. Then I setup battle event triggers to apply those states at 70%, 50%,30%, and 10%.
If that system works for you, and you don't mind copying all that into different troops for different enemies, that's awesome. It sounds like you could make that a lot more streamlined using some of Yanfly's Buffs and States notetags, or passive states instead of troop events. Something you might consider looking into.

Also where can I find all the script call options?
You're already posting in the MV Support forum...there's a pinned thread in this forum that says "RPG Maker MV Script Call List."
The next step is how to make a squad positioning system so front line units are hit before back line units.
Yanfly Row Formation.
Just as a tip, we're not supposed to double post. If you have something to add and no one else has posted, you can simply click the Edit button.


No, I've never made a game with that mechanic. But I Googled "RPG Maker MV catch monster" and saw three or four plugins as well as YouTube video tutorials.

If that system works for you, and you don't mind copying all that into different troops for different enemies, that's awesome. It sounds like you could make that a lot more streamlined using some of Yanfly's Buffs and States notetags, or passive states instead of troop events. Something you might consider looking into.


You're already posting in the MV Support forum...there's a pinned thread in this forum that says "RPG Maker MV Script Call List."

Yanfly Row Formation.
Thank you! I will look into Yanfly's buff and states notetags, I have purchased most of the YEP plugins so I probably have it already.

Original thread: https://forums.rpgmakerweb.com/threads/monster-catch-not-working.148694/