ID:269182
 
Host/verb/Choose_Map()
var/map=input(src,"Which map would you like to go to?","Choose Map") as null|anything in list("Map 1","Map 2")
if(map=="Map 1")
(1,1,1)
if(map=="Map 2")
(1,1,2)


whats not indented correctly?
Yami_Marik0 wrote:
Host/verb/Choose_Map()
> var/map=input(src,"Which map would you like to go to?","Choose Map") as null|anything in list("Map 1","Map 2")
> if(map=="Map 1")
> (1,1,1)
> if(map=="Map 2")
> (1,1,2)

whats not indented correctly?

mob/Host/verb/Choose_Map()
var/map=input(src,"Which map would you like to go to?","Choose Map") as null|anything in list("Map 1","Map 2")
if(map=="Map 1")
src.loc=locate(1,1,1)
if(map=="Map 2")
src.loc=locate(1,1,2)


That should fix it.
In response to AW3 Team
thanx i owe ya
In response to Yami_Marik0
Also, you cannot have something such as:

  (1,1,1)


Because, that is not allowing the user to go anywhere. It should be.

 src.loc=locate(1,1,1)


And thats it, enjoy. Oh and you did'nt put a mob/ before Host be careful when doing something like that or else the player could get the verb instead of the Host.