Results 1 to 7 of 7

Thread: Units becoming Obsolete

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Chevalier IX's Avatar Primicerius
    Join Date
    May 2007
    Location
    United States,Oregon
    Posts
    3,150

    Default Units becoming Obsolete

    Alright then.I would imagine this might be more time consuming than it would be difficult if it is possible at all,but might anyone know of a way to make certain units unrecruitable and vice versa under certain circumstances(most notably certain years???)?For example,were there to be a mod thet encapsulated the mid renaissance through early modern era,is it possible to make the Armoured nights unrecruitable once we start maiing way into the 1600's,say 1618????any and all feedback will be greatly appreciated,and assistance will most definately be respected,appreciated,and repped

  2. #2

    Default Re: Units becoming Obsolete

    In your export_descr_buildings.txt file, search for Mailed Knights. Once you have found them, you should see something like this:
    Code:
                    recruit_pool "Mailed Knights"  1   0.2   2  0  requires factions { england, scotland, france, hre, spain, portugal, milan, venice, papal_states, sicily, }
    To make them unable to be recruited after gunpowder is discovered, simply add this to the end of the recruitment line:
    Code:
    and not event_counter gunpowder_discovered 1
    The final code should look like:
    Code:
                    recruit_pool "Mailed Knights"  1   0.2   2  0  requires factions { england, scotland, france, hre, spain, portugal, milan, venice, papal_states, sicily, } and not event_counter gunpowder_discovered 1
    Do that for all Mailed Knights entries, and you're done! For a more in-depth analysis of the export_descr_buildings file, look here.

    Coder on Dark Ages: Roman Revival, the alternate history mod for BI.

    Under the Patronage of Augustus Lucifer, member of the House of Ward.

  3. #3
    alhoon's Avatar Comes Rei Militaris
    Join Date
    Apr 2008
    Location
    Chania, Greece
    Posts
    24,233

    Default Re: Units becoming Obsolete

    Yeap, it's easy.
    Open the buildings description. Copy from a gunpowder unit the gunpowder event requirement and paste it to say... mailed knights. Then add a "not" in front of the "and event..." so it's "and not event..." that should do it.

    LoL Commodore We had the same example with the same unit.
    alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
    "Angry Uncle Gordon" describes me well.
    _______________________________________________________
    Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
    Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
    Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).

  4. #4

    Default Re: Units becoming Obsolete

    Woah....creepy. lol

    Coder on Dark Ages: Roman Revival, the alternate history mod for BI.

    Under the Patronage of Augustus Lucifer, member of the House of Ward.

  5. #5
    Chevalier IX's Avatar Primicerius
    Join Date
    May 2007
    Location
    United States,Oregon
    Posts
    3,150

    Default Re: Units becoming Obsolete

    Thanks to both of you for the assistancerep all around for you excellent advice...at the same time for that matter

  6. #6

    Default Re: Units becoming Obsolete

    You could also take a look in the descr_mercenaries.txt you should see some date specific units in thier eg.
    Code:
     
    unit Welsh Longbowmen Mercs exp 0 cost 810 replenish 0.04 - 0.13 max 2 initial 0 start_year 1300
    unit Welsh Spearmen Mercs exp 0 cost 470 replenish 0.06 - 0.18 max 3 initial 2 end_year 1450
    I think that should work...

  7. #7

    Default Re: Units becoming Obsolete

    Real Recruitment has something like this implemented, you could check it out.

Posting Permissions

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