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

AITriggerSuccessWeightDelta

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: AITriggerSuccessWeightDelta
File(s): rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Applicable to: General


This weighting modifier adjusts the influence coefficient of an AI behavioral trigger upon its successful implementation. A trigger attains completed status when its assigned team executes the script command Script Action 49, 0 - Register Success. The operational consequence manifests as preferential selection bias toward this activated trigger during subsequent AI decision cycles.

Notes

The formulas is as follows:

Historical Trigger Parameter = Historical Success Count * (Historical Success Count / Historical Total Trigger Count - 0.5)

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


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

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

See Also