MZ Need help with either regeneration timing or instant skill use in VisuStella battle system STB/CTB

I'm trying to make a combat system centered around each actor getting a certain amount of energy (MP) each turn and being able to use it both for skills on their turn or saving it to boost other actors' skills (I have a plugin for this and it's not causing the problem).

In order for this to work, I need all skills to be instant use (to be able to use multiple skills in a turn) and also for the MP regeneration to happen when individual actors get a turn. Originally I was using VisuStella STB for this because it has instant use, but the regen for that happens for all actors at once after everyone has acted.

I tried switching to CTB, which does have the right regeneration, but it lacks a built-in Instant function. Trying to use Yanfly Instant Cast with FOSSIL doesn't work; after the first skill use the menu breaks as shown below:
Screenshot 2025-09-20 170411.png
Screenshot 2025-09-20 170535.png

The one on the left is how it should look; the one on the right pops up after skill use. Picking fight just leads to a blank menu.

What I need is either a way to alter when regeneration happens in STB or a way to use an instant skill in CTB. I'd prefer the latter because it has a few other features I'd like to use but I'm not dead set on them.
Hmmm, you could try in STB if you can make it happen at the very end of a battler's turn, so that it kind of looks like it's happening at the start of the next actor turn. I think you can check with like EDIT: BattleManager._actionBattlers[0] if the next dude is actor or enemy and then if actor, give mp to that actor and start a popup. You can use <JS Post-End Action> or something, but you might have to use a switch conditional or whatever to check that the mp gain only happens when you're using your quit action or whatever, not the instants. Or maybe someone else can give you a better solution (there's at least a startInputSTB() method, don't know if you can alias that and make the mp gain in there).

EDIT: Also, not sure how that works with the last dude in the action order (or more specifically the one who starts the next turn, are they defined only later?). You might have to get creative with that. EDIT: Like maybe you can deal with the first dude with <JS Pre-Start Turn> (if actor).

EDIT2: Oh actually that getNextSubject() affects the battle flow. So I think it's instead BattleManager._actionBattlers[0], but yeah, maybe this wasn't as "clean" as I first thought LOL.
Found a solution; I took MP regen off the actors and put it on a state granted by the 'End Turn' skill that only lasts one round. Using CTB, if I give all skills the 100% Bar refill notetag they're functionally instant, but with the state I only get MP before the first skill.

I'll need to come up with some creative solutions if I want to use DOTs at all but at least the system base is working.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-either-regeneration-timing-or-instant-skill-use-in-visustella-battle-system-stb-ctb.180189/