ID:270267
 
mob
building
verb
Build_House()
set category = "Construction"
if(src.gold >= 500)
M = new /obj/house(src.loc)
src.gold -= 500
src.pop += rand(1,5)
return(10)

I'm clueless on how to make the house appear INFRONT of the person in the direction they're standing. I tried doing src.loc -= 1(even though I knew that wouldn't work. I have also tried src.loc = src.dir. Can anyone tell me how to do this?
mob
building
verb
Build_House()
set category = "Construction"
if(src.gold >= 500)
M = new /obj/house(src.loc)
M.dir=src.dir
src.gold -= 500
src.pop += rand(1,5)
return(10)


Try that im not if its what you wanted
mob
> building
> verb
> Build_House()
> set category = "Construction"
> if(src.gold >= 500)
> M = new /obj/house(get_step(src,dir))
> src.gold -= 500
> src.pop += rand(1,5)
> return(10)


Try that. Also, there's really no point to the "return(10)" unless you're calling the verb like a process.

Also, you may need to change it to account for creating a house on dense objects