Autobattle Mod v0.1
I thought it would be a good idea to try to make an autobattle mod because I'm lazy and like watching bots fight!
I've spent about a week working on this and done as much testing as I can on my own, but there may still be bugs/odd behavior I haven't sorted out yet. I'll try to fix any bugs and issues that pop up as soon as possible.
You should only activate this widget in Autobattle games. It is NOT RECOMMENDED for use in regular lobbies.
This is a widget that enforces rules for an opt-in Autobattle mode for 1v1 or Team v Team (FFA not currently supported) battles by:
- Automatically pushing idle combat units toward the enemy’s start box by issuing FIGHT commands.
- Restricting manual control of combat units to factory issued commands only.
- Units will not be able to be manually controlled once they leave the factory.
- The only commands that can be issued to combat units after they’ve been built are STOP, ATTACK, and SELF DESTRUCT.
- Respecting pre-existing queued commands issued by factories and patrol chains.
- If you give a factory a MOVE command, units created in that factory will move where you assigned them to move before automatically pushing forward toward the enemy base.
- If you give a factory a PATROL command, a unit created in that factory will respect the command and continue patrolling until a STOP command is issued.
- Enforcing restrictions on the movement of builders & commanders.
- Builder units and commanders are not allowed to leave the start box at any point during the game while this widget is active.
- A border is drawn around your team’s start box that persists for the duration of the game to indicate the boundaries builders & commanders can stay within.
- If you start a game with overlapping startboxes for both teams, the overlapping area can be accessed by commanders & builders of both teams.
- Automatically self destructing combat units that have reached the opposite edge of the game map if there are no nearby targets to attack.