ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

AITriggerTrackRecordCoefficient

From ModEnc
Jump to navigation Jump to search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: AITriggerTrackRecordCoefficient
File(s): rules(md).ini
Values: Floating point values: Any decimal number (clearer range should be added in Template:Values).
Applicable to: General


When an AI TeamType is dissolved which hasn't completed its task (through the usage of Script Action 49, 0), this value, multiplied by historical success count, is added to the Weight of every AI Trigger using this TeamType as its primary Team. The FailureWeightDelta value is normally negative, thus this effectively reduces the weight and increases the chances of a different trigger being used by the AI, rather than the same one being re-used.

Notes

The formulas is as follows:

Historical Trigger Parameter = Historical Success Count * ((Historical Success Count / Historical Total Trigger Count - 0.5) * [General]AITriggerTrackRecordCoefficient)

Historical Weight Parameter = Min (0.0, Historical Trigger Parameter)


Possible New Weight = Current Weight + Historical Weight Parameter + [General]AITriggerFailureWeightDelta=;

New Weight = The result of clamping the Possible New Weight between the minimum weight and the maximum weight.

See Also