ID:261235
 
I am trying to make a floor so when you walk over it, a certain music file is played


here is my code (it sucks)



turf/specialmusicfloors
Town2Entrance
icon = 'file.dmi'
usr << sound('soundfile.mid',1)



could anyone correct this?

SSJ4_Sanatic Bardock wrote:
I am trying to make a floor so when you walk over it, a certain music file is played


here is my code (it sucks)



turf/specialmusicfloors
Town2Entrance
<font color=red>icon = 'file.dmi'</font>





Indent the <font color=red>red</font> over one and you'd need to check if they entered the tile using the Entered() proc.
In response to Nadrew
whoops i messed up





turf/specturf

Townenterance
icon = 'blah.dmi'
usr << sound('file.mid',1)
In response to SSJ4_Sanatic Bardock
You still need to use Entered()
In response to SSJ4_Sanatic Bardock
SSJ4_Sanatic Bardock wrote:
whoops i messed up





turf/specturf

Townenterance
icon = 'blah.dmi'
usr << sound(file.mid,1)



Nope that won't work

turf/specturf
Townentrance
icon='blah.dmi'
Entered(mob/M)
..()
M<<sound('file.mid',1)
In response to GateGuardian
thx!