I am having issues with thee logic in this. What I am trying to do is to have the map Z level increase so that people can "create a house" there. But, I want to be able to put a system in check so that when I am going to create a house, I could somehow check all Z levels to see if there was a "free one" first that would be from a player logging out who had created their "home". I am using the SwapMaps
assigned_house_x = 50
assigned_house_y = 50
person = input("Enter your name")
usr << "You must be on the map."
var/_x = usr.assigned_house_x
var/_y = usr.assigned_house_y
usr << "You must be on the map to save your house."
usr << "House not found."
usr << "Loading house at [_x],[_y],[assigned_house_z]"
assigned_house_z = world.maxz + 1
usr << "<font color = red>[world.maxz]-world.maxz.</font> <font color = blue>[assigned_house_z]-assigned_house_z.</font>"
loc = locate(1,5,assigned_house_z)
icon = 'turfs.dmi'
icon_state = "floor"