MV How to add toggle automatic battles to RPG Maker MV?

So i wanted to make a horror game on MV, i used VX Ace for years and now switched to MV. I said i used it for years but yeah i'm not very good at it i just make games for fun lol. Anyways i want to make an option that whenever a fight occurs there can be a auto attack toggle. Like in Persona games, when you press Triangle every character uses melee attack on enemies until you press triangle again. Is there something like this?
not directly, but you can do this indirectly.

you basically make a state with the trait "autobattle" and every battler with that state will change to that.

then you only need a way to apply that state to the entire party and remove it again.
that will likely need a plugin for button events or something like that.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-toggle-automatic-battles-to-rpg-maker-mv.179692/