Creating a Single Player Mission
Tips on Attack Scripts (5.11)
- You can execute as many scripts in an objective action as you want. Make sure, however, that your AI base is producing enough units.
- Try to put a few different types of units in your recruit types so they can deal with various threats.
- A few small squads are better than a single big one: the squads will get recruited faster, and the base won't get clogged up with idle units.
- Try to vary the directions of attack trails so they aren't predictable.
- Pacing is everything. Too fast, and the mission becomes impossible; too slow and it can get boring.
- Use ordinal rankings for important squad scripts to make sure they get executed.
Scripting Variables
Each script has a set of variables that are required to execute that script. All scripts are kept in base.x\ai\scripts. You can look in the specific script for its required variables. It's also worth a look at some of the campaign missions for more examples. (Great Battles tend to use a computer personality over manual scripts.)