Results 1 to 10 of 10

Thread: Province specific troops - hidden resources

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    In the shadows... Member Vuk's Avatar
    Join Date
    Jul 2006
    Location
    R.I.P. TosaInu In the shadows...
    Posts
    5,992

    Default Province specific troops - hidden resources

    Hey all, I noticed that in the EDB file you needed to have hidden resource conditions in order to make something province specific. How do you do that? Is it possible without changing the map? I want to make it that celtic and germanic cultures can recruit frisian and batavian units if they hold the province of the modern day Netherlands. Can that be done just through text files? *crosses fingers*
    Hammer, anvil, forge and fire, chase away The Hoofed Liar. Roof and doorway, block and beam, chase The Trickster from our dreams.
    Vigilance is our shield, that protects us from our squalid past. Knowledge is our weapon, with which we carve a path to an enlightened future.

    Everything you need to know about Kadagar_AV:
    Quote Originally Posted by Kadagar_AV View Post
    In a racial conflict I'd have no problem popping off some negroes.

  2. #2

    Default Re: Province specific troops - hidden resources

    descr_regions.txt in data/maps/world/base/ is your friend. Simply add your hidden resources to your region of choice.

    IIRC in the EDB the appropriate template code is:
    Code:
    recruits "unit name" requires factions { my_faction, } and hidden_resource my_resource
    EDIT: This code goes into the capabilities {} section of a given building. Do note that you can chain multiple conditions (e.g. and hidden_resource my_resource and hidden_resource my_other_resource); however AFAIK the <or> operator appears to be buggy/unreliable. Hence code that reads hidden_resource my_resource or hidden_resource my_other_resource should be split into multiple lines.

    But I haven't looked at the EDB in a looooong time so double check with your EDB of choice to see how its done.
    Last edited by Tellos Athenaios; 01-02-2010 at 11:59.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  3. #3
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Re: Province specific troops - hidden resources

    adding resources does count as a map change (so you'd need to delete map.rwm)
    Not used mods before? Looking for something small and fun?!
    Download the:

  4. #4
    Senior Member Senior Member Ibn-Khaldun's Avatar
    Join Date
    Aug 2007
    Location
    Estonia
    Posts
    5,489
    Blog Entries
    4

    Default Re: Province specific troops - hidden resources

    Don't forget to add your hidden resource in the beginning of export_descr_buildings.txt file as well.

  5. #5
    In the shadows... Member Vuk's Avatar
    Join Date
    Jul 2006
    Location
    R.I.P. TosaInu In the shadows...
    Posts
    5,992

    Default Re: Province specific troops - hidden resources

    Sweet, thanks much! I will give it a try later today and tell you how it turns out!
    Hammer, anvil, forge and fire, chase away The Hoofed Liar. Roof and doorway, block and beam, chase The Trickster from our dreams.
    Vigilance is our shield, that protects us from our squalid past. Knowledge is our weapon, with which we carve a path to an enlightened future.

    Everything you need to know about Kadagar_AV:
    Quote Originally Posted by Kadagar_AV View Post
    In a racial conflict I'd have no problem popping off some negroes.

  6. #6
    In the shadows... Member Vuk's Avatar
    Join Date
    Jul 2006
    Location
    R.I.P. TosaInu In the shadows...
    Posts
    5,992

    Default Re: Province specific troops - hidden resources

    Ok, I tried adding 'Brit' as a hidden resource in the Britannia_Inferior region, and this is what I got:

    Any ideas as to what I did wrong?
    Hammer, anvil, forge and fire, chase away The Hoofed Liar. Roof and doorway, block and beam, chase The Trickster from our dreams.
    Vigilance is our shield, that protects us from our squalid past. Knowledge is our weapon, with which we carve a path to an enlightened future.

    Everything you need to know about Kadagar_AV:
    Quote Originally Posted by Kadagar_AV View Post
    In a racial conflict I'd have no problem popping off some negroes.

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