For the complete documentation index, see llms.txt. This page is also available as Markdown.

📑MonsterAIUnit

An "AI profile" that can be assigned to a monster—links a state machine (MonsterAIAutomata.txt) to the concrete actions the monster performs in each situation (MonsterAIElement.txt).

Column
Accepted Values
Description

Index

Number, one per AI profile

Identifies this AI profile. This is the number used by MonsterAIGroup.txt to determine which AI a spawned monster will follow.

Name

Text enclosed in quotes

Profile name, used for identification only.

DelayTime

Number, in milliseconds

Interval between AI evaluations for this monster.

Automata

Number corresponding to a Number in MonsterAIAutomata.txt

Specifies which state machine (Idle, Chase, Attack, Flee, etc.) this profile uses.

AIClassNormal

Number corresponding to an Index in MonsterAIElement.txt, or *

Action executed while in the "Normal/Idle" state.

AIClassMove

Number corresponding to an Index in MonsterAIElement.txt, or *

Action executed while in the "Move" state.

AIClassAttack

Number corresponding to an Index in MonsterAIElement.txt, or *

Action executed while in the "Attack" state.

AIClassHeal

Number corresponding to an Index in MonsterAIElement.txt, or *

Action executed while in the "Heal" state.

AIClassAvoid

Number corresponding to an Index in MonsterAIElement.txt, or *

Action executed while in the "Flee/Avoid" state.

AIClassHelp

Number corresponding to an Index in MonsterAIElement.txt, or *

Action executed while in the "Help/Support" state.

AIClassSpecial

Number corresponding to an Index in MonsterAIElement.txt, or *

Action executed while in the "Special" state (summoning, teleporting, switching AI profiles, etc.).

AIClassEvent

Number corresponding to an Index in MonsterAIElement.txt, or *

Action executed while in the "Event" state.

Notes

  • A * in an action slot means that this AI profile does not define a specific action for that state.

  • This file only defines the monster's "toolkit"—MonsterAIAutomata.txt, referenced by Automata, determines when the monster changes states.

  • Regular monsters defined through Monster.txt/standard SetBase\ files do not use this system—it is intended for monsters explicitly configured through MonsterAIGroup.txt (scripted squads, such as Dark Elf invasions).

Last updated