mob/proc/SayainCreation()
var/prompt_title = "Name"
var/help_text = "What is your name?"
var/default_value =key
var/char_name = input(help_text, prompt_title, default_value) as null|text
switch(alert("What is your Gender?","Gender","Male","Female"))
if("Male")
new_mob = new/mob/characters/Sayanjin()
new_mob.race="Saiyan"
new_mob.level=1
new_mob.ko=0
new_mob.gender="male"
new_mob.move=1
new_mob.overlays += 'tail.dmi'
new_mob.contents+= new /obj/SayajinTail
if("Female")
new_mob = new/mob/characters/Sayanjin()
new_mob.race="Saiyan"
new_mob.level=1
new_mob.ko=0
new_mob.gender="female"
new_mob.move=1
new_mob.overlays += 'tail.dmi'
new_mob.contents+= new /obj/SayajinTail
goto newmob
newmob
new_mob.name = char_name
src.move=1
src.oocname=char_name
src.client.mob = new_mob
new_mob.loc=locate(96,104,1)
world<<"<b><tt><font color=Green>{{[src.name]}}/{{[src.key]}} has logged in!.</font color></tt></b>"
Problem description:
This is a proc i made for my login title. The player clicks their race and it runs the selected race proc. The proc above is for a sayian race, but its a little buggy.The proc keeps popin up when i login.