Skip to content

rules beta ​

Function of @v12-engine/engine/ai

ts
rules: (list: AiRule[], options?: {
    id?: string;
}) => AiModuleDef

The rules module: checks its rules each think, in their order (by priority, then as given), and does each one's action as its condition turns true. Ahead of the modules that act on units, where a brain lists it: what a rule takes is then not given orders by them first. Its id is rules (give id for a second one)