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

Difference between revisions of "AIBasePlanningSide"

From ModEnc
Jump to: navigation, search
(Updating)
(Correcting)
Line 3: Line 3:
 
|values={{values|signed integers}}
 
|values={{values|signed integers}}
 
|default=–1
 
|default=–1
|types={{categ|BuildingTypes}}
+
|types={{categ|Technoes}}
 
|ra2=yes
 
|ra2=yes
 
|yr=yes
 
|yr=yes
 
|rp=yes
 
|rp=yes
 
}}
 
}}
 +
 +
<br>
 +
 +
== On All TechnoTypes ==
 +
 +
Influences the [[Cameo Sorting]] order.
 +
 +
== On BuildingTypes only ==
 +
 +
=== Stolen Technology ===
 +
 +
{{Tt|AIBasePlanningSide}} affects the Technology Centers' role in the [[The Infiltration System#ra2yr|Stolen Tech]] logic.
 +
 +
=== AI Base Planning ===
  
 
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|AIBasePlanningSide}}.
 
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|AIBasePlanningSide}}.
Line 34: Line 48:
  
 
{{Tt|AIBasePlanningSide}} ''must'' be set on all [[BuildingTypes]] for the AI to be able to use them correctly.
 
{{Tt|AIBasePlanningSide}} ''must'' be set on all [[BuildingTypes]] for the AI to be able to use them correctly.
 
{{Tt|AIBasePlanningSide}} also affects other aspects of the game, notably [[The Infiltration System#ra2yr|Stolen Tech]]
 

Revision as of 10:57, 27 July 2008

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: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: –1
Applicable to: TechnoTypes:

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes




On All TechnoTypes

Influences the Cameo Sorting order.

On BuildingTypes only

Stolen Technology

AIBasePlanningSide affects the Technology Centers' role in the Stolen Tech logic.

AI Base Planning

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
–1 All sides
0 Allied (all Template:TTL)
1 Soviet (all Template:TTL)
2Yro.png Yuri (all Template:TTL)
3[RockPatch is obsolete; please remove this template from the page] Fourth Side (See here)
AIBasePlanningSide must be set on all BuildingTypes for the AI to be able to use them correctly.