world
New()
..()
var/list_len
for(var/turf_check in typesof(/turf/system) - list(/turf, /turf/system))
areas += ++list_len
for(var/X in areas)
areas[X] = "open"
var/list/areas = list()
proc
select_spawn(mob/M)
for(var/X in areas)
if(areas[X] == "open")
M.spawn_zone = "S[X]"
M.loc = locate(text2path("/turf/system/[M.spawn_zone]"))
areas[X] = "taken"
break
If you need me to include more bits of it, just say so.
Problem description:
Well, it's supposed to file through all of the turfs under /turf/system (minus the ones removed) which would leave /turf/system/S1, /turf/system/S2, etc. The list is there so I wouldn't have to have the unnecessary variables.
The problem I have is that the player isn't being spawned and I'm incredibly tired so I don't know if the logic was off on it or not.
Thanks in advance,
-Kumorii