Fomar's ATB Script Additional Attack Bug

Whenever I give an enemy the ability to have additional attacks, the party members randomly get additional attacks as well. Is there any way to keep that from happening?
How did you give the additional attacks? by basic feature?

If I remember the ATB mechanics correctly, you should reduce the points needed for an attack if you want it to be used multiple times in the same time, something like the default attack times would always mess up with the ATB timing.

But please link to the website of the script - I'm not sure if I remember the mechanics correctly, and no one will be able to help you without checking the code for what the script really does.
Fair enough. Here's a link to another thread I posted about another issue that ended up getting solved. The script is in there:


So when I say additional actions, I mean the "Number of Additional Actions" trait the system comes with. If that's not the right way to go, please explain what you meant by "you should reduce the points needed."

Thank you for your help!
please explain what you meant by "you should reduce the points needed."
I checked the script, it calls this the "skill points"

I do not know which numbers you have configured, so I'm using the defaults from the linked script.

You have a maximum stamina of 1000 and every skill has a cost of 1000, resulting in one action per turn.
If you give a skill a skill cost of 500 instead, it could be used twice on a full stamina.
If you have another skill with a skill cost of 200, it could be used five times per turn - or you could use the 500 skill once, and the 200 skills twice, letting the remaining 100 points unused if no skill costs 100.

That is the basic principlke of most ATB/CTB type battlesystems, requiring different skills to have different time points requirements.
I think I get it now. So starting at line 70, I can start adding skills that have a different stamina cost. Looking at the format they have, is this the formula to follow:

# name of skill
SKILL_COST[skill id] = stamina cost

Or is the "# name of skill" part not neccessary?
Anything after a # pound symbol is a mere comment.
Or is the "# name of skill" part not neccessary?
from a programming point of view, # is a comment line and does nothing.

However from a human point of view you should include enough comments to identify where in the skill list you are - it doesn't have to be every skill, but you should at least point out skill groups.
otherwise later balancing the numbers will be much more difficult if you have nothing but hundreds of lines of skill ID numbers.
Looks like it’s working! Somebody should create a database exclusively for this script.

Anyway, thank you so much for the help!

Original thread: https://forums.rpgmakerweb.com/threads/fomars-atb-script-additional-attack-bug.166784/