Sir William the Brave said:
Do you have vanilla Mount and blader version of these codes? Because I try to use these codes but when I build_module I got an error.
As I said before, with some modifications, this code will work only in towns. But, for vanilla there is another code wich allows you to have recruits in both castles and towns.
That code enables you to recruit culture specific units if you are vassal of specific kingdom, you can have one to several number of units in both towns and castles and if you conquer enemy town or castle it changes units to your faction recruits, so you are able to recruit your kingdom troops in that settlement you conquered. Go on m&b repository and search for mod "Garnier mod", which has source code included or search for vanilla "The eagle and the radiant cross" source code if it is stil around, and take codes from there.
So. Since this is topic about recruits and recruitment, I would be interested in recruitment of specific troops if village belongs to other kingdom. For example, ‚village 49 belong to Khergits and I would like to recruit Vaegir peasants from there, villages 11, 43, should have "black Khergit tribesman" but that faction does not exists...
Also it maybe would be nice to be able to be able to recruit two kind of units for every faction.
For example, snow Vaegirs and plain terrain Vaegirs, norhen Rhodoks, southern Rhodoks, Suno and Praven Swadians- other Swadians... and so on.
Something like this:
(try_begin),
(party_set_slot, ":center_no",”p_village_49”,
slot_center_volunteer_troop_type,”trp_vaegir_recruit”,
(try_end),
(try_begin),
(party_set_slot, ":center_no",”p_village_11”,
slot_center_volunteer_troop_type,”trp_black_khergit_horseman”, # create recruits later
(try_end),
(try_begin),
(party_set_slot, ":center_no",”p_village_43”,
slot_center_volunteer_troop_type,”trp_black_khergit_horseman”,
(try_end),