race = input(src,"What would you like your race to be?","Human") in list("Human","Elf")
switch(race)
if ("Human") race =new /mob/pc/race/Human()
if ("Elf") race = "Elf"
class = input(src,"What would you like your class to be?","Fighter") in list("Barbarian", "Fighter")
switch(class)
if ("Barbarian") new_mob = new /mob/pc/Barbarian()
if ("Fighter") new_mob = new /mob/pc/Fighter()
new_mob.name = char_name
// Now switch the player client over to the new mob and delete myself since I'm no longer needed.
src.client.mob = new_mob
var/turf/first_location = locate(1, 1, 1)
new_mob.Move(first_location)
del(src)
mob/pc/Barbarian
class = "Barbarian"
mob/pc/Fighter
class = "Fighter"
mob/pc/race/Human
race = "Human"
mob/pc/race/Elf
race = "Elf"
now what im assuming is the src from the class is overwriting the race, if that is the case, how would i fix it to where the race would not be overwritten (has a feelin it has somethin to do w/ .txt files) i apologize if it is somethin stupid i ended up missing and lord of water's Demo to it the link was broken which i dun think would have helped me with my question anyhow :D
o yes.. and by chance if your wonderin.. here is code for statpanel heh
if (statpanel("Stats"))
stat("Race: ",usr:race)
stat("Class: ",usr:class)