Jump to content

AITriggerFailureWeightDelta: Difference between revisions

From ModEnc²
en>DCoder
No edit summary
 
m 6 revisions imported
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
{{Flag
Delta applied to the weighting of an AITriggerType which was not successfully executed by the AI, thus increasing the chance of a different trigger being used again instead of choosing the same one.
|name={{PAGENAME}}
|files={{Categ|ini=rules}}
|types={{Categ|General}}
|values={{values|signed integers}}
|ts=yes
|fs=yes
|ets=yes
|ra2=yes
|yr=yes
|rp=yes
}}
When an AI [[TeamTypes|TeamType]] is dissolved which hasn't completed its task (through the usage of [[ScriptActions#49|Script Action 49, 0]]), this value, multiplied by {{f|AITriggerTrackRecordCoefficient|link}}, is added to the Weight of every AI Trigger using this TeamType as its primary Team. This value is normally negative, thus it 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.
 
See also [[AITriggerTypes#Weights|AI Trigger Type Weights]].

Latest revision as of 21:34, 31 March 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: AITriggerFailureWeightDelta
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


When an AI TeamType is dissolved which hasn't completed its task (through the usage of Script Action 49, 0), this value, multiplied by AITriggerTrackRecordCoefficient, is added to the Weight of every AI Trigger using this TeamType as its primary Team. This value is normally negative, thus it 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.

See also AI Trigger Type Weights.