Skip to content

TeamOptions beta ​

Interface of @v12-engine/engine/ai

ts
export interface TeamOptions

How a brain plays with its team (BrainDef.team, the seat's AiOptions.team over it, the team() module's own under both). Data

Members ​

answerPings ​

ts
answerPings?: boolean;

Whether it does what an ally's ping asks besides help (RuleSettings.talk.pings.meanings): a squad sent to fight at an attack (a push), one to hold a place at a defend (a hold), its squads out brought home at a rally (a retreat). Yes when left out

askForHelp ​

ts
askForHelp?: boolean;

Whether it asks its team for help with a raid more than it can meet: yes when left out

defendUsers ​

ts
defendUsers?: boolean;

Whether it helps its allies, people and computers, where asked (the classic Defend Users): yes when left out

gatherFor ​

ts
gatherFor?: number;

Seconds ahead of the proposal the waves of a plan go: 20 when left out

helpOdds ​

ts
helpOdds?: number;

The odds of the fight (Strength.odds) what it sends to help is to have: one in two when left out

lines ​

ts
lines?: Partial<Record<'attacking' | 'helping' | 'retreating', string>>;

Its lines, the game's words: { attacking, helping, retreating }. Nothing is said for a line not given

requestFor ​

ts
requestFor?: number;

Seconds a request stands: 30 when left out

say ​

ts
say?: boolean;

Whether it says a line to its side as it sends a wave, comes to help, falls back: no when left out

together ​

ts
together?: boolean;

Whether its waves wait for the team's plan and go together: no when left out