EDIT: Hi Parrot. Could this problem cause having the "ranked" troops not having the same name as the original?
I dont know if you understand so I will post the code from module_troops
You can notice that the first troop is called "Sir William Wallers regiment of dragoons", but the second troop is "Okey's dragoons" and then the third is called "1st KGL Hussars" and so on.
["british_hussar","Sir William Waller's Regiment of Dragoons","Parliamentary Dragoons",tf_mounted|tf_guarantee_all,0,0,fac_britain,
[itm_newmodeldragoon,itm_yellowcavboots,itm_blackcavboots,itm_bluehat1,itm_bluehat2,itm_bluehat3,itm_cheapsword1,itm_cheapsword2,itm_cheapsword3,itm_firelock_regular_short,itm_firelock_regular_long,itm_bullets,itm_dragoon_horse_1,itm_dragoon_horse_2,itm_dragoon_horse_3,itm_dragoon_horse_4,itm_dragoon_horse_5],
def_attrib_multiplayer|level(20),wpex(80,5,50,5,150,5),knows_common|knows_riding_6|knows_ironflesh_2|knows_athletics_1,swadian_face_middle_1, swadian_face_old_2],
["british_hussar_officer","Okey's Dragoons","Trumpeter",tf_mounted|tf_guarantee_all,0,0,fac_british_ranks,
[itm_yellowcavboots,itm_blackcavboots,itm_newmodeltrumpeter,itm_bluehat1,itm_trumpet,itm_bluehat2,itm_bluehat3,itm_goodrapier1,itm_dragoon_horse_1,itm_dragoon_horse_2,itm_dragoon_horse_3,itm_dragoon_horse_4,itm_dragoon_horse_5],
def_attrib_multiplayer|level(20),wpex(100,5,150,5,150,5),knows_common|knows_ironflesh_2|knows_riding_6|knows_athletics_1,swadian_face_middle_1, swadian_face_old_2],
["british_hussar_bugle","1st KGL Hussars","1st KGL Hussars",tf_mounted|tf_guarantee_all,0,0,fac_british_ranks,
[itm_bluehat1,itm_bluehat2,itm_bluehat3,itm_newmodeltrumpeter,itm_okeyflag,itm_dragoon_horse_1,itm_dragoon_horse_2,itm_browncavboots,itm_blackcavboots,itm_goodrapier1],
def_attrib|level(20),wpex(160,5,30,5,30,5),knows_common|knows_riding_6|knows_ironflesh_3|knows_power_strike_3,swadian_face_middle_1, swadian_face_old_2],
["british_hussar_nco","Okey's Dragoons","Okey's Dragoons",tf_mounted|tf_guarantee_all,0,0,fac_british_ranks,
if these units are supposed to be different units under the parliamentary dragoons, then their names (eg Okey's Dragoons) won't show unless you replace the rank name with the regiment name (Officer -> Okey's Dragoons)
these names don't make a difference to anything other than the string that's shown in the in-game unit menu. the tag that impacts the scripts is trp_british_hussar.
(assign, ":sound_id", -1),
(try_begin),
(eq,":gender",tf_male),
(try_begin),
(eq, ":command_type", voice_type_cry),
(try_begin),
(this_or_next|eq,":agent_troop_id","trp_austrian_arty"), #you don't need this line, remove it: it says "if troop == austrian arty, else troop == austrian arty" (eq,":agent_troop_id","trp_austrian_arty"),
(assign, ":sound_id", "snd_voice_cry_pirate"),
(else_try),
(is_between,":agent_troop_id","trp_french_old_guard","trp_french_voltigeur"),
(assign, ":sound_id", "snd_voice_cry_brit_scot"),
(else_try),
(is_between,":agent_troop_id","trp_british_light_infantry","trp_british_rifle"),
(assign, ":sound_id", "snd_voice_cry_brit_scot"),
(else_try),
(this_or_next|is_between,":agent_troop_id","trp_russian_hussar","trp_russian_uhlan"), # if you're not using russia as a faction you can remove these (this_or_next|is_between,":agent_troop_id","trp_russian_dragoon","trp_russian_horse_guard"),
(is_between,":agent_troop_id","trp_austrian_uhlan","trp_austrian_light_horse"),
(assign, ":sound_id", "snd_voice_cry_russ_ukr"),
(else_try), (eq,":agent_faction","fac_austria"),
# specific country shouts (assign, ":sound_id", "snd_voice_cry_aust"),
(else_try),
(is_between,":agent_troop_id","trp_british_infantry","trp_french_infantry"),
(assign, ":sound_id", "snd_voice_cry_brit"),
(val_add,":sound_id",":fac_index"),
(else_try),
(is_between,":agent_troop_id","trp_french_infantry","trp_prussian_infantry"), # remove this whole section, the previous one with the british shouts assigns all faction battle cries. if you want france to use difference battle cries to their faction ones, use the austria battle cry assignment as an example, and place it before the british battle cries/faction shouts. (assign, ":sound_id", "snd_voice_cry_fren"),
(val_add,":sound_id",":fac_index"), (try_end),
apart from this, don't forget that the ukrainian troops in france use the ukrainian battle cries, austrian troops use a mix of prussian and austrian battle cries, and the french bavarians use prussian shouts. so when you're assigning battle cries, make sure they're nice and neat, well labeled, and that anything left over from nw is removed if it's causing a problem. also don't forget to make changes to the female sounds, there's nothing worse than a female character shouting "long live napoleon" during the english civil war.