Skip to content

AiFlags beta ​

Interface of @v12-engine/engine/ai

ts
export interface AiFlags

The classic RTS behaviour flags, where the meaning holds, and the kit's own beside them: each a yes or no, a number where one says how much, or a function of the brain

Members ​

allowHomeChanges ​

ts
allowHomeChanges?: AiFlag<boolean>;

Builds its hall again where it can, once its home falls, rather than where it first stood: yes when left out

buyItems ​

ts
buyItems?: AiFlag<boolean>;

Its heroes buy from shops in reach

defendUsers ​

ts
defendUsers?: AiFlag<boolean>;

Helps its allies, people and computers, where asked (the team's help goal)

groupsFlee ​

ts
groupsFlee?: AiFlag<boolean | number>;

A squad falls back from a fight away from home under these odds: true at the odds under it, false never (squads.retreatAt)

heroesFlee ​

ts
heroesFlee?: AiFlag<boolean | number>;

A hero leaves a fight under this share of its health: true at the share under it, false never (micro.heroesFlee)

ignoreInjured ​

ts
ignoreInjured?: AiFlag<boolean>;

A unit that fled stays out until healed

kite ​

ts
kite?: AiFlag<boolean>;

Ranged units step back from melee they outrun

noMercy ​

ts
noMercy?: AiFlag<boolean | number>;

Attacks before its time when the enemy's army as last seen is weak against its own: at these odds (true: 0.75)

randomPaths ​

ts
randomPaths?: AiFlag<boolean>;

Each wave takes a way of its own to the target, by the brain's numbers: straight, or round one side or the other

rebuild ​

ts
rebuild?: AiFlag<boolean>;

Builds again what it lost

removeInjuries ​

ts
removeInjuries?: AiFlag<boolean>;

The hurt go home to heal between fights

repairStructures ​

ts
repairStructures?: AiFlag<boolean>;

Mends damaged buildings when no enemy reaches them (the build plan's repair)

say ​

ts
say?: AiFlag<boolean>;

Says its lines to its side (the team's say)

scout ​

ts
scout?: AiFlag<boolean>;

Sends a unit to look at the enemy (the scouting's goal)

smartArtillery ​

ts
smartArtillery?: AiFlag<boolean>;

Siege units shoot buildings and stay behind their squad

takeItems ​

ts
takeItems?: AiFlag<boolean>;

Picks up what lies about

targetHeroes ​

ts
targetHeroes?: AiFlag<boolean>;

Hits heroes first among those alike (the micro's targets)

unitsFlee ​

ts
unitsFlee?: AiFlag<boolean | number>;

A unit leaves a fight under this share of its health: true at the share under it, false never (micro.unitsFlee)

workersFlee ​

ts
workersFlee?: AiFlag<boolean>;

Workers a raid is on walk to a safe base