ID:168799
 
mob
player
admin
verb
Change_Map()
set category = "Admin"
if(global.time=="set")
usr << "There is a time limit!"
if(global.map=="set")
usr << "There is a map!"
else
usr << "Number one is Classic Colosseum. Number two is Tech Lab. Number three allows you to battle in Hell. Four is the Firearms Factory. Five is the Town."
var/map = input(src, "What map?") in list(1,2,3,4,5)
for(var/mob/M in world)
M.z = map
global.map = "set"


How do I add something so when someone logs in, they will be teleported to the map selected here.
Make a variable(which should by default be something like (1,1,1) and have it, if you use the change map verb, change the variable and then just make it under Login() src.loc=locate(startmap).
-Sin()
In response to Sinoflife
I'll try. Thank you though...
In response to Bobthehobo
EDIT: Wait, how exactly should I do the variable? Should it be a Global or something else, and after that how do I access it?
In response to Bobthehobo
Bobthehobo wrote:
EDIT: Wait, how exactly should I do the variable? Should it be a Global or something else, and after that how do I access it?

                        for(var/mob/players/M in world)
if(map==1)
M.startmap=/turf/start2
if(map==2)
M.startmap=/turf/start3


That's one way.
-Sin()
In response to Sinoflife
Thanks