Concept: Mid-Battle Party Switch?

I'm considering an RPG that has some serious limitations compared to others, specifically in the sense of reviving Down'd party members. The idea would be that revival spells are extremely MP-intensive, and revival items basically don't exist, so you'd need to go to a town, possibly a temple, and revive them that way.

Obviously, this means that a Four-Man Band is extremely limiting, so you'll probably want multiple party members...but what if you run into a particularly difficult boss battle? Maybe the final boss darn near requires that you have a particularly large and powerful party, much like FF6 or basically any SMT game.

In that case, is it possible to switch party members out in the middle of battle if one gets KO'd without using some kind of plugin? I'd imagine that doing so would require some kind of Common Event and a special Switch Out Skill Type that all party members can use, but I'd like to hear your thoughts. And regardless of whether that's doable Out Of The Box, what about reviving downed party members that aren't "Active" in the middle of battle?
many old games had very limited access to revives and even reviving in town cost money while still only having 3-4 party members. this was often just stressful or annoying to deal with and only resulted in wasted time and dead character just becoming even weaker then the others.

ff6 i almost never used any of the backup party members when fighting the end boss. (get gud scrub)

giving to much access to easy (low cost) heals/revives in battle and being able to switch party members mid-battle makes many games to easy. but giving no access to mid-battle revive can be to punishing.

outside of battle, switching out party members vs allowing easy revives make little difference. tends to be better to allow outside battle revives so that the dead characters dont fall even further behind in exp, becoming even more death prone in the future.

many games with limited consumable items and limited mid-battle revives would just auto revive party members at end of battle (some games giving full heal every fight).

how much access you give to heals/revives can have a major impact on the target audience of your game. i tend to view this as less of a 'game mechanics' and more of a 'intended difficulty' decision.
In that case, is it possible to switch party members out in the middle of battle if one gets KO'd without using some kind of plugin?
I don't see how. The base event commands don't have any concept of the battle party and inactive members, you just have Change Party Member.

