ID:163212
 
Im trying to make a mountain that if you click on it, your char mines it and the mountain turns into a cave floor. Do you get wat i mean???
turf/Mountain

// When this turf is clicked ...
Click()

// character mines and turns this into a /turf/CaveFloor ...
new/turf/CaveFloor(src)

// and tells the character what just happend.
usr << "You turned me into a CaveFloor!"


?
In response to DivineO'peanut
turf
var/t
Mountain
icon = 'Mountins.dmi'
icon_state="1"
Click()
new/turf/Floor



hmm whats wrong with that?
In response to Chrislee123
You aren't locating the floor. What you want is "<code>new/turf/Floor(src)</code>". See <code>new()</code> in the DM Reference.