AI Profiles & AI Protocols
The AI System in Crimson Tactics is based on Nested Behavior Trees. Each unit has an AI Profile which is a behavior tree. Each Node in the AI Profile is a separate Behavior Tree in itself. These nodes are called AI Protocols.

Attack Nearest Unit Protocol
Here is an example of an AI Protocol. This Protocol dictates the unit to seek out the nearest enemy unit and attack it. The behavior tree highlighted in green shows the selected branch of the tree and the corresponding action being executed by the AI.


Behavior with different weapons
The protocol works with both melee and ranged weapons. We can see the same basic attack protocol seeking out the nearest enemy and attacking it with a crossbow.


Field Arts Protocol
We also have Special Ability Protocols that make the unit execute Special Abilities. These Protocols are designed in a way to optimally use the stats of the unit.


Complex Behavior
AI Protocols can be mixed and matched in the AI Profile to create complex behavior.

