ID:264360
 
Code:
world
mob = /mob/create_character
hub = "---------.---------"
hub_password="------"

mob/create_character
var/mob/character
Login()
var/charactername = input("Hello, Pick a name for your character, something you wish for people to call you in the game.","Character Name?")
switch(input("Below pick one of the following backgrounds you wish for your character to be. It determines what skills you get in the game.","Character Background?") in list("Warrior","Cleric","Bard","Necromancer","Elementalist"))
if ("Warrior")
usr.class = "Warrior"
usr.bclass = "w"
if ("Cleric")
usr.class = "Cleric"
usr.bclass = "c"
if ("Bard")
usr.class = "Bard"
usr.bclass = "b"
if ("Necromancer")
usr.class = "Necromancer"
usr.bclass = "n"
if ("Elementalist")
usr.class = "Elementalist"
usr.bclass = "e"
switch(input("Pick a gender.","Gender?") in list("Male","Female"))
if ("Male")
character = new /mob/You/Male
usr.gender = "Male"
if ("Female")
character = new /mob/You/Female
usr.gender = "Female"
character.name = charactername
src.client.mob = character
character.loc=locate (2,2,1)
world<<"<B>[character] has logged in!"
del(src)
..()


Problem description:
I am using daedron basecamp, when I click create a character it repeats the box, never can get past that
Just pointing it out, but why are you deleting yourself after you finished creating your character? (if you were to every finish of course...)

You can actually directly edit your "name" var in this situation with...
name = input("","") as null|text
if(!name) name = key //if none inputted, their key becomes their name, even though DM will do that automatically ;p
//...
In response to Spunky_Girl
I just used the code from ham-warrior's rpg demo with modified gender selection.
In response to Blink182_98f
issue solved. please close.