MV Help making a "restrain" skill

I'm currently creating a "Restrain" skill that stops the user and the target from acting for 3 turns. I use states to do it and this system works but I want a visual way to tell that the user actually restrain the target.

What I want to do is when the user is under the "Restrain" state, he goes behind the enemy, and when the state is no longer active, he goes back to it's original position.

I'm using RPG Maker MV and I have Yanfly Plugins like Buff & State Core, Skill Core, Action Sequences, etc... But I don't know how to do it. I searched on Internet for about an hour if someone did something like that, but I personnally didn't found anything close to it. If someone can figure it out, I'm a novice at scripting and Action Sequences.

(PS : Sorry if there is bad English, English is not my native language.)
It's just an idea but maybe you could be able to pull this off with Yanfly Visual State Effects:
You would need two different Staates one for the User and one for the target, both restraining them from performing any actions.
The reason you'd need two is that you will give them different animations via Visual State Effetcs. The one for the User just makes them transparent, so they won't be visible anymore. The one that's inflicted on the target will have the users Battler Sprite as it's animation an place it behind the target.

You would need to make an Individual skill and state every actor who will be able to perform this action.

The problem is, that if an enemy attacks your actor, the Animation will play on the transparent actor, so it won't work, if you want them to be a valid target while restraining.

It's not an elegant way, but i'ts all I can think of right now...

Maybe there is a way to lock an actor at a specific Position on the acrenn, but even So, it might become trickx to change this position with the target.
It's just an idea but maybe you could be able to pull this off with Yanfly Visual State Effects:
You would need two different Staates one for the User and one for the target, both restraining them from performing any actions.
The reason you'd need two is that you will give them different animations via Visual State Effetcs. The one for the User just makes them transparent, so they won't be visible anymore. The one that's inflicted on the target will have the users Battler Sprite as it's animation an place it behind the target.

You would need to make an Individual skill and state every actor who will be able to perform this action.

The problem is, that if an enemy attacks your actor, the Animation will play on the transparent actor, so it won't work, if you want them to be a valid target while restraining.

It's not an elegant way, but i'ts all I can think of right now...

Maybe there is a way to lock an actor at a specific Position on the acrenn, but even So, it might become trickx to change this position with the target.
I see what you mean, but I'll wait for any other solution before trying to do that.
Have you experimented with Yanfly's action sequences? I don't think they'll let a battler be away from their assigned position outside of their turn, but it's worth trying. And they're free plugins.

You could also check out caethyril's StepY plugin, I don't know how much it allows for manipulation of positions while battle is going on.

Aside from that, you'd have to do something along the lines of coucassi's suggestion...it's a pretty complicated idea.
Have you experimented with Yanfly's action sequences? I don't think they'll let a battler be away from their assigned position outside of their turn, but it's worth trying. And they're free plugins.

You could also check out caethyril's StepY plugin, I don't know how much it allows for manipulation of positions while battle is going on.

Aside from that, you'd have to do something along the lines of coucassi's suggestion...it's a pretty complicated idea.
I'm not good with making Action Sequences, and I did research, but I didn't found anything that could help me.

I checked the StepY plugin, but I don't know how it could help me too.
I mean, one of the commands in action sequences is "move". So if you can't understand it well enough to try moving your character and just not moving him back, you're at a very basic level. So my suggestions are:
1 - Change your idea (this is the simplest, fastest thing).
2 - Do some tutorials to learn JavaScript, this will help you with understanding what you can do with script commands, and the mindset of coding will help you with action sequences, which are really quite straightforward compared to actual code. This will also help you understand what coucassi said to try it that way (it will probably work in the end, but is quite complicated).
3 - Hire someone to write you a plugin to do this.
I mean, one of the commands in action sequences is "move". So if you can't understand it well enough to try moving your character and just not moving him back, you're at a very basic level. So my suggestions are:
1 - Change your idea (this is the simplest, fastest thing).
2 - Do some tutorials to learn JavaScript, this will help you with understanding what you can do with script commands, and the mindset of coding will help you with action sequences, which are really quite straightforward compared to actual code. This will also help you understand what coucassi said to try it that way (it will probably work in the end, but is quite complicated).
3 - Hire someone to write you a plugin to do this.
I took the basic attack Action Sequence and modified it to remove everything except the move user, but the user didn't stay behind the enemy.
I think I'll leave my skill like it currently is, and if someone find a way to let the actor behind the enemy I'll add it to my project.
I was testing things with my skill and states, and I somehow found how to make the actor stay behind the enemy. Here is the note tag I put on my skill :

<target action>
move user: target, back, 30
wait for movement
face user: target
attack animation: target
wait for animation
action effect
add state 11: target
add state 12: user
</target action>

Before, my "Restrain" state had the Trait "Hit Rate * 0%", instead I put the restriction "Cannot Move", and now the user stay behind the enemy after the skill is selected.

But there are 2 little problems. First : the user and the target under the "Restrain" state doesn't show their animations when it's not their turn. Second : when the "Restrain" state is removed, the user go back to it's original position, but face the opposite direction.

I don't care about the first problem, but the second is annoying, I tried after puting "add state 12: user" to put "face user: forward" and "face user: backward" but it doesn't seem it impact the Action Sequence.

I would like to solve this problem, because I don't know if the Actions Sequences affect the skill after the turn the states are applied and I don't know how to solve this problem.
I tested the skill with multiple party member, the user goes back to it's orginal position when it's his turn to act (I use Yanfly STB System), not when the state is removed.

That also is a problem I need to fix, but I really don't know how.
When trying random things to fix my positioning issues, I fixed to direction issue but I have another problem.

In battle with one actor, the user goes to it's original position normally, but when there are multiple party members, the user needs to wait one turn if it's an ally turn.

(PS : I'll take a little break for this skill and come back in a few days to work on it because it starts to ennoy me a lot.)

Original thread: https://forums.rpgmakerweb.com/threads/help-making-a-restrain-skill.135178/