obj
wood
icon = 'wood.dmi'
icon_state = "wood"
verb
make_wall()
set src in usr
src.Move(usr.loc)
icon = 'Buildables.dmi'
icon_state = "Wall"
density = 1
get()
set src in oview(1)
src.Move(usr)
make_floor()
set src in usr
src.Move(usr.loc)
icon = 'Buildables.dmi'
icon_state = "Floor"
make_door()
set src in usr
icon = 'Buildables.dmi'
icon_state = "Door"
drop()
set src in usr
src.Move(usr.loc)
Problem description::me again :/ im a newbie scripter and i have no idea hw to do this D: i want to make it do i can pick up wood right clikc it and turn it into a wall or door or floor ect ect
also im trying to make it so that when i click make axe with stone it deletes the stone AND wood and gives you a axe but i cant get it to delete the wood D: please revise my code and tell me what im doing wrong
obj
stone
icon = 'land.dmi'
icon_state = "stone"
verb
make_axe()
var/obj/wood = locate(/obj/wood) in usr.contents
if(wood)
set src in usr
view() << "[usr] makes a axe!"
new/obj/axe(usr)
del src
else
world << "you need wood for this!"
get()
set src in oview(1)
src.Move(usr)
Also what problem are you having with building? As far as I see, it works just fine.