Modify the way turns work in combat

I want to do two things with my battle system :
- Make it so that only Agility determines the order in which actors attack
- Make it so that once you've selected an action for a character, it immediately executes itself, instead of having to select an action for all of your actors in one go, and then watch them all unfold one after the other (basically make it like Octopath Traveler or a game that has a similar system regarding turns)

Does anyone have a plugin or something that does that ?
what about enemy attacks?
by default both actor and enemy attacks are intermixed depending on agi and skill speed, it only looks like there is a difference because most games give the enemies low agi.

that is also the reason why there is a selection phase (for both actor and enemy) before execution phase, because the speed of the selected skill for both can and will change the order.
for mz, visustella's STB battle system plugin does all of that
but its a paid plugin, you wont be able to get much done in terms of modifying it, and i dont know of any alternatives
what about enemy attacks?
by default both actor and enemy attacks are intermixed depending on agi and skill speed, it only looks like there is a difference because most games give the enemies low agi.

that is also the reason why there is a selection phase (for both actor and enemy) before execution phase, because the speed of the selected skill for both can and will change the order.
So it just isn't possible to make a traditional turn-based combat system ?
Your goal is very possible with a plugin.
I asked because that information is missing to determine what kind of turnbased you want as there are several different implementations based on your first description, like should all actors act before all enemies, or can they be mixed based on agi and other similar differences.
Your goal is very possible with a plugin.
I asked because that information is missing to determine what kind of turnbased you want as there are several different implementations based on your first description, like should all actors act before all enemies, or can they be mixed based on agi and other similar differences.
My bad, I should've clarified things better.

When I said "actors", I meant your party members and the enemies as well. If all enemies have more Agility than your party members, then they'll get to attack first, and I want Agility to be the only thing that determines the battle order, it'll make designing and balancing easier, I think.
My bad, I should've clarified things better.

When I said "actors", I meant your party members and the enemies as well. If all enemies have more Agility than your party members, then they'll get to attack first, and I want Agility to be the only thing that determines the battle order, it'll make designing and balancing easier, I think.
The system you are describing is precisely the definition of ATB. Visustella has a decent version of this, although there are others as well. CTB is essentially instantly calculated ATB order, however it's significant difference is that it does not allow interruption of "long casting" skills, whereas ATB does. CTB allows skills to directly change "position" of characters/creatures within the combat order. ATB changes positions indirectly by slowing or speeding up character/creatures.

In short ATB does it all, but CTB is similar and creates a nuance and atmosphere that some find appealing.
for mz, visustella's STB battle system plugin does all of that
but its a paid plugin, you wont be able to get much done in terms of modifying it, and i dont know of any alternatives
Yes, Yanfly has been the best long-time programmer in the RPG Maker community. If you are unable to make the highly advised commitment to Yanfly's, there is also Fomar's system for individual battle system. To see any turn based action systems working, you might consider using a turn order display plugin like this or that. Yanfly has a free one for MV, but I'm unfamiliar with migrating plugins from MV to MZ.

1738441646311.png
The system you are describing is precisely the definition of ATB. Visustella has a decent version of this, although there are others as well. CTB is essentially instantly calculated ATB order, however it's significant difference is that it does not allow interruption of "long casting" skills, whereas ATB does. CTB allows skills to directly change "position" of characters/creatures within the combat order. ATB changes positions indirectly by slowing or speeding up character/creatures.

In short ATB does it all, but CTB is similar and creates a nuance and atmosphere that some find appealing.
Is it a free plugin ? If so I'll check it out

Yes, Yanfly has been the best long-time programmer in the RPG Maker community. If you are unable to make the highly advised commitment to Yanfly's, there is also Fomar's system for individual battle system. To see any turn based action systems working, you might consider using a turn order display plugin like this. Yanfly has a free one for MV, but I'm unfamiliar with migrating plugins from MV to MZ.

View attachment 330465
I wanted to have a turn order interface anyways, so I'll look it up, thanks
I wanted to have a turn order interface anyways, so I'll look it up, thanks
FWIW, The STB plugin already has one. theres a parameter for whether or not its visible. but as ive already mentioned,
its a paid plugin, you wont be able to get much done in terms of modifying it
past what the parameters allow, youll get limited support for it here.

theres also OTB which was made specifically to emulate octopath systems. i didnt realize it got ported to MZ
While we're here, I just turned on the ATB setting in my Database and now my plugin that removes the Fight/Run menu at the beginning of the battle makes the game crash, I get this error whenever I select an action
1738443108482.png

Does anyone know what's happening ?

Here is the code for my plugin :
(() => {
Scene_Battle.prototype.startPartyCommandSelection = function() {
this.selectNextCommand();
};
const _Window_ActorCommand_makeCommandList = Window_ActorCommand.prototype.makeCommandList;
Window_ActorCommand.prototype.makeCommandList = function() {
_Window_ActorCommand_makeCommandList.call(this);
if (this._actor) {
this.addEscapeCommand();
}
};
Window_ActorCommand.prototype.addEscapeCommand = function() {
this.addCommand(TextManager.escape, "escape", BattleManager.canEscape());
};
const _Scene_Battle_createActorCommandWindow = Scene_Battle.prototype.createActorCommandWindow;
Scene_Battle.prototype.createActorCommandWindow = function() {
_Scene_Battle_createActorCommandWindow.call(this);
this._actorCommandWindow.setHandler("escape", this.commandEscape.bind(this));
};
Scene_Battle.prototype.commandEscape = function() {
BattleManager.processEscape();
this._actorCommandWindow.close();
this._actorCommandWindow.deactivate();
};
})();
View attachment 330466
Does anyone know what's happening ?
One of your calls exceeded scope. I used to do this in Python loops a while back. Try commenting out parts of your code to see what is the source. You might try Starlit's advanced debugger and see if that helps you find the root cause.
One of your calls exceeded scope. I used to do this in Python loops a while back. Try commenting out parts of your code to see what is the source. You might try Starlit's advanced debugger and see if that helps you find the root cause.
Thanks, I forgot about commenting out lol

Also, can anyone explain exactly how ATB works ? What statistics or system does it use to determine who attacks first ? Is it random ?

Original thread: https://forums.rpgmakerweb.com/threads/modify-the-way-turns-work-in-combat.175076/