ID:161662
 
how do u set a name to ur charecter when u first start a game, whenever i try it always still says my key not the name they set it too


turf/START
density = 1
layer = 999
Click()
var/charactername = input("Choose your name!"," Name?",usr.key)
if(length(charactername) < 1 || length(charactername) > 50)
src << "You name must be at least 1 character and no more than 50 characters."
src << "Please reconnect and try a different (aka spam free) name for your player."
del(src)
if(length(name) < 2)
alert("Your name must be longer than 2 letters!")
return
if(length(name) > 20)
alert("Your name can not be longer then 20 letters!")
return
usr.loc= locate(95,7,2)
turf/START
Click()
usr.name=input("Choose your name.") as text
It's because you never set the mob's name var to anything. You can't just expect BYOND to magically know that your charactername variable is what you want the mob's name to be.