Skip to content
AOE3 AI Scripting Guide
KB Functions
Initializing search
aoe3mc/ai-guide
Introduction
The XS Language
AI Scripting
Reference
AOE3 AI Scripting Guide
aoe3mc/ai-guide
Introduction
Introduction
Getting Started
The XS Language
The XS Language
Comments
Variables
Operators
Strings
Conditionals
Loops
Labels
Functions
Rules
Includes
Variables Scope
Vectors
Arrays
Good Practices
AI Scripting
AI Scripting
Protounits
Protounits
Functions
Functions
kbGetProtoUnitID
kbProtoUnitAvailable
kbCanPath2
kbGetBuildLimit
kbGetPopCapAddition
kbGetPopSlots
kbGetPopulationSlotsByUnitTypeID
kbGetProtoUnitAICost
kbGetProtoUnitName
kbGetProtoUnitPopCount
kbGetUnitTypeName
kbProtoUnitCanTrain
kbProtoUnitGetAssociatedTech
kbProtoUnitGetBounty
kbProtoUnitGetBuildBounty
kbProtoUnitGetBuildPoints
kbProtoUnitGetGatherRate
kbProtoUnitGetLOS
kbProtoUnitGetPopCap
kbProtoUnitIsType
kbUnitCostPerResource
kbUnitGetTrainPoints
Reference
Reference
The XS Language
The XS Language
Keywords
Functions & Constants
Functions & Constants
Constants
Constants
Ages
Area Group Types
Area Types
Attack Routes
Building Placement
Building Placement
Building Placement Events
Building Placement Preferences
Card Types
Communication
Communication
Chat Verbs
Response Types
Target Strategies
Target Types
Default Escrows
Difficulties
Events
Filename Constants
Game Constants
Game Constants
Game Constants
Game Modes
Game Types
Micromanagement
Movement Types
Nugget Types
Opportunities
Opportunities
Opportunity Sources
Opportunity Types
Opportunity Target Types
Plans
Plans
Plan Types
Plan Types
Plan Types
Attack Strategy Plans
Attack Strategy Plans
Attack Plans
Attack Plans
Attack Route Patterns
Base Attack Mode
Retreat Mode
Build Plans
Build Plans
Build Plan Influence Falloff
Build Wall Plans
Build Wall Plans
Wall Types
Combat Plans
Combat Plans
Attack Route Patterns
Combat Types
Done Modes
Retreat Modes
Target Modes
Defend Plans
Defend Plans
Explore Plans
Explore Plans
Fish Plans
Fish Plans
Gather Goal Plans
Gather Goal Plans
Gather Plans
Gather Plans
Goal Plans
Goal Plans
Goal Types
Goal SubTypes
Target Types
Herd Plans
Herd Plans
Mission Plans
Mission Plans
Mission Types
Native Research Plans (a.k.a. Dance Plans)
Native Research Plans (a.k.a. Dance Plans)
Nugget Plans
Nugget Plans
Progression Plans
Progression Plans
Repari Plans
Repari Plans
Research Plans
Research Plans
Reserve Plans
Reserve Plans
Tower Plans
Tower Plans
Trade Plans
Trade Plans
Train Plans
Train Plans
Transport Plans
Transport Plans
Path Types
Plan States
Plan Events
Player Constants
Player Constants
Player Constants
Player Relations
Resign Types
Resource Gathering
Resource Gathering
Resource Gathering Systems
Resource SubTypes
Gatherer Limit
TargetSelect Factor Constants
Resource Types
Starting Resources
Techs
Techs
Tech Statuses
Trading Post Sockets
Trading Post Sockets
Socket States
Socket Types
Units
Units
Abstract Unit Types
Unit States
Vector Constants
Functions
Functions
XS Functions
KB Functions
AI Functions
Built-in KB Functions
¶
Back to top