I have thought of creating a mercenary unit, that can only be recruited by one faction. Is that possible?
Thanks
I have thought of creating a mercenary unit, that can only be recruited by one faction. Is that possible?
Thanks
Definately yes if you do it through a building.
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.
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:
Now put this script in your campaign_script.txt file for say England only:Code:unit Mailed Knights exp 0 cost 830 replenish 0.08 - 0.25 max 4 initial 1 events { lol_123 }
That outta do it.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![]()
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
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![]()
Ownership is assigned in EDB not DM file.![]()
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:
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.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 }
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
So i must ask if there is a hard coded limit on mercenary units in the DM?????
interesting....![]()
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.
Thanks everybody, this was exactly what I was looking for!