turf
Create1
icon = 'Turfs2.dmi'
icon_state = "create1"
Click()
var/name = input("Your characters name","Set name") as text//setting the name of the player
usr.name = name//setting the players name to the name var from up above
var/mob/M = new//creating a new mob
M.name=usr.name//setting the new mobs name to the users name
M.icon = 'characters.dmi'//setting the icon for the mob
M.icon_state = "fighter1"//setting the icon state
usr.client.mob = M//making the user become the new mob
usr.loc = locate(/turf/start)
So far i know this code is correct but it doesnt work when you click on it in the game why?: