AI Orders

An AI order is used for a lance or a lance unit. An order helps guide the AI to do something specific such as attack buildings or move to and stay within a region.

It can be set as a starting order by the lance spawner or, in upcoming releases, an IssueOrder and similar results will be exposed to be used to set orders using triggers.

StayInsideRegion

This order makes the AI go to and stay within a specific region.

PropertyRequiredDefaultDetails
Typetrue-Type of AI order
RegionGuidtrue-UUID of the region to stay within

Example

{
"Type": "StayInsideRegion",
"RegionGuid": "21a03616-c88b-4edd-a9a9-b4dd54b46d6c"
}

MagicKnowledgeByTag

This order allows the AI to granted sight of the specified units by tag. This is often crucial for enemy AI to be aware of the player so they can act/move without being visible to the player.

PropertyRequiredDefaultDetails
Typetrue-Type of AI order
TagstrueSimpleSpecifies the tags of any building or unit that the AI should have knowledge of
Actiontrue-Add or Remove knowledge
MustMatchAllfalsefalseMust all the provided tags be matched? If false (default) then if any are matched then this will be applied

Example

{
"Type": "MagicKnowledgeByTag",
"Action": "Add",
"Tags": ["Player 1"]
}

PrioritiseTaggedUnit

This order forces the AI to priortise certain units by tag. This is required if you wish the AI to attack buildings.

PropertyRequiredDefaultDetails
TypetrueDialogueType of node
Tagstrue-Specifies the tags of any building or unit that the AI should prioritise
Prioritytrue-Priority. The higher the number the higher the priority.
MustMatchAllfalsefalseMust all the provided tags be matched? If false (default) then if any are matched then this will be applied

Example

{
"Type": "PrioritiseTaggedUnit",
"Tags": ["defend_building_3b"],
"Priority": 1
}