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

AIBasePlanningSide

From ModEnc
Revision as of 18:47, 7 February 2007 by Nighthawk200 (talk | contribs) (template updated)
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: AIBasePlanningSide
File(s): rules(md).ini
Values: 0, 1, 2
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