Results 1 to 13 of 13

Thread: Mercenaries

Hybrid View

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

    Default Mercenaries

    I have thought of creating a mercenary unit, that can only be recruited by one faction. Is that possible?

    Thanks

  2. #2

    Default Re: Mercenaries

    Definately yes if you do it through a building.


  3. #3

    Default Re: Mercenaries

    Yes, that I know, perhaps I should have been a bit clearer: I was thinking, I wanted them to be recruited through the mercenary window.

  4. #4

    Default Re: Mercenaries

    So you want a mercenary only available to one particular faction right? That can be easily done with event counters.

    Open the descr_mercenaries.txt file and put an event say "lol_123" as a condition in the end of a merc recruitment line, like this:
    Code:
    unit Mailed Knights            exp 0 cost 830 replenish 0.08 - 0.25  max 4 initial 1 events { lol_123 }
    Now put this script in your campaign_script.txt file for say England only:
    Code:
    monitor_event PreFactionTurnStart FactionType england
            set_event_counter  lol_123 1
            end_monitor
    monitor_event FactionTurnEnd FactionType england
            and I_EventCounter   lol_123 == 1
            set_event_counter  lol_123 0
            end_monitor
    That outta do it.

  5. #5
    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: Mercenaries

    Quote Originally Posted by Ishan View Post
    Code:
    unit Mailed Knights            exp 0 cost 830 replenish 0.08 - 0.25  max 4 initial 1 events { lol_123 }
    Now put this script in your campaign_script.txt file for say England only:
    Code:
    monitor_event PreFactionTurnStart FactionType england
            set_event_counter  lol_123 1
            end_monitor
    monitor_event FactionTurnEnd FactionType england
            and I_EventCounter   lol_123 == 1
            set_event_counter  lol_123 0
            end_monitor
    That outta do it.
    You can actually simplify it by deleting the one line.
    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

  6. #6
    Moneybags14's Avatar Ordinarius
    Join Date
    May 2010
    Location
    United States
    Posts
    709

    Default Re: Mercenaries

    uhhh, can't you just make the ownership only for that faction and just skip all the event scripting??? Unless you want to keep the unit for all factions and just a mercenary for that one faction then I don't see why you would have to do that

  7. #7

  8. #8
    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: Mercenaries

    Quote Originally Posted by Moneybags14 View Post
    uhhh, can't you just make the ownership only for that faction and just skip all the event scripting??? Unless you want to keep the unit for all factions and just a mercenary for that one faction then I don't see why you would have to do that
    Because by doing it with scripts like that you can have each faction have a different stats for the mercenary recruitment lines for different factions.

    Example:

    Code:
    unit Mailed Knights            exp 0 cost 830 replenish 0.08 - 0.25  max 4 initial 1 events { englands_turn }
    unit Mailed Knights            exp 0 cost 800 replenish 0.1 - 0.3  max 5 initial 2 events { frances_turn }
    This would allow the same unit to have faction specific mercenary recruitment lines as demonstrated above. France gets the Mailed Knights cheaper and faster than england and can have more in the pool, all without the need for multiple units in EDU.
    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

  9. #9

    Default Re: Mercenaries

    So i must ask if there is a hard coded limit on mercenary units in the DM?????

  10. #10
    Lazy's Avatar Biarchus
    Join Date
    Jul 2011
    Location
    Aachen
    Posts
    661

    Default Re: Mercenaries

    Quote Originally Posted by valvegas1 View Post
    So i must ask if there is a hard coded limit on mercenary units in the DM?????
    Nope!
    There is only a limitation for all units! You could make all of them mercs...
    Quote Originally Posted by SirWarts View Post
    ...the woman trampled didn't look impenetrable. So they ran through her.

  11. #11

    Default Re: Mercenaries

    interesting....

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

    Default Re: Mercenaries

    You can use religions. So if you have only 10 factions and each has a different religion then you're sorted.

    And you can make 500 units be mercenary, if you only have 1 set of textures for every unit, no problem. But I think I remember their cost comes up as 'varies', and I think it's nice to know what units cost.

  13. #13

    Default Re: Mercenaries

    Thanks everybody, this was exactly what I was looking for!

Posting Permissions

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