New rpgmaker user needs help with skills

Ok so,

Example: I would like this skill to only be successfully casted if the enemy's mp is at a specific number (would be better if it could be multiple specific numbers)

It's an execute type of skill that well executes an enemy if they are at a specific amount of mp

Or another way to approach it that I thought of is to make the enemy turn on a switch to be executed if they're at a specific number of mp and the skill is only able to be used if the execute switch is there
I have absolutely no idea how to do any of this

The closest comparison I could think of is sparing enemies in undertale except the only condition is changing the enemy's mp instead of acting
Hope this makes a sliver of sense
You can try
In the skills damage formula:
b.mp == 123 ? b.mhp : 0

Change 123 to the amount of specific mp
Since you gave the one description as an example, I'm assuming that you want to handle other skills with other effects as well.
unfortunately it doesn't work this way, because there is no one-fits-all solution.

different effects require different solutions, either by damage formula coding like the one above (which can do a lot but not everything and has disadvantages) or by common event or by plugin or by troop event or by state or... and so on.

so either you have to give specific descriptions as to what effect you want (and then get a specific answer for only that), or you would have to work yourself through the tutorials to learn the general uses of common event or other mechanics.
You can try
In the skills damage formula:
b.mp == 123 ? b.mhp : 0

Change 123 to the amount of specific mp
sorry for the late reply but it works
thank you thank you thaank youu for helping <3
Since you gave the one description as an example, I'm assuming that you want to handle other skills with other effects as well.
unfortunately it doesn't work this way, because there is no one-fits-all solution.

different effects require different solutions, either by damage formula coding like the one above (which can do a lot but not everything and has disadvantages) or by common event or by plugin or by troop event or by state or... and so on.

so either you have to give specific descriptions as to what effect you want (and then get a specific answer for only that), or you would have to work yourself through the tutorials to learn the general uses of common event or other mechanics.
thanks for notifying me <3
I have another question if you don't mind answering
Is there a way for the player to see the enemy's stats (hp and mp) mid battle without using plugins? Or is that only a plugin thing?
thanks for notifying me <3
I have another question if you don't mind answering
Is there a way for the player to see the enemy's stats (hp and mp) mid battle without using plugins? Or is that only a plugin thing?
You can do this without a plugin, but it requires some clever eventing. You could pull it off using a little bit of scripting with a troop event, I think.
You can do this without a plugin, but it requires some clever eventing. You could pull it off using a little bit of scripting with a troop event, I think.
Alrighty then, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/new-rpgmaker-user-needs-help-with-skills.152054/