Jump to content

AIBasePlanningSide

From ModEnc²
Revision as of 13:23, 9 September 2006 by en>Renegade ({{arr|r}}ModEnc:Styleguide, rewrite)
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: AIBasePlanningSide
File(s): rules(md).ini
Values: 0, 1, 2
Special Values: None
Applicable to: BuildingTypes


In Red Alert 2 and Yuri's Revenge, every side has its own version of a building, plus some special ones. Due to the wacky way the game is coded, however, many of them have their Template:TTL set to everything, and the AI isn't particularly known for adhering the Prerequisites. This, of course, would lead to the AI building every building of every side, without any order, which is most certainly not desired. To prevent this, the coders introduced AIBasePlanningSide.

AIBasePlanningSide assigns the building it is set on to one specific side's tech tree, which is then followed by the AI.


Value Side
0 Allied (all Template:TTL)
1 Soviet (all Template:TTL)
2 Yuri (all Template:TTL)
3[RockPatch is obsolete; please remove this template from the page] Fourth Side (See here)


AIBasePlanningSide must be set on a BuildingType, or the AI will not be able to use it correctly. As indicated by the table, value "2" is only valid in Yuri's Revenge, and value "3" is only valid in pd's RockPatch.

See also