mob/verb/Custom_Object(I as icon)
set category = "Customize"
if(!I) return //if the usr cancels.
var/O = new/obj/Customobj //creates a new object.
O:icon = I //changes the objects icon to the icon the usr chooses.
ObjectState(usr,O)
var/A = input("Will it be dense?")in list("Yes","No")
switch(A)
if("Yes") usr.COD=1
if("No") usr.COD=0
var/B = input("Will it block light?")in list("Yes","No")
switch(B)
if("Yes") usr.COO=1
if("No") usr.COO=0
usr.COI=I
mob/verb/BuildCustomObj()
set category = "Customize"
if(usr.Nobuild())
var/obj/A=new/obj(usr.loc)
A.density=usr.COD
A.opacity=usr.COO
A.icon=usr.COI
A:owner = "[usr.key]" //makes the walls owner the usr's key.
mob/var/COD
mob/var/COO
mob/var/COI
/obj/Customobj
Hmm... When you change the icon state of the object it won't change, can anyone fix it? I'm confused..