MV My work on balancing Yanfly's ATB (or CTB)

Hello everyone,

I've decided to post this long (very long) post following an observation I've made in recent years:

Despite the popularity of Yanfly plugins, and the popularity of ATB or CTB style combat systems in famous video game licenses, I have the impression that Yanfly ATB and CTB plugins are often pushed aside in favor of simpler turn-based systems, and (I'm basing this on a feeling and I may be wrong) I have the impression that this is because they have this reputation of being too difficult to balance or parameterize.”

With this post, I wanted to share with you my way of configuring it on my project to make the ATB (or CTB as we'll see these two plugins are very similar) system this combat system.

I'd like to point out that my main language isn't English, and I apologize in advance for a few turns of phrase that may seem inaccurate.


What are we talking about?

  1. ATB = Active time battle

A system popularized by the Final Fantasy series, and used by the most famous: FF4 to 9, for example...
- In battle, a gauge fills up over time, more or less rapidly depending on the actor's agility.
- Once this gauge is full, the actor can perform an action.
- After this action, the bar resets to zero, and then it's back to work...
I won't dwell on the variants (active/semi active, etc... as they are not available with the Yanfly plugin I'll cover in this post).

  1. CTB = Charge turn battle

System popularized mainly by FFX (here called conditional turn battle) but present in other saga (and not to mention that shameful copy/paste of FFX that was LOTR the Third Age, right down to the game's very UI 😛 ).
This system shows us, via a list, the order of the combatants' turns, over a certain number of turns, allowing us to plan our actions more strategically. The FFX system doesn't work on the same principle as Yanfly. I'll put some links at the end of the post for those curious about how FFX's CTB works. Here I'll focus on how Yanfly's CTB works.

The good news is that Yanfly's ATB and CTB work in exactly the same way, apart from the visual “dressing” (the list or the gauges). So we'll be able to process them together...

As opposed to the classic turn-by-turn system (which lets players act once each before recalculating a new running order), we're dealing here with a system based on “ticks”.

  1. Tick ?
Let's give all these words a clear definition for an RPG MAKER user:

Here's a definition written by another person, but which describes it very, very well:

“Tick-based” refers to a system or process that operates on the basis of ticks, which are small units of time. In computing and gaming, a tick is often used to designate a fixed interval of time, usually measured in milliseconds, during which certain operations or updates take place. For example, a game engine might be designed to update the game world and handle user input every 16 milliseconds, which would be called a tick frequency of 60 Hz.”

On ATB / CTB systems, we'll therefore generate “speed” (a point value to be defined) at each system tick.
I prefer them to the classic turn-by-turn system for their greater flexibility (this is obviously subjective).



Plugin settings

I use Yanfly's ATB, but absolutely all the settings I'm about to introduce will work on the CTB too!

  1. Speed per tick :

A value earned per tick, which we'll be able to define in the plugin. By default (when you install the plugin) it is equal to “user.agi”.


AD_4nXd8INii1goPa-ZXPEUHqx720tHEJVdcWS-_gjl4tsDRs_GOlI1YijbAo9hcfmQEmk6Wo_nCZ4_LRxj1zih3ze2qUUB2kAt17ZeCNoWLz22sxQxEYNEDluDFYNyR1rKEVZVKvhxzSeb13w_l94-idX_qIJER


This is already a problem.
In most cases, this value will not be suitable for balancing a game, as it is completely proportional:

an actor with 20 agility will act twice as much in combat as an actor with 10 agility, so will act twice as much. The difference is enormous for small values (imagine: an actor with 5 agility will act 5x more in combat than an actor with 1 agility).

If you go back into an area with mobs that have 10 agility while you have 200, you're going to play 20 times with each character before the enemy can do anything, which is ridiculous.
Obviously, the gap needs to widen with agility, but this evolution needs to be smoother... In a future chapter, I'll give you some ideas for formulas to balance this out.

MY CHANGE :
  • Step 1 : find out the maximum Agility value achievable in your game. Your formulas won't be the same if in your game you can accumulate 999 AGI or only 15 AGI in total.

  • Step 2 : ask yourself: “If a player at maximum level encounters the 1st enemy in the game, how many times can he fill his gauge before the enemy can do so?

I've made a google sheet available to you for this purpose: make a copy if you need one so that you can tinker with it:



In my game, heroes all start with 10 AGI, which increases with character level and equipment to a maximum value of 255 (a number that has no reason to exist other than nostalgia 😀).

  • Step 3: to prevent a hero going from 10 to just 15 agility from increasing his number of turns by 150%, we're going to replace the formula :

Speed per tick =
Code:
user.agi

by

Speed per tick =
Code:
(user.agi + A) / B

with A = 50 and B = 3

Using a formula with these constants, we can increase or reduce the influence of Agility on a player:

Increase A and Agility's influence decreases
Decrease A and Agility's influence increases

B is only there to balance the number of ticks so that they are neither too high nor too low in relation to the speed of play.

I have chosen :

Speed per tick =
Code:
(user.agi + 50) / 3

an actor with an AGI of 255 will be able to execute 5x as many actions as an actor with an AGI of 10.


  1. Initial Speed :

It's simply the initial value of accumulated speed with which each player starts.
2nd problem: it's set to 0, which means that for each fight against the same troop, the turn order of each actor/enemy will be exactly the same (as with a boss, for example), which will lead to redundancy and boredom with the game system...

We'll spice things up with a bit of randomness at the start of each fight (look at FF7 fight videos, for example: the bars are already pre-filled with different random values for each fight).

MY CHANGE :

Code:
Math.random (1) * ((BattleManager.highestBaseAgi() + 50) / 3 * 100) / 3

With this formula, the gauge will be filled randomly for each actor/enemy between 0 and 33%.


  1. Full Gauge :

This is the speed value that must be accumulated by each actor in order to perform an action:

The default value is :
Code:
Math.max(5000, BattleManager.highestBaseAgi() * 100)

it means :
  • Full gauge = 5000
  • Full gauge = 100 x the agility of the fastest actor in the fight (whichever is higher).

In fact, this value only increases the feeling of speed at the start of the game, with a gauge that goes faster and faster (because as agility increases, so does speed and therefore the gauge), but increases the necessary speed once the actor's agility is high, to avoid filling the gauges in a limited number of ticks.



example: (if I leave speed = 'agility by default)

the fastest actor in battle has 10 agility:

Full gauge = Math.max(5000, BattleManager.highestBaseAgi() * 100)
Full gauge = Math.max(5000, 1000)
Full gauge = 5000

It therefore takes 500 ticks (of 10 speed) to fill the gauge (500*10 = 5000).

The actor now has 25 agility:


Full gauge = Math.max(5000, BattleManager.highestBaseAgi() * 100)
Full gauge = Math.max(5000, 2500)
Full gauge = 5000

It therefore takes 200 ticks (of 25 speed) to fill the gauge (200*25 = 5000).

The gauge fills up faster with 25 agility than with 10 agility, so there's a feeling of increased speed in combat.

The actor now has 50 agility:


Full gauge = Math.max(5000, BattleManager.highestBaseAgi() * 100)
Full gauge = Math.max(5000, 5000)
Full gauge = 5000

It therefore takes 100 ticks (of 50 speed) to fill the gauge (100*50 = 5000).

The actor now has 90 agility:


Full gauge = Math.max(5000, BattleManager.highestBaseAgi() * 100)
Full gauge = Math.max(5000, 9000)
Full gauge = 9000

It therefore takes 100 ticks (of 90 speed) to fill the gauge (100*90 = 9000).

Conclusion : We can see that above 50 agility, the number of ticks needed to fill the gauge will always be the same for the fastest player (here 100 ticks), and the number of ticks needed to fill the gauges of all the other players will be relative to the fastest.


This is an good idea, because if we were to set a fixed value, for example.

Full gauge = 5000

Actors with high agility filled their gauge in very few ticks, at completely different speeds between the start of the game and the end:

Example: an actor with 10 agility will fill Full gauge = 5000 in 500 ticks, or about 8.3 seconds (when playing at 60Hz), whereas an actor with 250 agility will fill the same gauge in 20 ticks, or 0.3 seconds (at 60Hz).

This means you can always adapt the perceived speed of gauge filling, depending on the agility of the fighters, without it being too slow at the start OR too fast at the end of the game.

With these elements in hand, you can begin to understand how the system calculates the filling of fighter gauges.

MY CHANGE :

I found the 1st battles a little slow at first, so I changed to :

Full gauge =
Code:
(BattleManager.highestBaseAgi() + 50) / 3 * 100

This formula ensures that the actor with the highest agility fills his ATB gauge in 100 ticks.

All other actors will fill their gauge more slowly, depending on their AGI.

As the value of the gauge increases in proportion to the AGI of the fastest actor, fights will proceed at the same speed, avoiding the problem of the gauge being either painfully slow at the start of the game, or painfully fast at the end.


  1. Charge Gauge :

After choosing an action, but before applying it, a second, shorter gauge fills up: the charge gauge, at the end of which the actor launches his action. Generally speaking, it needs to be proportional to the Full gauge for it to be effective.
In my opinion, it has both an advantage and a disadvantage:

Advantage: it allows you to push your strategy if you want to make skills that interrupt and cancel a skill that was in the charging phase.
Disadvantage: they slow down the pace of combat.

Code:
Math.max(2000, BattleManager.highestBaseAgi() * 20)

on high agility values: Gauge charge = 20% (or 1 / 5 ) of Full charge

MY CHANGE :

I put zero because I don't like the charge system, I want to be able to launch the skill as soon as I've chosen the action.

If you want to integrate the Charge gauge, always make it a ¼ or ⅕ of the Full Gauge value:

Exemple :

if the Full gauge :
Code:
(BattleManager.highestBaseAgi() + 50) / 3 * 100
then set Charge gauge to
Code:
(BattleManager.highestBaseAgi() + 50) / 3 * 20
= 1 / 5 of Full gauge


NOTE : this is the only parameter not available in CTB


  1. Full Turn :

It's the value of one turn that will be used to generate events in troops that are in the number of turns.

Full Turn :
JavaScript:
Math.min(200, BattleManager.lowestBaseAgi() * 8)

200 ticks or 8x the agility of the actor/enemy with the lower agility (the smaller of the two values is chosen).

Personally, I don't really like this way of calculating, as it makes it a little less easy to manage events in a battle (if you want to do a boss battle with countdown, for example).

MY CHANGE :

Code:
($gameTroop.agility() + 50) / 3 * 100

By setting it in this way, events are triggered according to the average speed of the enemy group, allowing you to modulate countdowns.

example : you set up a battle to be won in 10 turns on the troop event:

If your heroes have an AGI < the average AGI of the enemies, they won't be able to perform 10 actions in those 10 turns. Their chance of winning is reduced.

If your heroes have an AGI > to the average enemy AGI, they will be able to perform more than 10 actions during these 10 turns. their chance of winning is increased.


  1. Rubberband :

AD_4nXcMAwqvxRd5XvbmAAusqenWsIqTpguACPzz3C5-tskPBAC7g-QBe7L-g1arSvW6rasD6JfO3ECUaEM4mifARe5kqUPu1nj40AzI-k40cFBBfhFkyuBkoaMBU5Dt_8I7E5z9KT3HPhsiHT-O02hSauZwx3mH


Ah, this option, activated by default, is demonic. To maintain the interest of the ATB, it's important for me to deactivate this option.

The rubberband acts in such a way as to ensure that no player or enemy can win more or less than 1.5 times as fast as the fastest player. So even two actors with the greatest possible difference in agility that your game allows is 50%.

example : in your game you can allocate stat points to your characters, you have distributed 250 AGI to one actor and 10 AGI to the other.
The rubberband is activated so that the actor with 10 AGI is not too slow compared to the one with 250 AGI. Its gauge will therefore increase to 50% of the Gauge speed of the actor with 250 AGI.
So, to break your game, all we have to do is distribute a maximum number of AGI points to a single character, who will have zero stats but will be very, very, very fast, and will artificially increase all your other actors in which you have no points to put into AGI and maximize attack, defense etc... on top of that, you passively modify the speed of enemies too...

In short, I understand why Yanfly put in this option (to prevent those who make a rough setting of the plugin from ending up with max AGI characters, who attack 50x in a row without anyone else moving...) but it takes all the fun out of this type of mechanic.

MY CHANGE :

I turn off the rubberband.


  1. Turn Time (on Battle Engine Core)

This is the number of ticks a “turn” is worth, so it's on this value that the duration of “buffs / debuffs / tick based regen” will depend if you choose to activate this option in Battle Engine Core.

AD_4nXfLQymiLaHymHN1spbr6ho-SytODADb8sQRiXj9gUEDbmuylC7tTptRaG15rIbbA4BbM53xVB8sTxMreU2d_WstD2E6mDch-fOuv-R8okhTUBkZ35fjBg4t_zD4daJoCEu5Ob-xDdU6Ls9gwfEJke7CNKJy

I recommend activating this option (Timed States and Timed Buffs) to be able to use certain features such as regen or persistent damage based on ticks, the ability to create skills such as Kain's FF4 Leap or more generally skills that require a cast time during which your character's gauge does not move.)

Please note that turn time can only be a number, not a formula based on “$gameParty.agility()” here.

MY CHANGE :

I activate Timed States and Timed Buffs but I leave Turn Time on 100 ticks because I've made sure that the fastest actor's ATB gauge fills up after 100 ticks too, which gives us a simple benchmark: a buff or state turn is calculated according to the speed of the fastest actor. this keeps buffs/states duration constant.



  1. Pré-emptive bonuses and surprise bonuses :

these two parameters are simply the bonus for filling the ATB gauge if the actors or enemies attack by surprise, the gauge will already be 80% full ( + initiative gauge)

0 = 0% of gauge / 1 = 100% of gauge

MY CHANGE :

I lower it to 65% to correlate with randomness, which rises from 0 to 33%:

In a surprise attack, players with the advantage start with a gauge filled between 65 and 98%.


  1. Escape ratio

It's the probability of being able to escape from combat with “flee” command:

Code:
0.125 * $gameParty.agility() / $gameTroop.agility()

(12.5% multiplied by the average agility of your actors divided by the average agility of enemies in combat)

MY CHANGE :

Code:
0.1 * $gameParty.agility() / $gameTroop.agility() + $gameParty.luck()/510

I've added luck to the % escape calculation.
To do this, you need to add a piece of code in a new tiny plugin for use $gameParty.luck() (otherwise this value remains equal to zero, and escape is impossible)

name party_luck.js for exemple :

JavaScript:
//========================================
// mini plugin for use on battle $gameParty.luck()
//========================================
Game_Unit.prototype.luck= function() {
var members = this.members();
if (members.length === 0) {
return 1;
}
var sum = members.reduce(function(r, member) {
return r + member.luk;
}, 0);
return sum / members.length;
};


  1. Escape Boost

This is the boost to the probability of escaping if the escape has previously failed:

the default boost is 0.025, i.e. the probability of escaping is increased by +2.5% with each new attempt.

I haven't changed it.


And CTB ?

Yanfly's ATB and CTB systems are very close in structure.

I don't use the CTB for one simple reason: I don't like the fact that I only see the actor once in the list.
This leads to moments when I guard with an actor because the enemy's attack is imminent, and eventually the actor's portrait ends up moving before the enemy in question (so the guard will be over before the enemy's turn, and I've wasted a turn blocking for nothing).

I find Victor's CTB much more interesting for strategy, but incompatible with the many Yanfly plugins I use...

Conclusion

This is a very long post, I'm aware, but I hope it will be useful to some people on the forum.

If there's a mistake in my post (whether it's a typo or a translation error) please don't hesitate to let me know so I can correct it.

A lots of additional info for those interested :
how to calculate turns in FFX CTB (search "turn" with ctrl+F)
how to calculate turns in FF6 ATB (search "atb" with ctrl+F)
As for the agility part, that's why I've put my actors all at 100 Base agility and it won't change with level up.

It can be changed by stances and or equipment.
As for the agility part, that's why I've put my actors all at 100 Base agility and it won't change with level up.

It can be changed by stances and or equipment.
If it's your game system that's designed not to gain stats with levels, I understand.

On the other hand, you shouldn't make all stats increase except AGI just to “dodge” the balancing concerns of the combat system.

From a player's point of view, I'd find it weird if all my stats increased with my lvl except my AGI...

As far as I'm concerned: you adapt the settings and plugins to the game system you want to create, and not the opposite.
Yeah I ain't "dodging" it, I chose not to increase it as Agi is quite important stat in the game and could lead to unbalancing in combat as it's more then just deciding who goes first.

I've got another stat that doesn't increase and that is Ethereal. (MP)(ETH) It stays at 1,000.

The game works on Using ETH as it's main resource, you also got stances in the game which changes Agility and ETH recovery rate.

Keeping it to 100 allows me to easier adjust game balance and if the agility is a little higher then you'll gain less ETH per turn but if your AGI is too low then you'll gain too much ETH.

And with Stances and Acs adjust agility it can easily be unbalanced if the game had a progressive Agility system.
Awesome mathematical synopsis. Thank you!

Do you know if there is any way to shut off rubber banding in the VisuStella versions of ATB/CTB?
Yeah I ain't "dodging" it, I chose not to increase it as Agi is quite important stat in the game and could lead to unbalancing in combat as it's more then just deciding who goes first.

I've got another stat that doesn't increase and that is Ethereal. (MP)(ETH) It stays at 1,000.

The game works on Using ETH as it's main resource, you also got stances in the game which changes Agility and ETH recovery rate.

Keeping it to 100 allows me to easier adjust game balance and if the agility is a little higher then you'll gain less ETH per turn but if your AGI is too low then you'll gain too much ETH.

And with Stances and Acs adjust agility it can easily be unbalanced if the game had a progressive Agility system.

I'm sorry if we didn't understand each other: I wouldn't say “you're dodging the issue”. I don't know your project. I was talking about designers in general, not you 🙂

If you leave your AGI at 100 because that's your game mechanic, that's ok.

If you want to move your AGI but it's too influential on turn order, you can reduce this influence with a constant in the Yanfly plugin:

For example, if you want to move your AGI but leave it around 100 (e.g. from 50 to 150) and you want agility to have 5x less influence on turn order than it does now: you replace :
Code:
user.agi
with
Code:
75 + user.agi / 5

the higher you raise this constant, or the more you divide the AGI, the less influence it will have on the order of turns 🙂


1730112502888.png



Awesome mathematical synopsis. Thank you!

Do you know if there is any way to shut off rubber banding in the VisuStella versions of ATB/CTB?


Sry @ZimXero , I only use MV, I don't know VisuStella's Plugin, but I think there must be possible 🙂
that shameful copy/paste of FFX that was LOTR the Third Age
Hey! My favorite part of Lord of the Rings was the blitz ball!
Hey! My favorite part of Lord of the Rings was the blitz ball!
Spoiler: screenshots
1730121651889.png

1730121715642.png

Forgive this digression, but it's incredible that EA didn't have more problems, since the link between the two was so obvious... I'm pretty sure that if I look at LOTR's combat formulas, I'll find similar values to FF-X...
Now I'm imagining a team made up of Yuna, Gandalf and Tidus, (and I suggest we throw Tidus at the Balrog!). :LZSlol:

Forgive this digression, but it's incredible that EA didn't have more problems, since the link between the two was so obvious... I'm pretty sure that if I look at LOTR's combat formulas, I'll find similar values to FF-X...
Now I'm imagining a team made up of Yuna, Gandalf and Tidus, (and I suggest we throw Tidus at the Balrog!). :LZSlol:

Isn't that FFX with the LOTR mod on it?

O-o
Forgive this digression, but it's incredible that EA didn't have more problems, since the link between the two was so obvious... I'm pretty sure that if I look at LOTR's combat formulas, I'll find similar values to FF-X...
i thought to myself that that screenshot could not be of a real game that came from EA after FFX. I stand corrected.
I have the impression that Yanfly ATB and CTB plugins are often pushed aside in favor of simpler turn-based systems, and (I'm basing this on a feeling and I may be wrong) I have the impression that this is because they have this reputation of being too difficult to balance or parameterize.”
I always thought it was because Yanfly stopped supporting those plugins. Who wants to use something that might have bugs that the dev won't fix?
I always thought it was because Yanfly stopped supporting those plugins. Who wants to use something that might have bugs that the dev won't fix?
So, not only has support for battle systems been discontinued, but so has Yanfly's entire library, which will remain unchanged. If there were any major bugs, they would have been detected.

personally: I use many (many) plugins (yanfly but also others), I must have at least 150... and no worries while my project is quite advanced.

Yanfly, in this message, explains that if he finds minor bugs, it takes him far too long to fix them compared to the number of people using the plugin in question :

Battle systems are too specialized and not generalized enough. Having the numbers myself, those using specialized battle systems are in a low number count, and they’re often mutually exclusive from each other (DTB vs ATB vs CTB vs STB .

Most of the time, we notice that these systems are simply misused because they're a bit more complicated to balance than simple turn-by-turn.
That's why I wanted to make this post, in the hope of being able to help someone, because I've really enjoyed dissecting these plugins...
So, not only has support for battle systems been discontinued, but so has Yanfly's entire library, which will remain unchanged.
Sorry, I should've been specific. I know the entire library is unsupported now, but I mean those battle system plugins had become unsupported before the actual library had been completed.
Sorry, I should've been specific. I know the entire library is unsupported now, but I mean those battle system plugins had become unsupported before the actual library had been completed.
I understand, I just wanted to point out that it's more a question of time (given the number of users) than of major bugs making them unusable.
I was until recently using the Elle ATB plugin. It worked well until my edits to incorporate things like adding MDF to charge time for spells and other changes made the battles lag horribly.

So I made the switch to YF. I had issues with the charging of skills, which the OP unfortunately omitted, but was able to find a great solution with a minor edit.

Got a few other things I need to test and figure out, but I'm liking the change so far!

Can share the changes I'm looking to add if people here have an interest.
I was until recently using the Elle ATB plugin. It worked well until my edits to incorporate things like adding MDF to charge time for spells and other changes made the battles lag horribly.

So I made the switch to YF. I had issues with the charging of skills, which the OP unfortunately omitted, but was able to find a great solution with a minor edit.

Got a few other things I need to test and figure out, but I'm liking the change so far!

Can share the changes I'm looking to add if people here have an interest.
Hi @Maliki79 , unless I didn't understand what you wanted to call “the charging of skills”, I didn't omit it, I clearly noted :

  1. Charge Gauge :

After choosing an action, but before applying it, a second, shorter gauge fills up: the charge gauge, at the end of which the actor launches his action. Generally speaking, it needs to be proportional to the Full gauge for it to be effective.
In my opinion, it has both an advantage and a disadvantage:

Advantage: it allows you to push your strategy if you want to make skills that interrupt and cancel a skill that was in the charging phase.
Disadvantage: they slow down the pace of combat.

Code:
Math.max(2000, BattleManager.highestBaseAgi() * 20)

on high agility values: Gauge charge = 20% (or 1 / 5 ) of Full charge

MY CHANGE :

I put zero because I don't like the charge system, I want to be able to launch the skill as soon as I've chosen the action.

If you want to integrate the Charge gauge, always make it a ¼ or ⅕ of the Full Gauge value:

Exemple :

if the Full gauge :
Code:
(BattleManager.highestBaseAgi() + 50) / 3 * 100
then set Charge gauge to
Code:
(BattleManager.highestBaseAgi() + 50) / 3 * 20
= 1 / 5 of Full gauge



NOTE : this is the only parameter not available in CTB

it's not a mechanic that particularly interested me in my project because the charge gauge is a fixed left (which works like the ATB gauge) and it couldn't be modulated according to the skills to make some load faster than others.

To make skills that “load” at different speeds, however, there are 2 possible solutions:

1) I went through the states, created a skill that puts a state on the user and at the end of this state, the user launches a skill.

2) you can set a high load gauge in the addon parameters, but manually set a notetag like <ATB charge : 100%> for each skill that doesn't require a load,

EDIT : I just thought of another solution while writing this message:
maybe we could assign each skill a “load value” in a variable and incorporate it into the gauge load calculation?


If you have info to share and tips, I think this is indeed the best place to add it.
Hi @alasth

I didn't mean to insinuate that you completely left it out.
My issue was just as you said: that the charge gauge could not be altered on a per skill/item basis.

Edit: Note skills could affect the gauge, but nothing more than 100% of the normal gauge could be applied to the charging gauge

This is exactly what I fixed yesterday.

I'm at work now so can't see the code, but will share what I did once I'm able to.
(It was a two line edit.)
Hi @alasth

I didn't mean to insinuate that you completely left it out.
My issue was just as you said: that the charge gauge could not be altered on a per skill/item basis.

This is exactly what I fixed yesterday.

I'm at work now so can't see the code, but will share what I did once I'm able to.
(It was a two line edit.)
ah right, sorry, I'll have to use a translator (my level of English is so ...😅 ) that some of the words must get lost 😀
Ah with only two lines? I'm interested, I'm good in math to set up plugins, but not good enough in JS to modify them without fear of breaking everything 😀
I'm curious to see your changes... and do you think they won't affect other plugins? (I use a lot of YF plugins).
So I just took the changes and put them into a plugin snippet.
Attached here.

So to break it down a bit, I took a look at the code and noticed the speed of skills as listed in the DB is what what supposed to be used for this plugin. However, it was a flat number and could only lower the gauge by up to 2000 (which is likely why the charge gauge was set that way by default)

What I did was make it so the speed is now a percentage of whatever the charge gauge is.

In my game, I simply set the charge gauge to be the same as the Speed gauge.

So now, if you want a skill to take an extra turn to cast, set the speed of the skill to 100 in the database.
any number higher than that will make the charge time LONGER and anything lower will make it faster.

Anything less than 1 will be an instant skill.

And if for some reason, you need it even slower than 2000 (20 turns...), I added a note tag where you can put in any integer!

Just use the below tag in skill or item notes:
JavaScript:
<atbSpeed:x>
with x being that integer.
Again, the lower the number, the faster.

Everything else works as before.

Now, what I wanna add is the ability to make another stat influence the charge gauge.
(I'm thinking of using a custom stat from my game for this, so an eval will be needed)

But in the meantime, @alasth , feel free to test this out and see how the plugin might behave with higher numbers or greater differences between agi.

Hope this helps!
So I just took the changes and put them into a plugin snippet.
Attached here.

So to break it down a bit, I took a look at the code and noticed the speed of skills as listed in the DB is what what supposed to be used for this plugin. However, it was a flat number and could only lower the gauge by up to 2000 (which is likely why the charge gauge was set that way by default)

What I did was make it so the speed is now a percentage of whatever the charge gauge is.

In my game, I simply set the charge gauge to be the same as the Speed gauge.

So now, if you want a skill to take an extra turn to cast, set the speed of the skill to 100 in the database.
any number higher than that will make the charge time LONGER and anything lower will make it faster.

Anything less than 1 will be an instant skill.

And if for some reason, you need it even slower than 2000 (20 turns...), I added a note tag where you can put in any integer!

Just use the below tag in skill or item notes:
JavaScript:
<atbSpeed:x>
with x being that integer.
Again, the lower the number, the faster.

Everything else works as before.

Now, what I wanna add is the ability to make another stat influence the charge gauge.
(I'm thinking of using a custom stat from my game for this, so an eval will be needed)

But in the meantime, @alasth , feel free to test this out and see how the plugin might behave with higher numbers or greater differences between agi.

Hope this helps!
with greater control over the load bar, it actually becomes more interesting... can interrupt skills, etc...
I'd be happy to test this and will let you know if I see any odd behavior.
Thanks for sharing @Maliki79 😀

In spite of everything, skill charge times were implemented in the old FF because the game was in active or semi active ATB (the gauge increased while a character chose actions), so during certain charge times, we prepared the actions of the other players,
in ATB with a pause at each action, I'm afraid that this generally slows down the rythm of battle.

That's the biggest flaw of this ATB system, there's no semi-active mode...

Original thread: https://forums.rpgmakerweb.com/threads/my-work-on-balancing-yanflys-atb-or-ctb.172838/