MV [SOLVED] YEP Party System Help

So basically I want it to that when it's an Actor's Turn and the Formation Command is used in Battle, that Actor's Turn is then skipped afterwards.

The reason is because im using STB and if the Actor who's Turn it is, is swapped out for a different Actor that happens to have a lower Agility Stat, that swapped in Actor get to Act right away as if they had the Agility of the previous Actor that just got swapped out

So is there a way to make it use up that Turn if the Formation command is used at all?
There's a method called reconstructActions that gets called when you leave the party menu. Did you check if it causes problems if you don't use that (here I commented it out)?

Scene_Party.prototype.commandFinish = function() {
if ($gameParty.inBattle()) {
// $gameParty.reconstructActions();
if (BattleManager._savedActor) {
BattleManager._actorIndex = BattleManager._savedActor.index();
}
}
this.popScene();
};
There's a method called reconstructActions that gets called when you leave the party menu. Did you check if it causes problems if you don't use that (here I commented it out)?

Scene_Party.prototype.commandFinish = function() {
if ($gameParty.inBattle()) {
// $gameParty.reconstructActions();
if (BattleManager._savedActor) {
BattleManager._actorIndex = BattleManager._savedActor.index();
}
}
this.popScene();
};
I removed all of that and it crashed the game when I attempted to use the Formation command so either I misinterpreted what im supposed to do to those lines of code or it just doesnt work?
You mean you removed the whole method? I meant that comment out the one reconstructActions() line like I've done, inside with the //
But yeah, like I said, I haven't tested it.
You mean you removed the whole method? I meant that comment out the one reconstructActions() line like I've done, inside with the //
But yeah, like I said, I haven't tested it.
OH, sorry im not the brightest

But I tried these two and the plugin worked the same as it does normally? I might still be doing this wrong tho as I said im not the brightest...
Yeah, then my suggestion doesn't work, it was more of a guess anyway. I hope someone manages to help you, I've no motivation to try and change that at the moment.
Yeah, then my suggestion doesn't work, it was more of a guess anyway. I hope someone manages to help you, I've no motivation to try and change that at the moment.
All good! Thanks for trying tho!!
So basically I want it to that when it's an Actor's Turn and the Formation Command is used in Battle, that Actor's Turn is then skipped afterwards.

The reason is because im using STB and if the Actor who's Turn it is, is swapped out for a different Actor that happens to have a lower Agility Stat, that swapped in Actor get to Act right away as if they had the Agility of the previous Actor that just got swapped out

