ID:145282
 
Code:
mob/creating_character

base_save_allowed = 0

Login()
spawn()
src.CreateCharacter()


proc/CreateCharacter()
var/prompt_title = "New Character"
var/help_text = "What do you want to name the character?"
var/default_value = key
var/char_name = input(src, help_text, prompt_title, default_value) as null|text

if (!char_name)
client.base_ChooseCharacter()
return
var/ckey_name = ckey(char_name)
var/list/characters = client.base_CharacterNames()
if (characters.Find(ckey_name))
alert("Name already exists!, please choose another name.","Error")
src.CreateCharacter()
return

var/list/classes = list("Naruto", "Sasuke", "Aburame", "Haku")
help_text = "Choose your character"
var/char_class = input(src, help_text, prompt_title, default_value) in classes

if(src.logged) // only do this if you have a char already in
usr.clan = input("Select your clan","Clan", usr.clan) in list("Akimichi Clan","Haku's Clan","Inuzuka Clan","Kaguya Clan","Aburame Clan","Kidomaru's Clan","Leaf Non-Clan","Nara Clan","Sand Non-Clan","Uchiha Clan","Sound Non-Clan","Hyuuga Clan","Snow Non-Clan")
usr.country = input("Select your country","Country", usr.country) in list("Fire Country","Rice Field Country","Tea Country","Wind Country")

var/mob/new_mob
switch(char_class)
if ("Naruto") new_mob = new /mob/Naruto()
if ("Sasuke") new_mob = new /mob/Sasuke()
if ("Aburame") new_mob = new /mob/Aburame()
if ("Haku") new_mob = new /mob/Haku()

new_mob.name = char_name

src.client.mob = new_mob
var/turf/first_location = locate(1, 1, 1)
new_mob.Move(first_location)
del(src)


mob
Login()
..()


sample_report()


proc
sample_report()
src << "<font color=#FFCC99 size=0>[name] has entered the game!.</font>"

save_me()
src.client.base_SaveMob()

Stat()
stat(src)
stat("{status}")
stat("Level: ",src.level)
stat("Stamina: ","[src.hp]/[src.maxhp]")
stat("Chakra: ","[src.mp]/[src.maxmp]")
stat("Defence: ",src.defence)
stat("Agility: ",src.agility)
stat("Strength: ",src.str)
stat("Experience: ","[src.exp]/[src.maxexp]")
stat("Level: ",src.level)
stat("{jutsus}")
stat("Genjutsu: ",src.genjutsu)
stat("Taijutsu: ",src.taijutsu)
stat("Ninjutsu: ",src.ninjutsu)
stat("{information}")
stat("Country: ",usr.country)
stat("Clan: ",usr.clan)
stat("Location: ","[x] [y] [z]")
statpanel("Back Pack")
stat(contents)


Problem description:
i dont get any error when i press CTRL+K, but the problem is occured when you create new character, and the bugged one is under the Country&Clan.. when i create a new character the window that makes you choose your clan and country showed up, but when the character entered the world.. Under Location and Clan
there is nothing but empty................ please help me..
Don't put usr in procs. Unless the proc is a pseudoverb, like Click().
In response to Jp
        if(ckey_name) // only do this if you have a char already in
src.clan = input("Select your clan","Clan", src.clan) in list("Akimichi Clan","Haku's Clan","Inuzuka Clan","Kaguya Clan","Aburame Clan","Kidomaru's Clan","Leaf Non-Clan","Nara Clan","Sand Non-Clan","Uchiha Clan","Sound Non-Clan","Hyuuga Clan","Snow Non-Clan")
src.country = input("Select your country","Country", src.country) in list("Fire Country","Rice Field Country","Tea Country","Wind Country")

mob
Login()
..()


sample_report()


proc
sample_report()
src << "<font color=#FFCC99 size=0>[name] has entered the game!.</font>"

save_me()
src.client.base_SaveMob()

Stat()
stat(src)
stat("{status}")
stat("Level: ",src.level)
stat("Stamina: ","[src.hp]/[src.maxhp]")
stat("Chakra: ","[src.mp]/[src.maxmp]")
stat("Defence: ",src.defence)
stat("Agility: ",src.agility)
stat("Strength: ",src.str)
stat("Experience: ","[src.exp]/[src.maxexp]")
stat("Level: ",src.level)
stat("{jutsus}")
stat("Genjutsu: ",src.genjutsu)
stat("Taijutsu: ",src.taijutsu)
stat("Ninjutsu: ",src.ninjutsu)
stat("{information}")
stat("Country: ",src.country)
stat("Clan: ",src.clan)
stat("Location: ","[x] [y] [z]")
statpanel("Back Pack")
stat(contents)




i already change usr ---> src... still the choosen clan and country wont show up... T_T ... what should i do?
In response to VirusE2006
You've still got it. Input defaults to usr. input(src,"stuff","More stuff"... should be what you're using.