var/list/Plains = list("One", "Two", "Three", "Four")
mob/var/PlainLoc
mob/proc/Plain_Map()
if (!Plains ["One"])
PlainLoc = "One"
src.loc=locate(2,3,3)
src.client.view="15x8"
src.client.eye=usr
else if(!Plains ["Two"])
PlainLoc = "Two"
src.loc=locate(2,3,4)
usr.client.view="15x8"
usr.client.eye=usr
else if(!Plains ["Three"])
PlainLoc = "Three"
src.loc=locate(5,37,1)
usr.client.view="15x8"
else if(!Plains ["Four"])
PlainLoc = "Four"
src.loc=locate(5,52,1)
usr.client.view="15x8"
else
usr << "You can't currently Enter"
return
Plains [PlainLoc] = 1
Problem description:
I'm trying to have it so that when two players are in a certain location no one else can enter that location, and when the two players are done the slot opens up so two others can enter. But it's not working correctly. What can I do to fix this
That should help you resolve your issue, some parts of the reference are iffy.
Example for you should be
var/list/Plains=list(One=null,Two=null,Three=null,Four=null)
I hope I stated that correctly, if not: feel free to correct me.