is there a way to speed up the tpbs ?

right , so the time progress fills up at around 4 seconds..... NO MATTER what i do, after a lot of tinkering i found out that if the players agility is 999 all it does is it slows down the enemy to a snails pace... but thats NOT what i want to do ...
is there a way to keep the speed but have the time progress fill up fast! i mean if i ambush the enemy wouldi be able to have a filled up bar?

is there a way to do this ... or does it require a plug in?
You'll need to introduce plugins

rmmz_objects.js

Code:
Game_Battler.prototype.tpbAcceleration = function() {
    const speed = this.tpbRelativeSpeed();
    const referenceTime = $gameParty.tpbReferenceTime();
    return speed / referenceTime;
};

This determines how fast the gauge fills up. You can change the reference time, or increase relative speed, etc.

Probably the easiest way is to just say

Code:
Game_Battler.prototype.tpbAcceleration = function() {
    const speed = this.tpbRelativeSpeed();
    const referenceTime = $gameParty.tpbReferenceTime();
    return speed / referenceTime * 2;
};

To double the speed.

Just copy this into a new file, make your changes, turn it on in the plugin editor, and you should see changes.
I see, thank you for the code. i'm actually taking java courses (started specifically for RPMMZ)
I'll see how to get a plugin up for it . thanks again
oh wow! thanks a lot! that worked! however now i understand how the TBS works in RMMZ basically the enemy's speed is calculated from my gauge.... and ! to make it worse when they are attacking you can't keep using the menu! ...so what i wanted to do doesn't work ... thanks a lot for your help man

basically i wanted the enemies to stay at the same pace and my character to be able to keep attacking as much as their TP gauge allows ... this way they need to balance how much tp they have and how to recover it while fighting ... i thought if i just sped up my time progress gauge then it will be solved ...
little did i know! :elswt:
oh wow! thanks a lot! that worked! however now i understand how the TBS works in RMMZ basically the enemy's speed is calculated from my gauge.... and ! to make it worse when they are attacking you can't keep using the menu! ...so what i wanted to do doesn't work ... thanks a lot for your help man

basically i wanted the enemies to stay at the same pace and my character to be able to keep attacking as much as their TP gauge allows ... this way they need to balance how much tp they have and how to recover it while fighting ... i thought if i just sped up my time progress gauge then it will be solved ...
little did i know! :elswt:

That one is changing it for Game_Battler so all battlers are affected.
You can define it in Game_Actor to override the way acceleration works for actors only. Then it will only affect actors.
thanks man! that worked! althought now i have a problem with poison spells XD
i'll just remove poison and regen stuff for now until i figure out how to figure it out... perhaps a i need to find another way to have an active battle system that has the player going without extra speed ...
thanks man! that worked! althought now i have a problem with poison spells XD
i'll just remove poison and regen stuff for now until i figure out how to figure it out... perhaps a i need to find another way to have an active battle system that has the player going without extra speed ...

Ya you'll have to tie states to something else instead of to the actor. Right now it's based on actor turns I think.
i can't begin to thank you for all your help btw, but i do have one more question... How did you know that
tpbRelativeSpeed() is a function that works in MZ ? i mean where is the Java Script documentation?
how would i know what classes and subclasses and call scripts are there?
In the game folder is a folder called js. It's got 2 folders (lib and plugins) and a few js files. Those js files are the default code that the game compiles in order to run the game.

Be aware most of the code is using older javascript so it's using the prototype syntax instead of making classes so you will need to know how to use both in order to modify it.

While you can modify the base files, it's advisable to overwrite them in a new file and put it in plugins. Files in that folder are compiled after the main files so anything in plugins will overwrite the appropriate stuff in the main files.

Also if you make a plugin command, don't use arrow notation for the function argument. That binds the plugin manager as the context which overrides the plugin command binding the interpreter in PluginManager.callCommand.
In the game folder is a folder called js. It's got 2 folders (lib and plugins) and a few js files. Those js files are the default code that the game compiles in order to run the game.

Be aware most of the code is using older javascript so it's using the prototype syntax instead of making classes so you will need to know how to use both in order to modify it.

While you can modify the base files, it's advisable to overwrite them in a new file and put it in plugins. Files in that folder are compiled after the main files so anything in plugins will overwrite the appropriate stuff in the main files.

Also if you make a plugin command, don't use arrow notation for the function argument. That binds the plugin manager as the context which overrides the plugin command binding the interpreter in PluginManager.callCommand.
Thanks man
I'm now searching for a way to have the game_actors always able to play regardless of what the tpb is doing .
Its looking like a mammoth job.
Just one question out of concern for your time and effort: you said you're taking a *Java* course specifically for MZ, but Java is a completely different thing to Javascript. Did you mean to say Javascript originally or are you actually taking a Java course?
Just one question out of concern for your time and effort: you said you're taking a *Java* course specifically for MZ, but Java is a completely different thing to Javascript. Did you mean to say Javascript originally or are you actually taking a Java course?


Yeah, I'm.taking java script. I actually didnt know that they are different .
But another person pointed it out and luckily I was on java script.
I'm now also doing HTML, and CSS
Not for RPG maker but its now looking like a very good skill to have for website development.

I started with zero knowledge on this matter .

Thanks for your concern man

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-speed-up-the-tpbs.125619/