Results 1 to 9 of 9

Thread: Retrain without Recruiting?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Retrain without Recruiting?

    I like to tinker with Medieval II, and I had the idea of making units that are recruitable only in specific settlements. For example, for the Spanish faction, instead of recruiting tercio pikemen/musketeers in all settlements, I could recruit the Tercio de Toledo only in Toledo, the Tercio de Lisboa in Lisbon, etc. The problem with such a system is that an army containing these units would have to return to the home settlement to retrain. Would it be possible to manipulate the EDB or descr_mercenaries to allow these units to be retrained back to full strength in any settlement? If this is in the wrong subforum, I apologize. And if this post has appeared multiple times, I blame Firefox.

  2. #2
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Retrain without Recruiting?

    Yes. Just change the maximum amount that can be accumulated to a number less than 1, such as 0.99.
    Code:
    recruit_pool "Men At Arms"  0	 0.99   0.99  0  requires factions { england, } and hidden_resource i1 and hidden_resource i13
    
    .
    You'll never have a full unit but should be able to retrain.

    My post here explains how to set up hidden resource indicators for each region. You'd need to insure all regions except the specified one have a pool like that above, and the specified one has a more normal pool. So let's assume you want "Tercio de Toledo" and have 199 regions, and you only want to recruit it in Toledo. Toledo is specified by the ID (i12, i21). You would need these pools:
    Code:
    ;; Here's the pool for Toledo
    recruit_pool "Tercio de Toledo"  3	 0.5   5  0  requires factions { spain, } and hidden_resource i12 and hidden_resource i21
    ;; And these pools insure that all other regions have a different kind of pool
    recruit_pool "Tercio de Toledo"  0	 0.99   0.99  0  requires factions { spain, } and not hidden_resource i12
    recruit_pool "Tercio de Toledo"  0	 0.99   0.99  0  requires factions { spain, } and hidden_resource i12 and not hidden_resource i21
    The first pool would only be true for Toledo. The second pool would be true for all pools except (i1-i12 i2-12 i3-i12 etc.), and the third one would be true for all those the second one misses, except Toledo. Make sense?

  3. #3

    Default Re: Retrain without Recruiting?

    Yes, that makes a lot of sense. Thank you.
    Last edited by rebelyell2006; September 22, 2009 at 12:49 AM. Reason: new question

  4. #4

    Default Re: Retrain without Recruiting?

    Augustus Lucifer,
    What if I do not go with the il1, il2, etc matrix? What if I just create say 9 hidden resources: "city_of_leon," "city_of_toledo," etc? Will this work:

    Spoiler Alert, click show to read: 

    recruit_pool "Tercio Pikemen1" 0 0.99 0.99 0 requires factions { spain, } and not event_counter maurice_of_nassau 1 and not hidden_resource city_of_leon and hidden_resource city_of_toledo and hidden_resource city_of_pamplona and hidden_resource city_of_lisbon and hidden_resource city_of_zaragoza and hidden_resource city_of_naples and hidden_resource city_of_cordoba and hidden_resource city_of_valencia and hidden_resource city_of_granada

    recruit_pool "Tercio Pikemen2" 0 0.99 0.99 0 requires factions { spain, } and not event_counter maurice_of_nassau 1 and hidden_resource city_of_leon and not hidden_resource city_of_toledo and hidden_resource city_of_pamplona and hidden_resource city_of_lisbon and hidden_resource city_of_zaragoza and hidden_resource city_of_naples and hidden_resource city_of_cordoba and hidden_resource city_of_valencia and hidden_resource city_of_granada

    recruit_pool "Tercio Pikemen3" 0 0.99 0.99 0 requires factions { spain, } and not event_counter maurice_of_nassau 1 and hidden_resource city_of_leon and hidden_resource city_of_toledo and not hidden_resource city_of_pamplona and hidden_resource city_of_lisbon and hidden_resource city_of_zaragoza and hidden_resource city_of_naples and hidden_resource city_of_cordoba and hidden_resource city_of_valencia and hidden_resource city_of_granada

    recruit_pool "Tercio Pikemen4" 0 0.99 0.99 0 requires factions { spain, } and not event_counter maurice_of_nassau 1 and hidden_resource city_of_leon and hidden_resource city_of_toledo and hidden_resource city_of_pamplona and not hidden_resource city_of_lisbon and hidden_resource city_of_zaragoza and hidden_resource city_of_naples and hidden_resource city_of_cordoba and hidden_resource city_of_valencia and hidden_resource city_of_granada

    recruit_pool "Tercio Pikemen5" 0 0.99 0.99 0 requires factions { spain, } and not event_counter maurice_of_nassau 1 and hidden_resource city_of_leon and hidden_resource city_of_toledo and hidden_resource city_of_pamplona and hidden_resource city_of_lisbon and not hidden_resource city_of_zaragoza and hidden_resource city_of_naples and hidden_resource city_of_cordoba and hidden_resource city_of_valencia and hidden_resource city_of_granada

    recruit_pool "Tercio Pikemen6" 0 0.99 0.99 0 requires factions { spain, } and not event_counter maurice_of_nassau 1 and hidden_resource city_of_leon and hidden_resource city_of_toledo and hidden_resource city_of_pamplona and hidden_resource city_of_lisbon and hidden_resource city_of_zaragoza and not hidden_resource city_of_naples and hidden_resource city_of_cordoba and hidden_resource city_of_valencia and hidden_resource city_of_granada

    recruit_pool "Tercio Pikemen7" 0 0.99 0.99 0 requires factions { spain, } and not event_counter maurice_of_nassau 1 and hidden_resource city_of_leon and hidden_resource city_of_toledo and hidden_resource city_of_pamplona and hidden_resource city_of_lisbon and hidden_resource city_of_zaragoza and hidden_resource city_of_naples and not hidden_resource city_of_cordoba and hidden_resource city_of_valencia and hidden_resource city_of_granada

    recruit_pool "Tercio Pikemen8" 0 0.99 0.99 0 requires factions { spain, } and not event_counter maurice_of_nassau 1 and hidden_resource city_of_leon and hidden_resource city_of_toledo and hidden_resource city_of_pamplona and hidden_resource city_of_lisbon and hidden_resource city_of_zaragoza and hidden_resource city_of_naples and hidden_resource city_of_cordoba and not hidden_resource city_of_valencia and hidden_resource city_of_granada

    recruit_pool "Tercio Pikemen9" 0 0.99 0.99 0 requires factions { spain, } and not event_counter maurice_of_nassau 1 and hidden_resource city_of_leon and hidden_resource city_of_toledo and hidden_resource city_of_pamplona and hidden_resource city_of_lisbon and hidden_resource city_of_zaragoza and hidden_resource city_of_naples and hidden_resource city_of_cordoba and hidden_resource city_of_valencia and not hidden_resource city_of_granada


    and

    Spoiler Alert, click show to read: 
    recruit_pool "Tercio Pikemen1" 3 0.50 5.00 0 requires factions { spain, } and not event_coutner maurice_of_nassau 1 and hidden_resource city_of_leon
    recruit_pool "Tercio Pikemen2" 3 0.50 5.00 0 requires factions { spain, } and not event_coutner maurice_of_nassau 1 and hidden_resource city_of_toledo
    recruit_pool "Tercio Pikemen3" 3 0.50 5.00 0 requires factions { spain, } and not event_coutner maurice_of_nassau 1 and hidden_resource city_of_pamplona
    recruit_pool "Tercio Pikemen4" 3 0.50 5.00 0 requires factions { spain, } and not event_coutner maurice_of_nassau 1 and hidden_resource city_of_lisbon
    recruit_pool "Tercio Pikemen5" 3 0.50 5.00 0 requires factions { spain, } and not event_coutner maurice_of_nassau 1 and hidden_resource city_of_zaragoza
    recruit_pool "Tercio Pikemen6" 3 0.50 5.00 0 requires factions { spain, } and not event_coutner maurice_of_nassau 1 and hidden_resource city_of_naples
    recruit_pool "Tercio Pikemen7" 3 0.50 5.00 0 requires factions { spain, } and not event_coutner maurice_of_nassau 1 and hidden_resource city_of_cordoba
    recruit_pool "Tercio Pikemen8" 3 0.50 5.00 0 requires factions { spain, } and not event_coutner maurice_of_nassau 1 and hidden_resource city_of_valencia
    recruit_pool "Tercio Pikemen9" 3 0.50 5.00 0 requires factions { spain, } and not event_coutner maurice_of_nassau 1 and hidden_resource city_of_granada


    to restrict the tercio pike units to just one city while blocking it to all others? Or do I have to use your system to make it work?

  5. #5
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Retrain without Recruiting?

    You can do it like that, the only reason I bring up the above system is because it identifies 199 cities with 21 resources, whereas other methods require more resources per yield. If all you want to do is have those resources though and aren't planning to do that for a bunch of other cities, then it would work fine.

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

    Default Re: Retrain without Recruiting?

    If you don't mind re-starting a campaign, you could do the following instead of looking for the id:

    Put a resource in the "hidden resources" line in the top of EDB called Pike1 or something. Then put this in the building you want:

    recruit_pool "Tercio de Toledo" 3 0.5 5 0 requires factions { spain, } and hidden_resource Pike1
    recruit_pool "Tercio de Toledo" 0 0.99 0.99 0 requires factions { spain, } and not hidden_resource Pike1

    Then go to the Regions.txt and in the resources line of every province you want, add the "Pike1".

    Delete the map.rwm and start a new campaign.
    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).

  7. #7

    Default Re: Retrain without Recruiting?

    Nevermind. I forgot to delete map.rwm and it works now.
    Last edited by rebelyell2006; September 26, 2009 at 09:41 PM. Reason: Didn't work

  8. #8

    Default Re: Retrain without Recruiting?

    I hope you won't mind the double post, but I have a concern about this. When I tested it to see if it would work, I only built one military academy and was thus able to recruit the Tercio de Cordoba pikemen. It did not show the icons for the other Tercio pike units. Will this work like mercenary units, where there won't be a recruitment icon for the units in question, but the option to retrain depleted units?

  9. #9
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Retrain without Recruiting?

    If you can't recruit it, to my knowledge it won't have a pool on the "Recruitment" tab but will still show up on the "Retrain" tab if there's an injured unit of that type in the settlement.

Posting Permissions

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