ID:270766
 
Hi, i dont know how to make a character creation were a window pops up and you can click a arrow that faces down and it opens a list of thinks; example:Class:Warrior, Mage, Ranger, and Thief. If anyone can help, Much Appreciated
'cuase I'm nice, and 'cuase I like noodles.

mob/proc
generate_character() //define the proc called to generate the mobs character
do
name = input("what is your name?") as null|text
while(!name || lentext(name) > 20) // while he has no name, or the length of the name is longer then 20.

/*
do:
do something while(check) is true.
*/


gender = lowertext(input("are you a male, or a female?") in list("Male", "Female"))
// lowertext() means the gender will be written in lowercase, as gender can't be written with caps.

var/race = ckey(input("race is?") in list("Gnome", "lolol joe")) // ckey for the lolol joe part.


var/mob/class = input("class is") in list("meep")

var/finalresult = text2path("/mob/[gender]/[race]/[class]")

if(ispath(finalresult))
client.mob = new finalresult // change client.mob
else world.log << "type not found (generate_character(), /mob/[gender]/[race]/[class])"


Please don't steal. I only made this for you to learn. (in hopes of the slight chance that this'll actually change your mind. =/)