ID:270280
 
How would you stop people from building on top of houses already made?

Is an example of what I'm talking about, if you see how people can build houses on top of other houses.

Note: There are a lack of demos for RTS games, so I ask a lot of questions here, but I look for the answers before ask, just in case you were wondering.
mob/verb/build()
if(istype(usr.loc,/obj/house)) return 0
..()
In response to Mysame
Thanks, but when I tried to use the verb, I got this message.

runtime error: type mismatch
proc name: Build House (/mob/building/verb/Build_House)
usr: Merciless Warrior (/mob)
src: Merciless Warrior (/mob)
call stack:
Merciless Warrior (/mob): Build House()

And the only thing I did was this.
mob
building
verb
Build_House()
set category = "Construction"
if(istype(src.loc,/obj/house)) return(0)
else
if(src.gold >= 500)
M = new /obj/house(get_step(src,dir))
src.gold -= 500
src.pop += rand(1,5)

In response to Merciless Warrior
I guess it won't matter much anyway since you're building the house in the get_step() :|