Automatically Adjust Row

I've been trying to make it so that if the front row (this is with Yanfly's Row plugin) is empty, the other rows automatically move forward instantly. The closest I've come to is making each row state have the notetag (using Yanfly's buffs and states core):


<Custom Turn Start Effect>


$gameParty.updateRows();


$gameTroop.updateRows();


</Custom Turn Start Effect>


But this only makes them adjust at the start of turn, which isn't as immediate as I would like (especially considering that I'm also using Yanfly's CTB plugin, which alters the length until the next turn starts).


Here's the links to the aforementioned plugins:


Buffs and States: http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/


Rows: http://yanfly.moe/2016/01/02/yep-54-row-formation/


CTB: http://yanfly.moe/2015/12/05/yep-38-battle-system-charge-turn-battle/


The one that probably has the least effect on the solution is the CTB plugin.

Original thread: https://forums.rpgmakerweb.com/threads/automatically-adjust-row.63365/