MissionRule beta
Interface of @v12-engine/engine
ts
export interface MissionRuleA rule of a mission, as the map keeps it and the mission rules pack runs it: when a condition of the computer players' language holds, do its actions. Fires as the condition turns true; once the first time only, ever; with every, again while it holds, at most so often. Asked as a player: whose the units of of: 'mine' are, whose objectives { objective } reads; the first player a person plays when left out
Members
as
ts
as?: PlayerId;The player the condition is asked for
do
ts
do: MissionActionData[];What it does, in order
every
ts
every?: number;Seconds: fired again while its condition holds, at most so often
id
ts
id: string;What the log, the checks and the editor know it by; no two the same
once
ts
once?: boolean;The first time only, ever
when
ts
when: AiConditionData;When it fires: plain data (docs/ai/scripting.md, "Conditions")