Results 1 to 5 of 5

Thread: Adding a unit thats unique to a province

  1. #1

    Default Adding a unit thats unique to a province

    Hi, im new here first post, just like to say Great site!


    Ive read a tutorial about making units only available to a certain province, like sparta has Spartans.

    But you know that if say, Germania, gets Sparta off the Greeks they cant get Spartans, only the Greeks can right?

    Well i want to do something like that, add a unit to a city that canont be recruited anywhere but there, but ony available to a certain faction?

    How do i do this, or is there no way?
    What pity is it That we can die, but once to serve our country

  2. #2
    Member Member Stuie's Avatar
    Join Date
    Aug 2001
    Location
    Upper Gwynedd, PA
    Posts
    406

    Default Re: Adding a unit thats unique to a province

    In the export_descr_buildings.txt file, you can specify faction and resource needed to build a unit. So:

    recruit "east heavy cataphract2" 0 requires factions { parthia, } and not hidden_resource iran
    recruit "iranian nobles" 0 requires factions { parthia, } and hidden_resource iran
    "east heavy cataphract2" can only be built by Parthia when the "iran" hidden resource is NOT present, and "iranian nobles" can only be built by Parthia when the "iran" hidden resource IS present. No other faction will be able to build either unit.

  3. #3

    Default Re: Adding a unit thats unique to a province

    Thanks, so its just that simple? Just change where appropiate?

    Thanks again
    What pity is it That we can die, but once to serve our country

  4. #4

    Default Re: Adding a unit thats unique to a province

    Have a look at this tutorial for more details:

    How to limit recruitment & construction by area (hidden resources)
    .
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  5. #5

    Default Re: Adding a unit thats unique to a province

    thats it, sorry should of checked the site more thourghly (sp?) first, thanks!
    What pity is it That we can die, but once to serve our country

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