I suppose you could get really convoluted and use variables to track inactive party members and event up a menu to select them but...that would take enough time and effort to design that it would be more than worth it to just get, say, the Visustella Party System plugin (I don't know if there are other alternatives).

The other thing to keep in mind when you're talking about a skill activating a common event to do its stuff is that the skill will resolve entirely before calling the common event, so how it looks in the game can get wonky.

And regardless of whether that's doable Out Of The Box, what about reviving downed party members that aren't "Active" in the middle of battle?
Very similarly to above, it would get into a very wonky area. You'd have to have your revival skills/items calling a common event that uses convoluted dialogue choices or an evented menu screen to select its target, and it wouldn't feel like the way other skills work.
In that case, is it possible to switch party members out in the middle of battle if one gets KO'd without using some kind of plugin?

Yep ☺️

It's kind of like you thought...
Give each actor the skill type "Reserved Members" & Add the skills "Swap Out" & "Revive Reserved"
1650777397908.png


Then setup the skills like this...

Swap Out Skill Setup:
1650777437044.png

1650777542325.png

Spoiler: Code for the Common Event "Swap Out"
JavaScript:
$gameMessage.setChoices($gameParty.allMembers().slice($gameParty.maxBattleMembers()).filter(actor => actor.isAppeared()).map(a => a._name), 0, -1);
$gameMessage.setChoicePositionType(1);
$gameMessage.setChoiceCallback(n => {
var userId = $gameParty._actors.indexOf($gameTemp._user._actorId);
var reservedId = ($gameParty.maxBattleMembers()+n);
var temp = $gameParty._actors[userId];
$gameParty._actors[userId] = $gameParty._actors[reservedId];
$gameParty._actors[reservedId] = temp;
SceneManager._scene._statusWindow.refresh();$gamePlayer.refresh();});
this.setWaitMode("message");

regardless of whether that's doable Out Of The Box, what about reviving downed party members that aren't "Active" in the middle of battle?
Revive Reserved Skill Setup:
1650777482638.png

1650777565388.png

Spoiler: Code for the Common Event "Revive Reserved"
JavaScript:
var members = $gameParty.allMembers().slice($gameParty.maxBattleMembers()).filter(actor => actor.isAppeared() && !actor.isAlive()).map(a => a._name);
var IDs = $gameParty.allMembers().slice($gameParty.maxBattleMembers()).filter(actor => actor.isAppeared() && !actor.isAlive()).map(a => a._actorId);
$gameMessage.setChoices(members, 0, -1);
$gameMessage.setChoicePositionType(1);
$gameMessage.setChoiceCallback(n => {
$gameActors.actor(IDs[n]).removeState(1);
$gamePlayer.refresh();});
this.setWaitMode("message");

That does this:
Yep ☺️
The thing with that answer (and I'm not at all demeaning your solution!) is that if you're going to do it all via code in a Script box, you might as well put it into a function in a plugin and eliminate the common events and such 😉

I'm not sure that a given person would consider something an "out of the box" solution if it requires in-depth coding knowledge (or copying from someone with such).

Again, no offense intended, just my musings on the topic. It was certainly generous of you to code that up for this thread (unless you just happened to already have made it for yourself!).
The thing with that answer (and I'm not at all demeaning your solution!) is that if you're going to do it all via code in a Script box, you might as well put it into a function in a plugin and eliminate the common events and such 😉

I'm not sure that a given person would consider something an "out of the box" solution if it requires in-depth coding knowledge (or copying from someone with such).

Again, no offense intended, just my musings on the topic.
lol hey they said no plugin... so I made it work lol
but yeahh... definitely can't be done without code... but still no plugin though lolz 🤣:popcorn:

It was certainly generous of you to code that up for this thread (unless you just happened to already have made it for yourself!).
Thank you. 🙂
Nope definitely just made for this thread.. Although was an interesting challenge though I suppose idk

Definitely could have done more & probably cleaner if I coded a plugin for such purposes though

Made a small adjustment to the revive common event... just to make it a bit more descriptive to the player what's going on
Spoiler: Updated Revive Reserved Party Member - Common Event
1650780289181.png
Looks like this:



@ATT_Turan totally do get your point though 🙂

@Machaeus Sooo to sum up yes it definitely can be done without plugins but does still require code 😉
Dang, okay. Good to know. Thank you for going to such lengths for this question!
Dang, okay. Good to know. Thank you for going to such lengths for this question!
No prob. Happy to help ☺️ 👍
Yep ☺️

It's kind of like you thought...
Give each actor the skill type "Reserved Members" & Add the skills "Swap Out" & "Revive Reserved"
View attachment 224094

Then setup the skills like this...

Swap Out Skill Setup:
View attachment 224096
View attachment 224103
Spoiler: Code for the Common Event "Swap Out"
JavaScript:
$gameMessage.setChoices($gameParty.allMembers().slice($gameParty.maxBattleMembers()).filter(actor => actor.isAppeared()).map(a => a._name), 0, -1);
$gameMessage.setChoicePositionType(1);
$gameMessage.setChoiceCallback(n => {
var userId = $gameParty._actors.indexOf($gameTemp._user._actorId);
var reservedId = ($gameParty.maxBattleMembers()+n);
var temp = $gameParty._actors[userId];
$gameParty._actors[userId] = $gameParty._actors[reservedId];
$gameParty._actors[reservedId] = temp;
SceneManager._scene._statusWindow.refresh();$gamePlayer.refresh();});
this.setWaitMode("message");


Revive Reserved Skill Setup:
View attachment 224098
View attachment 224104
Spoiler: Code for the Common Event "Revive Reserved"
JavaScript:
var members = $gameParty.allMembers().slice($gameParty.maxBattleMembers()).filter(actor => actor.isAppeared() && !actor.isAlive()).map(a => a._name);
var IDs = $gameParty.allMembers().slice($gameParty.maxBattleMembers()).filter(actor => actor.isAppeared() && !actor.isAlive()).map(a => a._actorId);
$gameMessage.setChoices(members, 0, -1);
$gameMessage.setChoicePositionType(1);
$gameMessage.setChoiceCallback(n => {
$gameActors.actor(IDs[n]).removeState(1);
$gamePlayer.refresh();});
this.setWaitMode("message");

That does this:


Yep ☺️

It's kind of like you thought...
Give each actor the skill type "Reserved Members" & Add the skills "Swap Out" & "Revive Reserved"
View attachment 224094

Then setup the skills like this...

Swap Out Skill Setup:
View attachment 224096
View attachment 224103
Spoiler: Code for the Common Event "Swap Out"
JavaScript:
$gameMessage.setChoices($gameParty.allMembers().slice($gameParty.maxBattleMembers()).filter(actor => actor.isAppeared()).map(a => a._name), 0, -1);
$gameMessage.setChoicePositionType(1);
$gameMessage.setChoiceCallback(n => {
var userId = $gameParty._actors.indexOf($gameTemp._user._actorId);
var reservedId = ($gameParty.maxBattleMembers()+n);
var temp = $gameParty._actors[userId];
$gameParty._actors[userId] = $gameParty._actors[reservedId];
$gameParty._actors[reservedId] = temp;
SceneManager._scene._statusWindow.refresh();$gamePlayer.refresh();});
this.setWaitMode("message");


Revive Reserved Skill Setup:
View attachment 224098
View attachment 224104
Spoiler: Code for the Common Event "Revive Reserved"
JavaScript:
var members = $gameParty.allMembers().slice($gameParty.maxBattleMembers()).filter(actor => actor.isAppeared() && !actor.isAlive()).map(a => a._name);
var IDs = $gameParty.allMembers().slice($gameParty.maxBattleMembers()).filter(actor => actor.isAppeared() && !actor.isAlive()).map(a => a._actorId);
$gameMessage.setChoices(members, 0, -1);
$gameMessage.setChoicePositionType(1);
$gameMessage.setChoiceCallback(n => {
$gameActors.actor(IDs[n]).removeState(1);
$gamePlayer.refresh();});
this.setWaitMode("message");

That does this:

I'd like to use this method for a game I'm working on. I did everything and I get an error message(Screenshot). I know this is an old thread that was started by someone else but I searched party swapping mid battle and got here. I want a battle system where you can switch party members in battle. I don't want the main character to be able to swap(I already have a plugin that locks the first actor.)

@Psychoholic42, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


Please make a new thread instead.

Original thread: https://forums.rpgmakerweb.com/threads/concept-mid-battle-party-switch.147025/