Save-Point
Battle Swap & Last Resort - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker VX/VXAce (RGSS2/3) Engines (https://www.save-point.org/forum-117.html)
+---- Thread: Battle Swap & Last Resort (/thread-13648.html)



Battle Swap & Last Resort - Ebanyle - 07-23-2026

Battle Swap & Last Resort v 1.0
By Ebanyle
Have you ever felt the need to try another strategy in the middle of the battle, but not being able to pull your warrior or archer into the team? Did you ever helplessly watch a Game Over after your party was beaten to a pulp, even though it has 1001 members who are not currently in battle?
Fear no more! This script will (perhaps) help you!
Features
  • Call members in reserve to battle;
  • Call a reserve member to battle when your current battle members have been defeated;
  • Set a cooldown for swaps;
  • Set a limit for swaps.

How to Use

Paste this below materials but above main. If you have any battle scripts, I recommend you to paste this below them.

Compatibility

This script may not work with any scripts that modify the battle scene, such as HUDs and some battle systems, especially ATB.

It is supposed to be compatible with the following:
  • Yanfly Engine Ace - Battle Engine
  • Theolized Sideview Battlescript
I may or may not be able to make some scripts compatible if asked.

Screenshots
Content Hidden


Code

Github
Content Hidden

Terms of Use
  • You may post this anywhere, edited or not;
  • You may use it in any games, commercial or not;
  • Credit me as Ebanyle;
  • Do not remove the header.

Thanks
  • Yanfly - For some code reference
  • Traverse - Snippet fix for adding members mid-battle in TSBS (from here)

Notes
There is an issue with the battle log's speed (message spawns out too fast iirc), and also with both active and reserve party's windows not being properly centralized (they keep to the right accounting for battle command's window). I unfortunately have not managed to be able to move either at this state.
I kind of f*ed around and found out with whatever methods would work to prevent a Game Over before checking for swaps, which in my case was... aliasing a BattleManager method.
I don't know anything about programming and consider it a miracle I even managed to make such a script, so it's probably really crude even for my own usage within other systems, really. I was just bummed there was no script available with such a concept, which I'm a sucker for. But well! Everyone starts somewhere, right?