ID:166991
 
There's no way to imitate a change of /world/turf is there? I tried making a GM verb to change it and it gave me that icky "Cannot change constant value" or whatever :(
You could create a similar effect by overwriting turf/New.
var/default_turf = /turf/default_type
turf/New(loc, default = 1)
if(type == /turf && default)
new default_turf(src)

proc/ClearMap()
var/turf
point1 = locate(1,1,1)
point2 = locate(world.maxx, world.maxy, world.maxz)
for(var/turf/T in block(point1, point2))
del(T)
turf/Click()
//This example function is for a map editing type of system
if(usr.client.map_edit_on)
new usr.client.turf_brush(src, 0)

For the ClearMap function, when it attempts to create objects of type /turf it should catch itself then turn around and create type default_turf there instead. But for the Click example, even if your turf_brush is of type /turf, it should still allow you to lay that type down as you please.
In response to Loduwijk
Well you should probably use

var/default_turf = /turf/default_type
turf/New(loc, default = 1)
if(type == /turf && default)
new default_turf(src) <---------


so that way you aren't defining the var for nothing :P
but yeah if this works I can take it off of my "To Make" list instead of HTML'ing a strikethru line through it to make me say "Meh I really wanted that but it can't be doneee :( :(" and oh look I'm talking too much again
In response to Cowdude
Second such typo mistake I made today. Sorry and thanks for pointing it out. Fixed it now.