MV Skills that switch actors (Yanfly Party System)

So I am making a Pokemon fangame (not to sell, just as a "me" thing), but it's more of a Pokemon Mystery Dungeon style setting with RPG Maker mechanics. I have Yanfly's Party System Plugin installed, and I was wondering if how I could recreate a few moves using this system.

The main problem I have is I don't know how to make skills change the order of the party. I know it's possible; a game I played called Odyssey of Gianna (not sure if I can link to it, since it contains NSFW subject matter) had certain enemies use skills that could blow a member to the back of the party (or even remove them from the battle entirely), as well as Blow Away and Retreat which have the same effect. I just don't know how to do it.

Here are a few moves in particular I want to recreate:

Baton Pass
Using this skill would send the user to the back of the party. This should be simple enough, but if I could make it so the replacement recieves any buffs or debuffs the user has, that would be a nice bonus.

Ally Switch
Simple effect here, the user switches its position in the party with their ally. I feel this would be the simplest one to implement.

Circle Throw/Dragon Tail
I feel this one wouldn't be too hard either. The attack deals damage and, if the target is an actor, sends them to the back of their party. This is a similar effect to what I have in mind for Baton Pass, too.

So yeah, my problem isn't that my ideas are too complex, it's just that I can't for the life of me figure out how to make skills that affect party order. If I'm missing something (which I probably am), or if it's just not possible with the Yanfly Engine (which I highly doubt since Gianna got it working just fine), feel free to let me know.
I know there is this plugin. Row To define a row of performers
This can do a lot to modify the position.
I know there is this plugin. Row To define a row of performers
This can do a lot to modify the position.
That's not what I'm looking for. I'm looking for a way to change which actor is in a given party position in the middle of battle, similar to the Actor Party Switch plugin, and I want to create a skill that can do this. A row system will not help me here.
If you mean like this, no plugin is needed.
It can use common events to summon an actor when using a skill.
You just go to skill settings and put it into common events to add actors.

This post may help you determine the team leader.
If you mean like this, no plugin is needed.
It can use common events to summon an actor when using a skill.
You just go to skill settings and put it into common events to add actors.


You seem to be confused. I'm not adding anyone that wasn't already in the party, I'm just swapping their positions around.

This post may help you determine the team leader.
That only works when swapping with the leader. What if I want to swap the actors in positions 2 and 3?
Call the SceneManager.push(Scene_Menu) script.
Summons a skill to a common event. But this is not closed. Other menu screens
To do this, to show only certain things, you need to redraw. and yes i can
I will do a menu, only summoning the character switch from the skill. the way you want
I am now doing something else
i'm done It can move rows as soon as it wants.
Change the team leader whenever you want.
To summon from a skill, use the command.
Plugin command

PLK_Partychange open

Download
i'm done It can move rows as soon as it wants.
Change the team leader whenever you want.
To summon from a skill, use the command.
Plugin command

PLK_Partychange open

Download
Thanks for trying to help, but I've already figured out how to switch party members in battle.

Here is the complete code for Ally Switch if anyone wants it.
Code:
//Requires YEP_SkillCore.js and YEP_X_SelectionControl.js

<After Eval>

if(user.isActor()){

  if(target.isActor()){

    $gameParty.swapOrder(user.index(), target.index());

  }

}

</After Eval>



<Select Conditions>

Not User

</Select Conditions>
var a, b
a = $gameParty.members().indexOf($gameActors.actor(1));
b = $gameParty.members().indexOf($gameActors.actor(2));
$gameParty.swapOrder(a, b)

Try this, it will toggle between characters 1 and 2. Press F8 and try to test the changes.
Trying the test again will get the same result.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/skills-that-switch-actors-yanfly-party-system.144036/