PDA

View Full Version : The hidden resources



neo_deus
01-30-2009, 21:33
RTW vanilla has Rome, Sparta and Italy as hidden resources. My question is, how do you define a region as a hidden resource? And when the region is defined, the unit that has it as a pre-requisite can be recruited only when the whole region is owned or one city of the defined region is enough?

A good example of what I'm talking about is LOTR-TW. I remember when I played it that the units available changed according to the regions the cities were. But I'm not certain if that was because of some hidden resource or the "culture thing" (gondorian, ork, rohan, etc) each city had. Does anyone knows or suspects how it works?

SubRosa
01-31-2009, 01:00
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:


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:


recruit "greek hoplite spartan" 0 requires factions { greek_cities, } and hidden_resource sparta

neo_deus
01-31-2009, 02:49
Hello, SubRosa. Long time no see.

So, if a unit requires a hidden resource that is a city, it can be recruited only it the city that is the hidden resource or anywhere? I'm thinking about camel units or elephants... they can only be recruited on regions that have it. Is it the same when it is a city?

SubRosa
01-31-2009, 21:09
It is not that the city itself is a resource. It is just that the name of the city was used for the name of the resource for simplicity's sake is all. A resource can be named anything. All that matters is the region it is assigned to in Descr_Regions. For example, the hidden resource "sparta" is assigned to the regions of Laconia (which has the city of Sparta) and Sicilia_Graecus (Syracuse).

If a unit requires a resource (hidden or not) to recruit it, then you can only recruit the unit from a region that possesses the resource. Following the example above, the Greek Cities can only recruit Spartan Hoplites in the regions of Laconia and Sicilia_Graecus (Sparta and Syracuse), because they require the hidden resource of "sparta", and those are the only two regions with it.

neo_deus
02-01-2009, 00:06
It is not that the city itself is a resource. It is just that the name of the city was used for the name of the resource for simplicity's sake is all.

Yes, I know. Well, this is good news then <: