So would it just be adding
[ b](play_sound,"snd_xxx")[/ b]
to the end of the text, something like this
[anyone,"bandit_attack", [
(store_random_in_range, ":rand", 11, 15),
(str_store_string, s11, "@Another fool come to throw {him/her}self on my weapon, eh? Fine, let's fight!"),
(str_store_string, s12, "@We're not afraid of you, {sirrah/wench}. Time to bust some heads!"),
(str_store_string, s13, "@That was a mistake. Now I'm going to have to make your death long and painful."),
(str_store_string, s14, "@Brave words. Let's see you back them up with deeds, cur!"),
(str_store_string_reg, s5, ":rand"),
], "{s5}", "close_window",[[ b](play_sound,"snd_xxx")[/ b]]],
or can it be done like this to have a different sound for each option
[anyone,"bandit_attack", [
(store_random_in_range, ":rand", 11, 15),
(str_store_string, s11, "@Another fool come to throw {him/her}self on my weapon, eh? Fine, let's fight!"),[[ b](play_sound,"snd_xxx1")[/ b]]],
(str_store_string, s12, "@We're not afraid of you, {sirrah/wench}. Time to bust some heads!"),[[ b](play_sound,"snd_xxx2")[/ b]]],
(str_store_string, s13, "@That was a mistake. Now I'm going to have to make your death long and painful."),[[ b](play_sound,"snd_xxx3")[/ b]]],
(str_store_string, s14, "@Brave words. Let's see you back them up with deeds, cur!"),[[ b]
(play_sound,"snd_xxx4")[/ b]]],
(str_store_string_reg, s5, ":rand"),
], "{s5}", "close_window",[]],
of course without the spaces before the b's