MV Need help with interactive auto-battler combat, found plugin doesn't work

Hey all!

I've been working on a game with an auto-battler combat system using Yanfly's ATB system. The main idea is that there is only one player character who attacks automatically, meanwhile the player has the opportunity to give it orders, buff it, etc. by pressing some buttons.

I did find an older forum thread with an idea similar like this. Reading the posts I've found out that OP's problem has been solved with a plugin made by @gilgamar. I tried this plugin but somehow it didn't work.

With a little bit of searching I've found another thread with another version of this plugin.
Sadly the newest version is not available anymore and the latest one I've found is 1.05.1 which gives an error message at the start of Playtest.

Spoiler: Error Screenshot
1669319363965.png

I am testing it in a completely new project using only the plugins required for this one. (YEP Core, YEP BattleCore, YEP ATB and this plugin in this exact order.)

I've been trying to follow instructions found in the threads and I am pretty sure that I did everything the same as mentioned.

I would really like to implement a battle system like this, could anyone help me?
Either providing the newest version of gilgamar's plugin if you have it, or solving the error of 1.05.1, or providing an entirely new solution for this idea.

Thank you very much for your time!
The problem is that the poster put that code in spoiler tags, but not in code tags.

That means that the forum converted some of the code in brackets into BBCode. (see how all of the code by the third instance of "line.match" is italicized?)

To get the correct code, press Reply to that post, then copy and paste it from there.

Note that I still wouldn't expect it to work terribly well...the subsequent posts in that thread indicate there were multiple bugs that got fixed, but it doesn't look like the plugin ever reached a final version.

(although the author seems, amongst other things, to have used incorrect version names...the original post says it's 1.10, but it only goes as far as 1.06 in the posts below. There's also mismatched references to 1.5 and 1.05...so there's no way to know which was the final version or how well it ultimately worked)

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-interactive-auto-battler-combat-found-plugin-doesnt-work.152881/