Results 1 to 5 of 5

Thread: The hidden resources

  1. #1
    ###### of the Gladiators Member neo_deus's Avatar
    Join Date
    Dec 2008
    Location
    Portugal
    Posts
    84

    Default The hidden resources

    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?

  2. #2

    Default Re: The hidden resources

    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
    Last edited by SubRosa; 01-31-2009 at 01:05.
    There are never enough hours in the days of a Queen, and her nights have too many...

    ATW Version 2.5 is now out!

  3. #3
    ###### of the Gladiators Member neo_deus's Avatar
    Join Date
    Dec 2008
    Location
    Portugal
    Posts
    84

    Default Re: The hidden resources

    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?

  4. #4

    Default Re: The hidden resources

    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.
    There are never enough hours in the days of a Queen, and her nights have too many...

    ATW Version 2.5 is now out!

  5. #5
    ###### of the Gladiators Member neo_deus's Avatar
    Join Date
    Dec 2008
    Location
    Portugal
    Posts
    84

    Default Re: The hidden resources

    Quote Originally Posted by SubRosa View Post
    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 <:

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO