mob
var
build_type
GameMaster
verb
Custom_Map_Object()
var/obj/T = new(src)
T.name = input(src,"Name your turf.","Custom Turf") as text
T.desc = input(src,"Describe your turf. (Optional)","Custom Turf") as text|null
T.icon = input(src,"Choose an icon.","Custom Turf") as icon
T.icon_state = input(src,"Choose an icon state. (Optional)","Custom Turf") as text|null
build_type = T
turf
icon = 'base.dmi'
Click()
var/obj/O = usr.build_type
new O (locate(src.x,src.y,src.z))
Problem description:
runtime error: Cannot create objects of type /obj.
proc name: Click (/turf/Click)
usr: Warlord Fred (/mob)
src: the turf (6,9,1) (/turf)
call stack:
the turf (6,9,1) (/turf): Click(the turf (6,9,1) (/turf), "mapwindow.map", "icon-x=23;icon-y=21;left=1;scr...")
How can I copy an object without having to assign every variable of the first object to a new one?