Trying to make a Grapple/Suplex skill

So, I want to make a wrestler character who has to grab the enemy before performing a wrestling move.

At the moment, I made a Grapple state same as Stun.
There is a Grapple skill that inflicts the state on an enemy.
It also calls a common event that adds a second invisible state to the player that disables the wrestler's other actions except wrestling .

Then I made a Suplex skill that inflicts damage if the enemy has the state via a common event. It calls another common event to release the grapple state

But you can only choose to damage certain numbered enemies via this method, not the enemy directly.

I set up all the different numbered enemies (usually no more than 3 appear in a battle) to recieve the suplex damage (flat number - don't know how to add a formula here but flat damage is fine for this skill) if they have the grapple state - this works just fine so far BUT with the problem you can target any enemy with the Suplex and the grappled enemy dies.

It works, but it's messy that you can target any enemy. Anyone got a workaround, or a cleaner execution?
You can do Control Variables -> Game Data -> Last Target Enemy Index to know who was selected as the skill's target.

But all of this is a very complicated way to try to achieve this using only eventing. This is why there are plugins like VisuStella's Battle Core, which allows you to control targeting of skills.
Just humour me for a second - I find the plugins a bit confusing, and I don't think that one is free. In the future I will use them but I want to see if I can do it with the base game alone for now.

Can you tell me a bit more about that Last enemy Index? I made a variable for the suplex, do you then set it to the enemy number?

I tried it as 1, and indeed it works to do damage to enemy 1, but you can still suplex enemy 2 and it kills enemy 1. It also doesn't display the damage.
Just humour me for a second - I find the plugins a bit confusing, and I don't think that one is free.
Did you look it up? Because it is. 😛

In the future I will use them but I want to see if I can do it with the base game alone for now.
The base game does not have any way to restrict/control who you can select for a skill, aside from the predefined scope of the skill.

I tried it as 1, and indeed it works to do damage to enemy 1, but you can still suplex enemy 2 and it kills enemy 1.
As I said ^

It also doesn't display the damage.
Because you're doing this in a common event, which happens after the skill (and any popups reflecting the result of that skill) has been completed.
Ok cool. Will have a look at the plugin (or save this idea for another game)
You could create an element (grapple) in the Types tab of the database and make all enemies normally 100% resistant to it. However, when they receive the Grapple state they receive a 100% vulnerability to the grapple element while the state is active. To ensure the wrestler continues to wrestle the same target, have the Grapple state wear off after one turn, so that it needs to be re-applied. If you want to have additional effects (like poison or sleep), have the skill call for a common event that checks if the Grapple state is active and, if it is, applies the effect and re-applies the Grapple state.

While this doesn't prevent the character from changing targets, it does incentivize them to continue targeting the same opponent each turn.
I had a look at the battle core and unfortunately I just don't really understand it. However that's on me to move forward as a designer to figure it out when I have time.

Just to flog this dead horse of a question a bit more, I think I'm fine with it the way it is, but can someone tell me if there is a way to not paralyze (stun) a "Grappled" enemy but only have it target the grappler once its grappled? (A bit like in D & D if you get me).
Is the Substitute state the key to this? Or once again do I need to get down with the plugins?
See if we can have another go at this. I've downloaded the Visustella core. But unfortunately I can't see how to set up the skill described in this thread.

As an aside, I see when using the battle core, the enemy glows with the radiation effect when taking its turn? I absolutely don't want that to happen, any idea how to change it back to just a flash?
See if we can have another go at this. I've downloaded the Visustella core. But unfortunately I can't see how to set up the skill described in this thread.
You would give your Suplex skill a Scope of None in the database, and the notetag
Code:
<JS Targets>
targets = $gameTroop.aliveMembers.filter(enemy => enemy.isStateAffected(42));
</JS Targets>
where 42 is the ID of your grapple state.

As an aside, I see when using the battle core, the enemy glows with the radiation effect when taking its turn? I absolutely don't want that to happen, any idea how to change it back to just a flash?
It's very important when installing plugins (especially large ones like VisuStella) to go through all of the plugin parameters. There are plugin parameters that define casting animations for the different types of skill hit types, you can simply remove them.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-a-grapple-suplex-skill.171533/