Hi neo_deus, nice to see you.
Hidden resources are assigned to each individual region in RTW\Data\World\Maps\Base\Descr_Regions.txt, like this:
Code:
Tritonia
Triton
greek_cities
Tritonians
33 180 188
slaves, elephants, camels, wild_animals, grain, (add resource here)
5
6
Then they have to be added to RTW\Data\Export_Descr_Buildings.txt, up at the top in the "hidden_resources" line (remember to delete map.rwm afterward, otherwise your changes to Descr_Regions will not take effect).
Each region contains only one city, and whoever controls that city has ownership of the region. So if a faction owns that city, they can recruit units requiring that hidden resource. It does not matter if other factions have armies in the region. Only that they hold the city.
If you want to make units require a hidden resource to recruit them, just go to their recruitment line(s) in RTW\Data\Export_Descr_Buildings.txt and add in "and hidden_resource x" to the end of the line. Like so:
Code:
recruit "greek hoplite spartan" 0 requires factions { greek_cities, } and hidden_resource sparta
Bookmarks