Yes, in that way you are right. But from what I understood, what Antonis did was create a new troop that will be in every town of that faction. This is not what I'm aiming for, which is every Town offers their unique troops.
("recruit_nobles",
[(troop_get_slot,"$player_noble_renown","trp_player",slot_troop_renown),
(party_get_free_companions_capacity, "$player_nobles_capacity", "p_main_party"),
(store_faction_of_party,"$nobles_faction","$current_town"), #tells in which faction you are -replace it with something else-
-or put that check here-
(try_begin), #begins assigning nobles to variables determined by faction
(eq,"$nobles_faction",fac_kingdom_1), replace this "fac_kindom_1" with "p_town_1" right?
(assign,"$nobles","trp_swadian_man_at_arms"), #you can change trp_swadian_man_at_arms,trp_vaegir_horseman...with wahtever you want.
(else_try),
(0.1, 0, ti_once, [],
[
(str_store_troop_name, s1, "trp_player"),
(troop_set_name, "trp_custom_recruit", "@{s1}'s Mercenary"),
(troop_set_plural_name, "trp_custom_recruit", "@{s1}'s Mercenaries"),
]),
["flintlock_rifle", "Musket", [("flintlock_rifle",0)], itp_type_musket|itp_merchandise|itp_primary|itp_bonus_against_shield|itp_next_item_as_melee, itc_parry_polearm|itcf_shoot_musket, 300, weight(9.25)|abundance(100)|difficulty(0)|spd_rtng(32)|shoot_speed(140)|thrust_damage(45,pierce)|max_ammo(1)|accuracy(62), imodbits_none, [(ti_on_weapon_attack,[(play_sound,"snd_pistol_shot"),(position_move_x,pos1,-18),(position_move_y,pos1,15),(particle_system_burst,"psys_pan_smoke",pos1,15),(position_move_y,pos1,95),(particle_system_burst,"psys_musket_smoke",pos1,10),(particle_system_burst,"psys_firearm_flash",pos1,15)])] ],
["flintlock_rifle_melee", "Musket Melee", [("flintlock_rifle",0)], itp_type_polearm|itp_wooden_parry|itp_two_handed|itp_secondary|itp_unbalanced, itc_parry_polearm|itc_poleaxe, 202, weight(9.25)|difficulty(0)|spd_rtng(88)|weapon_length(121)|swing_damage(22,blunt)|thrust_damage(14,blunt), imodbits_none ],