How do I make AGI boosts have immediate effect?

Okay, AGI boost skill speed set to match guard speed. A1 is using it.
Turn order:
A1 > E1 > A2

How to make A1's AGI boost have immediate effect and jump A2 ahead of E1 during actions instead of waiting for the start of a new turn?

Purpose of such is a combo move between two actors. A supporter and a healer. Meant to skyrocket the speed of the healer for a single turn for clutch healing.
I don't think that is possible by default.
This is how the agility and speed really works:

For each battler, depending on the selected skill to be used, battler-agility and skill speed are added. Then you get a random number bonus that is based on that total.
In the next step, all actions are sorted based on this total of agi+speed+random before any of the actions are processed and their result applied.

You can get the AGI bonus in early to affect any formula that uses AGI within the actions, but I don't think the turn order will be recalculated within the turn.

So you probably have to look for a battle-plugin that changes the battlesystem in a way to allow you to do that.
If you want to re-sort the turn order after a skill has been used, have the skill call a common event that has this bit of script in it:

For RMMV 1.6 or later:
Code:
const battlers = BattleManager._actionBattlers;
battlers.forEach(battler => battler.makeSpeed());
battlers.sort((a, b) => b.speed() - a.speed());

For versions of RMMV prior to 1.6:
Code:
var battlers = BattleManager._actionBattlers;
battlers.forEach(function(battler) {
  battler.makeSpeed();
});
battlers.sort(function(a, b) {
  return b.speed() - a.speed();
});

The turn order is stored as a property in the BattleManager called _actionBattlers, so if you re-sort that array, it will change how turn order plays out.

Here's an example GIF:
Spoiler: Sample
Harold has 10 AGI, Therese has 100 AGI, and the bats have 50 AGI. Without any states, Therese acts first, the bats act next, then Harold acts. On turn 2, Therese uses a skill to add a state to Harold that increases his AGI by 1000%. The skill calls a common event with the code listed above, so the turn order is re-sorted and Harold acts before the bats.
OrdinaryGroundedElephantbeetle-small.gif
Sorry, been away for awhile. Thanks for the help, guys! I greatly appreciate it!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-agi-boosts-have-immediate-effect.105011/