[Ace] Altering Yanfly's Free-Turn Battle

Here's the script I'm using -> http://rpgmaker.net/scripts/157/

What it does is change the way combat works, so that instead of each character taking a turn separately, the whole party is given a set number of actions that can be performed each turn; kind of like the AP system in games like Fallout, only it applies to the whole party. The link above does a better job of explaining it.

Anyway. The script calculates the total number of actions based on a bunch of different factors - party size and agility being the major ones. What I want is to ditch all those factors and just have a set number of actions that's defined by an in-game variable, so that no matter how many party members I have or how fast they are, it's always that variable. If it's 3, I get 3 actions. If it's 5, I get 5. And so on.

I initally tried changing

FTB_ACTIONS = /<(?:FTB_ACTIONS|ftb actions):[ ]([\+\-]\d+)>/i
to

FTB_ACTIONS = $game_variables[1]
but it didn't work, and that's... the limit of my RGSS3 knowledge reached.

Any help would be really appreciated 🙂

Original thread: https://forums.rpgmakerweb.com/threads/ace-altering-yanflys-free-turn-battle.16967/