Skip to content

AITriggerFailureWeightDelta

The amount added to an AI trigger's weight each time a team of its first TeamType fails.

Specification
Applies to
global rules
File
rules.ini
Section
[General]
Value
floating point
When omitted
-1

Each time a team counts as a failure, this value is added to the current weight of every AI trigger whose first TeamType is the team’s TeamType. Because it is added, only a negative value lowers the weight. The trigger’s history term, scaled by AITriggerTrackRecordCoefficient and counted only when the scaled term is negative, is added at the same time. The new weight is clamped between the trigger’s minimum and maximum weight.

A team counts as a failure when it is removed for any reason without having reached the Success team mission in its script, however well it fought.