AIBasePlanningSide: Difference between revisions
{{arr|r}}ModEnc:Styleguide, rewrite |
Nighthawk200 (talk | contribs) m template updated |
||
Line 3: | Line 3: | ||
|files={{ini|rules}} | |files={{ini|rules}} | ||
|values=0, 1, 2 | |values=0, 1, 2 | ||
|default= | |default= | ||
|types=[[BuildingTypes]] | |types=[[BuildingTypes]] | ||
| | |ra2=yes | ||
|yr=yes | |||
|rp=yes | |||
}} | }} | ||
In {{ra2}} and {{yr}}, 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 {{TTL|Owner}} set to everything, and the AI isn't particularly known for adhering the {{tt|[[Prerequisite]]s}}. 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 {{tt|{{PAGENAME}}}}. | In {{ra2}} and {{yr}}, 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 {{TTL|Owner}} set to everything, and the AI isn't particularly known for adhering the {{tt|[[Prerequisite]]s}}. 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 {{tt|{{PAGENAME}}}}. |
Revision as of 18:47, 7 February 2007
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.