1.) Sign outside of the house where user access all the verbs for house, like Adding Players, buying house or selling house.
2.) Door of the house that gets the list of players allowed in the house.
3.) Console where a player teleports to the house before they teleport the console will get list from house sign of the players allowed inside the house then if they are in the list they will allow them.
Code I have got to, but it dosent work
obj
var
list
Permit = list()
Link
Sign
verb
Permit()
set src in view()
if(src.Owner == usr)
var/list/Peepz = list()
for(var/mob/M in world)
if(M.client)
Peepz += M
var/mob/P = input() in Peepz
src.Permit += P
for(var/obj/O in world)
if(O.Link == src.tag)
O.Permit += P
New()
var/list/InstanceList=InstanceDatum.Instances[src.InstanceID]
InstanceList+=src
src.name="[src.name] #[InstanceList.len]"
src.Link="[src.name] #[InstanceList.len]"
src.suffix=src.name
var/datum/InstanceDatum/InstanceDatum=new
datum/InstanceDatum
var/list/Instances=list()
I am applying the name Link of other console and door same way
Can you explain doesn't work a bit better? What isn't working?
Do you get any errors?