Yanfly's Battle System ATB - How to randomize ATB Gauge at start

Hello!


my question may seem very simple for some, but I have tried looking all over for an answer, with no luck.


I am using Yanfly's ATB system, and I'm looking for a way to randomize the ATB gauge of all fighters at the start of a battle, let's say between 0% and 60% of the full gauge.


In the plugins settings, there's an option called "Initial Speed". Yanfly said about it: Under the 'Initial Speed' setting, type in the formula of how you want the ATB gauge to be filled up randomly.


Unfortunately, I know nothing about how eval work. I have tried things like Math.random(0% ,60%) or Math.random(0,300) (I have set turns duration to 300), but it doesn't work


Can anyone help me with this?


Thank you in advance!
Math.randomInt(300) is the code you're after.
This works perfectly!


Thank you very much Victor! 🙂  

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-battle-system-atb-how-to-randomize-atb-gauge-at-start.65953/