ID:177969
 
Well, by the topic you probably know what I'm gonna ask, but if you don't, how do I stop people from creating a character without a name. My first few lines of code go like this.

mob/create_character
var/mob/character
Login()
var/charactername = input("pick a name","Character Name?")



-----Hendrix-------
Hendrix wrote:
Well, by the topic you probably know what I'm gonna ask, but if you don't, how do I stop people from creating a character without a name. My first few lines of code go like this.

mob/create_character
var/mob/character
Login()
var/charactername = input("pick a name","Character Name?")



-----Hendrix-------


You could make it into a for() loop that only breaks when charactername is true

this could be something like . . . .

mob/create_character
var/mob/character
Login()
for()
var/charactername = input("pick a name","Character Name?")
if(charactername) break
src << "Input another name."

- G