AiFlags beta
Interface of @v12-engine/engine/ai
export interface AiFlagsThe 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
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
buyItems?: AiFlag<boolean>;Its heroes buy from shops in reach
defendUsers
defendUsers?: AiFlag<boolean>;Helps its allies, people and computers, where asked (the team's help goal)
groupsFlee
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
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
ignoreInjured?: AiFlag<boolean>;A unit that fled stays out until healed
kite
kite?: AiFlag<boolean>;Ranged units step back from melee they outrun
noMercy
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
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
rebuild?: AiFlag<boolean>;Builds again what it lost
removeInjuries
removeInjuries?: AiFlag<boolean>;The hurt go home to heal between fights
repairStructures
repairStructures?: AiFlag<boolean>;Mends damaged buildings when no enemy reaches them (the build plan's repair)
say
say?: AiFlag<boolean>;Says its lines to its side (the team's say)
scout
scout?: AiFlag<boolean>;Sends a unit to look at the enemy (the scouting's goal)
smartArtillery
smartArtillery?: AiFlag<boolean>;Siege units shoot buildings and stay behind their squad
takeItems
takeItems?: AiFlag<boolean>;Picks up what lies about
targetHeroes
targetHeroes?: AiFlag<boolean>;Hits heroes first among those alike (the micro's targets)
unitsFlee
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
workersFlee?: AiFlag<boolean>;Workers a raid is on walk to a safe base