ID:855345
 
i am trying to make an House system where user buy floor tiles and dbl click on them then it spreads across the floor my question is how can i make sure what are being placed in house.
You could attach a variable to the turfs in the area. Using that, you can check to make sure that the person laying floor actually owns the area.
Any code please
You could store them in a list.
mob/var/list/Bought_Tiles=list()


Or do what Lugia319 said.

turf/var/mob/owner=null
In response to Kozuma3
Kozuma3 wrote:
You could store them in a list.
> mob/var/list/Bought_Tiles=list()
>

Or do what Lugia319 said.

> turf/var/mob/owner=null
>


this is how my tile works
turf
HouseTiles
icon='PlayerHouseFloor.dmi'
icon_state="Tile"

obj/HouseTiles
icon='PlayerHouseFloor.dmi'
Wood
icon_state="Wood"
Aqua
icon_state="Aqua"
verb/Apply()
set src in oview()
for(var/turf/HouseTiles/T in oview(2))
T.icon_state=src.icon_state

i just need a way to keep my housing system give area the same id as one inside.