Results 1 to 9 of 9

Thread: Is it possible to have faction specific mercs?

Hybrid View

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

    Default Is it possible to have faction specific mercs?

    Is it possible to have faction specific mercs?
    How easy is it to affect merc pools via scripts?

    Thanks in advance.

  2. #2
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: Is it possible to have faction specific mercs?

    Code:
    ; pool    --> name of mercenary pool
    ; regions --> list of regions belonging to pool
    ; unit    --> name of mercenary unit
    ;         --> exp X                           --> experience level of mercenary unit
    ;         --> cost X                          --> cost to recruit mercenary unit
    ;         --> replenish X - X                 --> upper and lower bounds on pool replenishment rate
    ;         --> max X                           --> maximum pool size for unit
    ;         --> initial X                       --> initial pool size for unit
    ;         --> {optional} start_year X         --> year that unit becomes available {0 indicates no set start year}
    ;         --> {optional} end_year X           --> last year that unit will be available {0 indicates no set end year}
    ;         --> {optional} religions { A B C }  --> list of faction religions unit is available for {no entries indicates available for all religions}
    ;         --> {optional} crusading            --> {requires one religion to have been specifed} unit only available to crusading/jihad armies
    ;         --> {optional} events { A B C}      --> unit only available after all specified events have occurred, event is a string corresponding to descr_events.txt
    According to descr_mercenaries.txt you can only assign religions.

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  3. #3
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Is it possible to have faction specific mercs?

    The ability 'mercenary_unit' in the EDU which is necessary in to enable the unit to be a mercenary also means that it is automatically available for every faction. Can't have it both ways!










  4. #4
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Is it possible to have faction specific mercs?

    In the alexander expansion of RTW you were able to limit mercenary recruitment to specific faction, I'm guessing that's where the question comes from. I'd be curious if its an unlisted ability that was carried forward.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  5. #5
    Lord Condormanius's Avatar Artifex
    Join Date
    Dec 2006
    Location
    Derby, CT U.S.A.
    Posts
    6,439

    Default Re: Is it possible to have faction specific mercs?

    You can do it by having a mercenary unit recruitable through the tavern line of buildings, or something of that nature, within a settlement. I don't believe it is possible through ordinary means of mercenary recruitment.
    "There is a difference between what is wrong and what is evil. Evil is committed when clarity is taken away from what is clearly wrong, allowing wrong to be seen as less wrong, excusable, right, or an obligatory commandment of the Lord God Almighty.

    Evil is bad sold as good, wrong sold as right, injustice sold as justice. Like the coat of a virus, a thin veil of right can disguise enormous wrong and confer an ability to infect others."
    -John G. Hartung

  6. #6

    Default Re: Is it possible to have faction specific mercs?

    ^ Actually I wanted to decentralise recruitment from citys/castles, because linear progression of troop quality seems odd to me... And i had a few other random ideas to go with this...

    Is it possible to add/remove units from merc pools via scripts? Cuz if it is i could refill/empty merc pools at start of each factions turn.

    I don't have Alexander, but if you gimmie copy of text it used to limiting ill happily try that...
    Last edited by Shaio; November 17, 2009 at 06:17 PM.

  7. #7
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Is it possible to have faction specific mercs?

    Try these:
    Identifier: freeze_recruit_pool
    Parameters: region_name|region_id|all [true|false]
    Description: Stop/start all unit pools replenish/deplenish in specified region or all regions
    Sample use: freeze_recruit_pool York_Province true

    Identifier: set_recruit_pool
    Parameters: region_name|region_id value unit_name
    Description: Set specified amount of units to the unit pool of the specified type of unit in the specified region.
    Sample use: set_recruit_pool York_Province 5 temp heavy spearmen

    Identifier: inc_recruit_pool
    Parameters: region_name|region_id value unit_name
    Description: Add specified amount of units to the unit pool of the specified type of unit in the specified region.
    Sample use: inc_recruit_pool York_Province -2 temp_heavy_spearmen










  8. #8
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Is it possible to have faction specific mercs?

    If it's the same as the EDB you can use events to restrict unit production. If you have an event for each faction's turn then perhaps you can have 'faction specific mercs'.

  9. #9
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Is it possible to have faction specific mercs?

    This creates a counter "england_turn" for the england faction

    declare_counter england_turn
    monitor_event PreFactionTurnStart FactionType england
    set_counter england_turn 1
    end_monitor
    monitor_event FactionTurnEnd FactionType england
    set_counter england_turn 0
    end_monitor










Posting Permissions

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