can you post all of the battle cry assignment code?
you mean this?
(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"),
(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"),
(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"),
(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"),
(assign, ":sound_id", "snd_voice_cry_fren"),
(val_add,":sound_id",":fac_index"),
(try_end),
(else_try),
(eq,":gender",tf_female),
(try_begin),
(eq, ":command_type", voice_type_cry),
(try_begin),
(this_or_next|is_between,":agent_troop_id","trp_russian_hussar","trp_russian_cossack"),
(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_fem_russ_ukr"),
(else_try),
(eq,":agent_faction","fac_austria"),
(assign, ":sound_id", "snd_voice_cry_fem_aust"),
(else_try),
(assign, ":sound_id", "snd_voice_cry_fem_brit"),
(val_add,":sound_id",":fac_index"),
(try_end),
# change to right sound for faction.
(try_begin),
(neq, ":command_type", voice_type_cry),
(val_add,":sound_id",":fac_index"),
(try_begin),
(is_between,":agent_troop_id","trp_austrian_uhlan","trp_austrian_light_horse"),
(val_add,":sound_id", 2),
(else_try),
# add one for ukrain
(this_or_next|is_between,":agent_troop_id","trp_russian_hussar","trp_russian_uhlan"),
(is_between,":agent_troop_id","trp_russian_dragoon","trp_russian_horse_guard"),
(val_add,":sound_id", 1),
(try_end),
(try_end),
(gt, ":sound_id", -1),
(call_script, "script_multiplayer_server_play_sound_at_agent", ":sound_id", ":agent_id"),
(try_end),
(try_end),
]),
# battle cries.
("voice_cry_brit", sf_priority_8|sf_vol_13, [
"brit_huzzah1.wav" # Huzzah!
,"parliamentbattlecry1.ogg"
,"parliamentbattlecry2.ogg"
,"parliamentbattlecry3.ogg"
,"parliamentbattlecry4.ogg"
,"parliamentbattlecry5.ogg"
]),
("voice_cry_fren", sf_priority_8|sf_vol_13, [
"royalistbattlecry1.ogg"
,"royalistbattlecry2.ogg"
,"royalistbattlecry3.ogg"
,"royalistbattlecry4.ogg"
,"royalistbattlecry5.ogg"
,"brit_godsave1.wav" # God save the king!
,"brit_godsave2.wav"
,"brit_king1.wav" # For king and country
,"brit_king2.wav"
]),
("voice_cry_prus", sf_priority_8|sf_vol_13, [
"brit_bastard1.wav" # Come on yer bastards
,"brit_bastard2.wav"
]),
("voice_cry_russ", sf_priority_8|sf_vol_13, [
"rus_battlecry1.wav"
,"rus_battlecry2.wav"
,"rus_battlecry3.wav"
,"rus_battlecry4.wav"
,"rus_battlecry5.wav"
,"rus_battlecry6.wav"
,"rus_battlecry7.wav"
,"rus_battlecry8.wav"
,"rus_battlecry9.wav"
,"rus_battlecry10.wav"
,"rus_battlecry11.wav"
,"rus_battlecry12.wav"
,"rus_battlecry13.wav"
]),
("voice_cry_aust", sf_priority_8|sf_vol_13, [
"brit_bastard1.wav" # Come on yer bastards
,"brit_bastard2.wav"
]),
("voice_cry_brit_scot", sf_priority_8|sf_vol_13, [
"brit_bastard1.wav" # Come on yer bastards
,"brit_bastard2.wav"
,"brit_scotland1.wav" # Scotland Ferever
,"brit_scotland2.wav"
,"brit_sonsof1.wav" # Sons of the hounds, come here and get flesh
,"brit_sonsof2.wav"
,"brit_bydand1.wav" # Bydand
,"brit_bydand2.wav"
]),
("voice_cry_russ_ukr", sf_priority_8|sf_vol_13, [
"ukr_battlecry1.wav"
,"ukr_battlecry2.wav"
,"ukr_battlecry3.wav"
,"rus_battlecry3.wav"
,"rus_battlecry10.wav"
,"rus_battlecry11.wav"
,"rus_battlecry12.wav"
]),
("voice_cry_pirate", sf_priority_8|sf_vol_13, [
"pirate_1.wav"
,"pirate_2.wav"
,"pirate_3.wav"
,"pirate_4.wav"
,"pirate_5.wav"
,"pirate_6.wav"
,"pirate_7.wav"
,"pirate_8.wav"
,"pirate_9.wav"
,"pirate_10.wav"
,"pirate_11.wav"
,"pirate_12.wav"
,"pirate_13.wav"
,"pirate_14.wav"
]),
I dont know if I posted the right thing, I dont work with sounds very much
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
["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","Cornet",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","Officer",tf_mounted|tf_guarantee_all,0,0,fac_british_ranks,
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.