Jump to content

ParentCountry: Difference between revisions

From ModEnc²
en>DCoder
No edit summary
 
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
{{Flag
Each country in the map file must 'belong' or be associated with a country that already exists in the game - this stops the game getting caught in an infinite loop trying to figure out which country is which as the internal table is defined in the RULES file. Set this to one of the countries from the [Countries] list from the RULES file. This will determine which sidebar the country gets and which units are available to them (in other words, this makes the country behave as if it was a country from a multiplayer game).
|files={{Categ|Maps}}
|values={{Values|string}}
|types={{categ|Countries}}
|ra2=yes
|yr=yes
}}
In a singleplayer (mission) map, new Countries can be defined for the purposes of map scripting, but newly added [[Countries]] in maps must specify which existing Country they mimic, and thus what [[Sides|side]] they belong to. This will also determine which sidebar the country gets when played by a human, and which units are available to them.
 
Set the value to one of the countries from the [Countries] list in [[Rulesmd.ini|Rules(md).ini]].
 
==Note==
In RA2/YR specifically, singleplayer maps use [[Houses]] for such things as the [[Owner]] of pre-placed [[TechnoTypes]] like infantry or buildings, and therefore requires a new house be defined for each new country.

Latest revision as of 10:39, 5 April 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: ParentCountry
File(s): Maps
Values: Strings: Normal text.
Applicable to: Countries


In a singleplayer (mission) map, new Countries can be defined for the purposes of map scripting, but newly added Countries in maps must specify which existing Country they mimic, and thus what side they belong to. This will also determine which sidebar the country gets when played by a human, and which units are available to them.

Set the value to one of the countries from the [Countries] list in Rules(md).ini.

Note

In RA2/YR specifically, singleplayer maps use Houses for such things as the Owner of pre-placed TechnoTypes like infantry or buildings, and therefore requires a new house be defined for each new country.