Saturday, August 25, 2012

A Better Way To AI

We want to give as much control as possible when it comes to designing AI.

To make this possible we decided to rewrite the current AI interface.

Now it's possible to define precisely the logical actions of the player AI. Some examples of whats possible include:
(where X is a variable number)
- If Enemy Has X Number of Units Do Action
- If Enemy Has X Number of Structures Do Action
- If Team Has X Number of Air Units Do Action
- If Team Has X Number of a Specific Object Do Action
- If Enemy Builds Specific Object then Do Action
- If Team Builds Any Object then Do Action

Actions include
- Going to a Rally Point
- Attacking Nearest Enemy
- Attacking Nearest Specific Unit or Structure
- Defending Specific Unit or Structure
- Changing AI "Stage" or conditions to act on
- Build Structure or Unit

There's lots of variation as to what's possible and using the Map Editor designing AI is extremely simplified.