Help with CTB battle system

Hello, I'm using Yanfly's CTB battle system and I was wondering if there would be any way to set up a Persona style "One More" system within it. Basically all I want it to do is check if a party member or enemy is hitting one another with an elemental weakness/critical hit and then not expending their current turn. I also want this to not be repeatable so that you can't just keep hitting the same enemy and getting infinite turns until they're dead, either one extra turn per enemy or just one extra turn per turn.

I was using Dream_X's ITB system which has all this built in, but it's decided to stop working and I'd rather just try get CTB to work since I had some gripes with ITB it and assume it's possible through passive states and is more compliant with the other Yanfly plugins I'm using. I'm very clueless when it comes to Java Script though which is why I'd appreciate some help if anyone is knowledgeable about how I could get this working, if it's even possible at all. Any help is appreciated.
Hmmm, can you use the <After CTB Eval> notetag on your skills for that? Does putting that to 'max' give you a new turn?

You can use conditionals:
if (target.elementRate(this.item().damage.elementId) > 1)
if (target.result().critical = true)

Don't know if it still reads that 'target' though, or if you'll have to check those earlier...

Then in case of those weakness/crit hits you can also put a state on the target that lasts for 1 turn, and put a check in the code that it also checks that the target doesn't have that state for you to gain the benefit of the extra turn.

Haven't tested any of this though, LOOOL

Original thread: https://forums.rpgmakerweb.com/threads/help-with-ctb-battle-system.168161/