var/list/Sessions=list()
Sessions.Add("Session 1: The Test")
if(usr.Mission>0)
Sessions.Add("Session 2: The Sign")
switch(input("Which session would you like to complete?") as null|anything in Sessions)
if("Session 1: The Test")
for(var/obj/MissionSpot/AC in world)
if(!AC.Owner)
if(!AC.MissionLocation)///Whatever the mission var for the turf
usr.loc = AC.loc
AC.MissionLocation=1
var/mob/Danger/A = new()
A.loc = locate(usr.x,usr.y+7,usr.z)
A.name = "{Session}Bot"
A.icon = usr.icon
A.overlays = usr.overlays
A.Health = usr.Health*1.5
A.Energy = usr.Energy*1.5
A.MEnergy = usr.MEnergy*1.5
A.Stamina = usr.Stamina*1.5
A.MStamina = usr.MStamina*1.5
A.Attack = usr.Attack*1.5
A.Focus = usr.Focus*1.5
A.Defense = usr.Defense*1.5
else
usr<<"There are no spots for you!"
else
usr<<"There are no spots for you!"
if("Session 2: The Sign")
usr<<"This session is currently unavailable!"
Problem description: It works for the first person who tries to do the mission, but when another person tries to do the same mission it gives them the "there are no spots for you!" message the amount of times there are rooms and it won't let them join unless the first person finishes first. Side note I use usr<< because this is an object that i allowing them to do the mission.
</<>