ID:162895
 
i want to be able to have players only build near the flag of there base to restrict players making large bases and haveing bases everywhere
right now they can only build on certain parts of the map i was wondering if there was a way to make it so they could only build 9 spaces away from the obj/flag

obj/pp
icon = 'obj.dmi'
icon_state = "pp"
density = 1
verb/Build()
if(usr.x >=55)
usr<<"You cannot build so close to the ore"
return
else
if(usr.z ==2)
switch(input("Put Power Plant here?") in list ("Yes","No"))
if("Yes")
new/obj/cym(usr.loc)
usr<<"Here is your New Power Plant"
del(src)
if("No")
usr<<"Maybe you will find a better spot!"
else
usr<<"You cannot build in the city"
i will attempt this but i am not that good yet
obj/pp
icon = 'obj.dmi'
icon_state = "pp"
density = 1
verb/Build()
set src in oview(9) should beplaced right here
        if(usr.x >=55)
usr<<"You cannot build so close to the ore"
return
else
if(usr.z ==2)
switch(input("Put Power Plant here?") in list ("Yes","No"))
if("Yes")
new/obj/cym(usr.loc)
usr<<"Here is your New Power Plant"
del(src)
if("No")
usr<<"Maybe you will find a better spot!"
else
usr<<"You cannot build in the city"