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
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