mob
verb
Choose_Map()
set category = "Host"
for(var/mob/curHost in world) //Loops thru every mob in the world
if(!curHost.client.address) //If they don't have an address, they're usually the host. There's some exceptions, however.
usr.verbs += typesof(/mob/verb/Choose_Map/)
switch(input(curHost,"Which map would you like to select?","Map Selection","Map 1") in list("Green Greens","Hyrule","Map3")) //Does a switch and asks the player what map they want.
if("Green Greens") //If they chose the first map...
for(var/mob/M in world)
M.loc = locate(/turf/greengreens)//Move all users to the map.
if("Hyrule")
for(var/mob/M in world)
M.loc = locate(/turf/hyrule251)
if("Map3")
New()
..()//Move all users to the map.
Team_Battle()
set category = "Host"
for(var/mob/curHost in world) //Loops thru every mob in the world
if(!curHost.client.address) //If they don't have an address, they're usually the host. There's some exceptions, however.
usr.verbs += typesof(/mob/verb/Choose_Map/)
switch(input(curHost,"How many teams two or three?","Host") in list("Two","Three","Cancel")) //Does a switch and asks the player what map they want.
if("Two") //If they chose the first map...
for(var/mob/M in world)
world<<"Team Battle: Two teams! Choose your color!"
M.loc = locate(/turf/two)//Move all users to the map.
if("Three")
for(var/mob/M in world)
world<<"Team Battle: Three teams! Choose your color!"
M.loc = locate(/turf/three)//Move all users to the map.
if("Cancel")
return
mob
host
verb
verbshere()
set category = "Host"
theres my manual host code so far so how do i turn it into autohost? also i want team battle to be a 30% chance out of 100% if that helps
As for sight how do i make people see to the right 25 blocks and up 19 blocks so the bottom left location is 1,1,1 top right is 25,19,1 top left is 1,19,1 bottom right is 25,1,1
No, it's not your code. Don't copy code. Learn how to code yourself, otherwise you're going to make topics like this all the time and never get anything done.