So is there a way to make it use up that Turn if the Formation command is used at all?
This is one thing that I found. It can probably done by something like this adding a "Cannot Move" state (like Paralyze) temporarily or using a plugin for custom logic with plugins like Yanfly's YEP Party System, often by triggering a Script Call or adding a state that consumes the turn before the swap. For a standard setup, adding a state with "Cannot Move" and "Turn Skip" enabled to the actor's skill/item works, while for complex systems (like Yanfly's ATB/ST😎, you'll need a plugin command or script to ensure the turn is used up before the new actor acts. Mess around with something like this and hopefully it works so good luck!

Method 1: Using a "Cannot Move" State (Standard/Basic)
  1. Create a State: In the Database, go to States and create a new State (e.g., "Formation Turn Used").
  2. Set State Effects: In the "Effects" tab, add an "Add State" effect for the actor to apply the "Formation Turn Used" state to themselves.
  3. Configure the State: In the State's settings, under "Restrictions," check "Cannot Move" and potentially "Turn Skip" if available/needed for your system.
  4. Apply via Skill/Item: Make the Formation command a Skill or Item. In its effects, use "Add State" to apply the "Formation Turn Used" state to the User.
  5. Add Plugin Command (If Using Yanfly): If using Yanfly's Engine, you might need a plugin command to remove the "Cannot Move" state immediately after the swap but after the turn is consumed, or add a specific state that does this.
This is one thing that I found. It can probably done by something like this adding a "Cannot Move" state (like Paralyze) temporarily or using a plugin for custom logic with plugins like Yanfly's YEP Party System, often by triggering a Script Call or adding a state that consumes the turn before the swap. For a standard setup, adding a state with "Cannot Move" and "Turn Skip" enabled to the actor's skill/item works, while for complex systems (like Yanfly's ATB/ST😎, you'll need a plugin command or script to ensure the turn is used up before the new actor acts. Mess around with something like this and hopefully it works so good luck!

Method 1: Using a "Cannot Move" State (Standard/Basic)
  1. Create a State: In the Database, go to States and create a new State (e.g., "Formation Turn Used").
  2. Set State Effects: In the "Effects" tab, add an "Add State" effect for the actor to apply the "Formation Turn Used" state to themselves.
  3. Configure the State: In the State's settings, under "Restrictions," check "Cannot Move" and potentially "Turn Skip" if available/needed for your system.
  4. Apply via Skill/Item: Make the Formation command a Skill or Item. In its effects, use "Add State" to apply the "Formation Turn Used" state to the User.
  5. Add Plugin Command (If Using Yanfly): If using Yanfly's Engine, you might need a plugin command to remove the "Cannot Move" state immediately after the swap but after the turn is consumed, or add a specific state that does this.
This sounds like it would work but I have a problem, I dont know how to make the Formation command into a Skill? I tried making a Skill that runs a Common Event that would then run the Plugin Command that would open the Party Menu like the Formation command but when used in Battle it doesnt work...

It only seems to work correctly when in the Party Command Window like with Fight and Escape pictured below, like how the Plugin normally allows, but maybe there's some code or something that can be added to the Plugin that would run something similar to what you suggested after the command is finished?

Screenshot 2026-01-11 133548.png
Where's the second?

  1. Set State Effects: In the "Effects" tab, add an "Add State" effect for the actor to apply the "Formation Turn Used" state to themselves.
States dont have effects and are incapable of triggering an add state effect

  1. Apply via Skill/Item: Make the Formation command a Skill or Item. In its effects, use "Add State" to apply the "Formation Turn Used" state to the User.
the formation is in the party window. making it into a skill would require knowing JS, and at that point the question wouldnt have been asked.

@Twig_the_Blue_Pikmin
try this as a plugin below the party system one and should consume the actor's turn.
Code:
(() => {
Scene_Party.prototype.commandFinish = function() {
    if ($gameParty.inBattle()) {
      $gameParty.reconstructActions();
      if (BattleManager._savedActor) {
        BattleManager._actorIndex = BattleManager._savedActor.index();
        BattleManager.startATBAction(BattleManager._savedActor);
      }
    }
    this.popScene();
};
})();
Where's the second?


States dont have effects and are incapable of triggering an add state effect


the formation is in the party window. making it into a skill would require knowing JS, and at that point the question wouldnt have been asked.

@Twig_the_Blue_Pikmin
try this as a plugin below the party system one and should consume the actor's turn.
Code:
(() => {
Scene_Party.prototype.commandFinish = function() {
    if ($gameParty.inBattle()) {
      $gameParty.reconstructActions();
      if (BattleManager._savedActor) {
        BattleManager._actorIndex = BattleManager._savedActor.index();
        BattleManager.startATBAction(BattleManager._savedActor);
      }
    }
    this.popScene();
};
})();
I tried this but it didnt work, I think it's because this was meant for the ATB Battle System while im using the STB Battle System? I did just try changing it to "startSTBAction" but that didnt change anything so um...
Check out these pictures. In the first pic you make a State
and call it whatever you want. Here I called it Formation Turn Used, In the part that says Restriction: you set it to
cannot move. The area that says Removal Conditions... that's on you how you want the State to be removed after you use the skill. The second pic you go to your Skills tab and make your skill. Here I called it Formation, set the Scope: to The User. In the part that says Effects: just double click in there and you'll see a State tab. Click on that and you will see Add State. click on that and from that list find the new state you added earlier Formation Turn Used from pic 1. Far as effects, animations and all that stuff for the skill... it's up to you on that. This is about close as i can get so hopefully this helps.
I think it's because this was meant for the ATB Battle System
ah, my bad. yeah, i didnt read the first post and thought you were using an ATB system 🤣
probably should have confirmed before setting up an ATB project and testing...

try this:
Code:
(() => {
Scene_Party.prototype.commandFinish = function() {
    if ($gameParty.inBattle()) {
      $gameParty.reconstructActions();
      if (BattleManager._savedActor) {
        BattleManager._actorIndex = BattleManager._savedActor.index();
      }
    }
    this.popScene();
    BattleManager.endSTBAction()
};
})();
ah, my bad. yeah, i didnt read the first post and thought you were using an ATB system 🤣
probably should have confirmed before setting up an ATB project and testing...

try this:
Code:
(() => {
Scene_Party.prototype.commandFinish = function() {
    if ($gameParty.inBattle()) {
      $gameParty.reconstructActions();
      if (BattleManager._savedActor) {
        BattleManager._actorIndex = BattleManager._savedActor.index();
      }
    }
    this.popScene();
    BattleManager.endSTBAction()
};
})();
Ur all good!
And thank you so much! This works exactly how I wanted it to now!!
And thank you so much! This works exactly how I wanted it to now!!
*slight* correction. what i gave would crash the game if you were to use the formation command from the regular menu as opposed to from combat.

Code:
(() => {
Scene_Party.prototype.commandFinish = function() {
    if ($gameParty.inBattle()) {
      $gameParty.reconstructActions();
      if (BattleManager._savedActor) {
        BattleManager._actorIndex = BattleManager._savedActor.index();
      }
    }
    this.popScene();
    if ($gameParty.inBattle())
        BattleManager.endSTBAction();
};
})();
*slight* correction. what i gave would crash the game if you were to use the formation command from the regular menu as opposed to from combat.

Code:
(() => {
Scene_Party.prototype.commandFinish = function() {
    if ($gameParty.inBattle()) {
      $gameParty.reconstructActions();
      if (BattleManager._savedActor) {
        BattleManager._actorIndex = BattleManager._savedActor.index();
      }
    }
    this.popScene();
    if ($gameParty.inBattle())
        BattleManager.endSTBAction();
};
})();
Oh oop, well that's good you caught that! Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/solved-yep-party-system-help.181810/