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
ID:178869
Mar 24 2002, 2:25 pm
|
|
Mar 24 2002, 2:26 pm
|
|
i dont know the music code i just know in the () part put null
|
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...
|