//This is my sound effect library derived from Ultima and perfected with Arby's help. Thank you guys!!

task PlaySnd(str,volume_rate){
	NotifyEventAll(PLAY_SFX,[str,IntToString(volume_rate)~""]);

}

/* UNUSED
let SEPath = [
[CSD ~ "../SFX/se_bonus.wav" , "se_bonus"],
[CSD ~ "../SFX/se_bonus2.wav" , "se_bonus2"],
[CSD ~ "../SFX/se_boon00.wav" , "se_boon00"],
[CSD ~ "../SFX/se_boon01.wav" , "se_boon01"],
[CSD ~ "../SFX/se_cancel00.wav" , "se_cancel100"],
[CSD ~ "../SFX/se_cardget.wav" , "se_cardget"],
[CSD ~ "../SFX/se_cat00.wav" , "se_cat00"],
[CSD ~ "../SFX/se_cat01.wav" , "se_cat01"],
[CSD ~ "../SFX/se_ch00.wav" , "se_ch00"],
[CSD ~ "../SFX/se_ch01.wav" , "se_ch01"],
[CSD ~ "../SFX/se_ch02.wav" , "se_ch02"],
[CSD ~ "../SFX/se_damage00.wav" , "se_damage00"],
[CSD ~ "../SFX/se_damage01.wav" , "se_damage01"],
[CSD ~ "../SFX/se_don00.wav" , "se_don00"],
[CSD ~ "../SFX/se_enep00.wav" , "se_enep00"],
[CSD ~ "../SFX/se_enep01.wav" , "se_enep01"],
[CSD ~ "../SFX/se_enep02.wav" , "se_enep02"],
[CSD ~ "../SFX/se_etbreak.wav" , "se_etbreak"],
[CSD ~ "../SFX/se_extend.wav" , "se_extend"],
[CSD ~ "../SFX/se_fault.wav" , "se_fault"],
[CSD ~ "../SFX/se_graze.wav" , "se_graze"],
[CSD ~ "../SFX/se_gun00.wav" , "se_gun00"],
[CSD ~ "../SFX/se_heal.wav" , "se_heal"],
[CSD ~ "../SFX/se_hint00.wav" , "se_hint00"],
[CSD ~ "../SFX/se_invalid.wav" , "se_invalid"],
[CSD ~ "../SFX/se_item00.wav" , "se_item00"],
[CSD ~ "../SFX//se_kira00.wav" , "se_kira00"],
[CSD ~ "../SFX/se_kira01.wav" , "se_kira01"],
[CSD ~ "../SFX/se_kira02.wav" , "se_kira02"],
[CSD ~ "../SFX/se_lazer00.wav" , "se_lazer00"],
[CSD ~ "../SFX/se_lazer01.wav" , "se_lazer01"],
[CSD ~ "../SFX/se_lazer02.wav" , "se_lazer02"],
[CSD ~ "../SFX/se_lgods1.wav" , "se_lgods1"],
[CSD ~ "../SFX/se_lgods2.wav" , "se_lgods2"],
[CSD ~ "../SFX/se_lgods3.wav" , "se_lgods3"],
[CSD ~ "../SFX/se_lgods4.wav" , "se_lgods4"],
[CSD ~ "../SFX/se_lgodsget.wav" , "se_godsget"],
[CSD ~ "../SFX/se_msl.wav" , "se_msl"],
[CSD ~ "../SFX/se_msl2.wav" , "se_msl2"],
[CSD ~ "../SFX/se_msl3.wav" , "se_msl3"],
[CSD ~ "../SFX/se_nep00.wav" , "se_nep00"],
[CSD ~ "../SFX/se_nodamage.wav" , "se_nodamage"],
[CSD ~ "../SFX/se_noise.wav" , "se_noise"],
[CSD ~ "../SFX/se_ok00.wav" , "se_ok00"],
[CSD ~ "../SFX/se_option.wav" , "se_option"],
[CSD ~ "../SFX/se_pause.wav" , "se_pause"],
[CSD ~ "../SFX/se_pin00.wav" , "se_pin00"],
[CSD ~ "../SFX/se_pin01.wav" , "se_pin01"],
[CSD ~ "../SFX/se_pldead00.wav" , "se_pldead00"],
[CSD ~ "../SFX/se_pldead01.wav" , "se_pldead01"],
[CSD ~ "../SFX/se_plst00.wav" , "se_plst00"],
[CSD ~ "../SFX/se_power0.wav" , "se_power0"],
[CSD ~ "../SFX/se_power1.wav" , "se_power1"],
[CSD ~ "../SFX/se_powerup.wav" , "se_powerup"],
[CSD ~ "../SFX/se_select00.wav" , "se_select00"],
[CSD ~ "../SFX/se_slash.wav" , "se_slash"],
[CSD ~ "../SFX/se_tan00.wav" , "se_tan00"],
[CSD ~ "../SFX/se_tan01.wav" , "se_tan01"],
[CSD ~ "../SFX/se_tan02.wav" , "se_tan02"],
[CSD ~ "../SFX/se_tan03.wav" , "se_tan03"],
[CSD ~ "../SFX/se_timeout.wav" , "se_timeout"],
[CSD ~ "../SFX/se_timeout2.wav" , "se_timeout2"],
[CSD ~ "../SFX/se_warp.wav" , "se_warp"],
[CSD ~ "../SFX/se_water.wav" , "se_water"],
[CSD ~ "../SFX/se_nice.wav" , "se_nice"],
[CSD ~ "../SFX/se_warpl.wav" , "se_warp1"],
[CSD ~ "../SFX/se_warpr.wav" , "se_warpr"],
[CSD ~ "../SFX/se_shield.wav" , "se_shield"],
[CSD ~ "../SFX/se_border.wav" , "se_border"]];
*/