Results 1 to 3 of 3

Thread: and hidden_resource

  1. #1

    Default and hidden_resource

    Im trying to add some units to the game and they need hidden_resource Athens to be recruited... how do i make this happen?? i have tried to type it into the export_descr_buldings file, but the game crashes when i start it, how do i add a hidden_resource like Athens??

  2. #2
    adamus's Avatar Miles
    Join Date
    Aug 2005
    Location
    somewhere in England
    Posts
    333

    Default

    EASY!


    Step 1: Add the hidden resource into descr_regions.txt (in RTW/data/world/base):
    e.g.
    Attica
    Athens
    macedon
    Athenians
    58 177 106
    silver, iron, olive_oil, dogs, pigs, athens
    5
    9
    Step 2: Enter export_descr_buildings.txt (RTW/data), at the top of the file, add athens to the list of hidden resources:
    ;This file is generated from a spreadsheet
    ;Please do not modify by hand




    hidden_resources sparta rome italy athens

    building core_building
    Step 3: In the same file, use the search function (ctrl+f) to find all the entries for whatever unit you wish to make recruitable only in athens and amend every entry for that unit, adding "and hidden_resource athens), e.g. armoured hoplites:
    city_barracks requires factions { barbarian, carthage, numidia, armenia, pontus,, egyptian, greek, roman, }
    {
    capability
    {

    recruit "greek hoplite elite" 0 requires factions { greek_cities, } and hidden_resource athens
    In this case, repeat for the entries in city_barracks and army_barracks



  3. #3
    Seleukos's Avatar Hell hath no fury
    Patrician

    Join Date
    Jan 2005
    Location
    Vancouver, Washington, US
    Posts
    8,866

    Default

    Moved to the workshop.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •