ID:178869
 
How can I get the music to change to the town music instead of the battle music when someone dies? The music is different for each town. The music changes when you 'Enter()' an area.

Thanks
i dont know the music code i just know in the () part put null
Will you post how you used the sound proc?
In response to Super16
area
var
music
overworld1
Enter()
.=..()
music = 'dw3out.mid'
if(.) usr << sound(music,1)
ryuzak
Enter()
var/towninlist=usr.rettown.Find("Ryuzak")
if(towninlist == 0)
usr.rettown += "Ryuzak"
.=..()
music = 'dw4town2.mid'
if(.) usr << sound(music,1)
Enter() isn't called if you manually locate a player to a turf via "usr.loc = locate(x,y,z)"... So that's why the music isn't turned on after death (since I assume you're using the "locate" method)... So you'll have to add another line to the end of your deathcheck() proc to turn the proper music on right after you "locate" the player to the town...