mob
var
master_volume = 50
verb
SoundUpdate() // Updates when slider is adjusted.
var/volume = winget(usr,"control.slider","value")
usr.master_volume = round(volume,1)
//Sound code for all sounds played in-game.
usr<<sound('soundfile.wav', volume=usr.master_volume)
//usr.master_volume or src.master_volume depending on what it's under.
So I guess the overall question is, how will I be able to assign a variable to the volume portion of the sound proc. Because ever time I round the variable the value result is always "0" and if I don't the value results in decimals. Neither way works, every time I adjust the slider all throughout the game the sound mutes.
Need any further explanation just ask.
BTW, thanks that helped. Usually the small stuff I forget..