ID:167586
 
obj/Build/verb
Wall()
set category = "Build"
new/turf/Wall(usr.loc)


how would i change that code so that when you build the obj the obj's owner var becomes the usr's key? i tryed this but it said O.owner was undefined:

obj/Build/verb
Wall()
set category = "Build"
O = new/turf/Wall(usr.loc)
O.owner = usr.key


little help please?
obj/Build/verb
Wall()
set category = "Build"
var/turf/O = new/turf/Wall(usr.loc)
O.owner = usr.key
My way doesn't use a key but the mob itself.
turf/var/mob/owner

obj/Build/verb
Wall()
set category = "Build"
var/turf/O = new/turf/Wall(usr.loc)
O.owner = usr

If you ever wanted to check you use an if()
if(O.owner == usr)


turf/var/owner = ""

obj/Build/verb
Wall()
set category = "Build"
O = new/turf/Wall(usr.loc)
O.owner = usr.key
In response to Hant Teath
You two are great coders you can copy/paste and edit good on YA!