No idea if there's a thread for this already, but here goes.
Tactics are things you can add to the bindings of a robot to make it drive a certain way. Its really that simple.
To start, you should probably find the tactics first, so using Notepad++ open up the Tactics.py file.
Also note I'm using the tactics that come with DSL.
When opened, you should see this.
Normally, most of the tactics have green text that tells what it does.
If you read the Green text, you can tell what it is the tactic does, and special stuff you can add to the bindings to make it do special stuff.
Adding them to the bindings are easy.
Merely add,
'tactic':"[Your Tactic of choice]", to the bindings of your robot.
Adding the settings are a little tougher.
As shown above, if your tactic is "Charge," you can add any of the Customizable settings listed below it.
Add them into the bindings as
'[Setting of choice]':[Number of choice],.
What the number means is usually said in the description of the settings.
And believe it or not, that's it.
'tactic':"DumbCharge", Tries to push the opponent without turning. Good for fast robots and boxrushing.
[No Customizations]
'tactic':"Charge", Gives the Ram AI to slow bots.
'ThresholdSpeed':#, At what speed the robot will stop pushing the opponent and back up.
'SightRange':#, How far ahead the robot will see hazards. Useful for keeping them from attacking the pit in the middle of the onslaught arena.
'BackUpTime':#, How long the robot will back up before attacking the opponent. Normally they'll attack when they get a certain distance from the opponent, but if the opponent is chasing them, they'll never stop backing up. One second = 4.
'AimError':#, How precise the aim will be. Higher number = Lower accuracy.
'tactic':"Ram", Gives the Ram AI to fast bots.
It's literally the same as Charge. Just with different default settings to the Settings.
'tactic':"ReverseRam", Makes the robot drive backwards. However, 'turn' and 'throttle' need to be negative amounts.
Otherwise it's Charge and Ram.
'tactic':"Shove", Pushes the other robots across the arena. Good for Plows or Top-pushers. Robots will resort to using this if they lost their weapons. (Assuming you assigned what the weapon is correctly)
[No Customizations]
'tactic':"Reorient", I believe this was an attempt to make robots attack the side of each other, however I have not seen this work yet...
[No Customizations]
The rest of them appear to be defaults that are assigned for KOTH or Tabletop. I still have yet to find out how they work...
Though small, these tactics make fights much more entertaining. If you know what tactics too add to what bot, entire fights could change.
I hope this helps and I apologize if this was hard to follow.
Happy AIing.
tl;dr:
Step 1: Open tactics folder
Step 2: Choose tactic
Step 3: Add tactic and settings to bindings using
'tactic':"[Tactic]", and
'[Setting]':[Number that has to do with setting],