ID:145703
 
Problem description:ok i don't reely hav a code for this problem but when i want to play a sound file how would i access the actual sound?

usr << sound('Sound.wav')


note that the sound file will need to be in the games file area
The sounds are stored to your cache. If thats what your mean anyways
obj/PlaySong
icon = 'S.dmi'
icon_state = "RandSong"
screen_loc = "14,12"
layer = 7
Click()
var/dd = 0
var/a = input("What song do you want to play?")in list("")
var/b = input("Should it replay over and over?")in list("Yes","No")
if(b=="Yes")
dd=1
if(a=="coolmidi")
usr << sound(null)
usr << sound('.mid',dd)
if(a=="graduation")
usr << sound(null)
usr << sound('.mid',dd)
if(a=="better off alone")
usr << sound(null)
usr << sound('.mid',dd)



try useing this but fill in the stuff you normaly do
Ty GD