Formar’s ATB Script Issue

I’ve been using Formar’s stamina based ATB script in conjunction with Yanfly’s battle script. It works for the most part but if a character dies or is paralyzed, it’s impossible to escape a battle.

I was trying to find a solution to the problem and I came across a thread that said to add the line “@subject.update_cooldowns” to a certain area of Formar’s script. It seemed to work for others but for me, I get a nomethoderror: undefined method ‘update.cooldowns’ for #<Game_Actor:0xcc0711c>. Anyone know of a solution to this? Thank you.
Because that part is for yanfly skill restrictions.
But if you were to search for those together you might have found the page that was elusively mentioned and found the edit to Fomar's ATB script.

If you were to add in yanfly skill restrictions then it would work. at least the command you mentioned would not cause a crash.

I've tested it and using that line does require the skill restrictions, which apparently has an issue with fomar ATB that nobody has reported as fixed, short of blocking party command selection.

As for the escape, I can't reproduce the issue.
Can you elaborate more on what is happening?

Additionally are you using VX Ace? You're posting in vx ace support thread.
It is RPG Maker VX Ace

Screenshot7: When the purple bars fills up on each player, they make an attempt to run.
However with the original formar script, nothing happens when they fill up if at least one party member is either paralyzed or dead.

Screenshot5: This happens when I put in the revised script and the one you provided.

And btw, I do have the Fomar script below Yanfly's. The script I have is the Yanfly Engine Ace - Ace Battle Engine (v1.22)
As I said screenshot 5 is because you don't have yanfly skill restrictions script in your project.

We can fix the revised script so that screenshot 7 should work by commenting out a few lines.
Go to the revised fomar ATB script and press CTRL+F
type in update_cooldowns
every time you find a place where that is located click on the line and press CTRL+Q
1708264238713.png

The escape will work.

Although it waits for the ATB bar to fill up on all characters.
I followed your directions and everything is pretty much fixed! There's just one little issue and if it can't be helped, it can't be helped. But each party member's ATB bar is not showing anymore. Is there a way to get those back on there?

And thanks a lot for the help you've given so far!
Well, there might be an easier way to deal with this than by commenting lines out.
Just add this scriptlet as a new script in the editor.

Ruby:
class Game_BattlerBase
  def update_cooldowns() end
end

It'll force the BS to call an empty method that won't change the way your battle behaves under the usual conditions.
But each party member's ATB bar is not showing anymore. Is there a way to get those back on there?
I can only assume you have done something else wrong or another script is overwriting it.
The ATB bar works perfectly fine in a demo for me.
I can only assume you have done something else wrong or another script is overwriting it.
The ATB bar works perfectly fine in a demo for me.
I'll play around with it and see if I can get it to show up.

Thanks again, guys!

Original thread: https://forums.rpgmakerweb.com/threads/formars-atb-script-issue.165804/