ID:177922
 
how do you make a verb called select turf and then when you click on it you can select a turf..then when you click on anything on the map it makes it there.and also when you click and hold down and say drag your mouse around it makes turfs behind the mouse
i can help you somewhat, i don't know about the drag part but the click verb goes like this
------------------------------------------------------------
turf.Click()
if(usr.build == "none") // for not building
return
if(usr.build == "wall") // will build a wall on
new/turf/wall(src)
mob
verb
Build(msg as text)
set category = "Build"
usr.build = "[msg]"
------------------------------------------------------------
this is a kind of different verb, when you click build a little text box will show, type in the turf name and then it will build where you click.

~Aleis~
mob
var
buildtype
building = 0
buildmethod


mob
verb

selectbuildtype()
var/newtype = input("What type?")in typesof(/atom)+"Cancel"
if(newtype == "Cancel")
return
usr.buildtype = newtype

startbuild()
usr.building = 1
usr.buildmethod = input("Select your method to build")in list("Click","Drag")
stopbuild()
usr.building = 0

turf
Click()
if(usr.building && usr.buildmethod == "Click")
new usr.buildtype(src)
return
usr << "You're not building! Or your method isn't on Click!"
return

MouseDrag(typeb,unused,location)
if(usr.building && usr.buildmethod == "Drag")
typeb = usr.buildtype
new typeb(location)
else
return