I need help. It doesn't launch the screen to pick the race I want. Can some1 help me?
-----------------------------------------------------------
this is my Create a Character turf i use for the button
turf/NewChar
Click()
usr.sight = 1 //Make so they can't choose another choice
if (fexists("players/[usr.ckey].sav")) //Checks for a save file
switch(alert("Your previous character will be erased! Continue creating a new character?","[world.name]","Yes","No"))
if ("Yes")
usr << "You have chosen to create a new character. Your previous character will be deleted!"
usr.CreateChar()
return ..()
if ("No")
usr << "You have chosen not to create a new character. Please reconnect and LOAD your character."
del(usr)
return ..()
else
usr.CreateChar() //No savefile
return ..()
..()
-----------------------------------------------------------
------------------------------------------------------------
this is my Create a character procedure
mob
proc
CreateChar(mob/PC) //Procedure to create a character
usr.icon = 'Goku.dmi' //Character's Icon
usr << "Character creation successfully completed!" //Character creation completion messege
usr.loc = locate(1,1,2) //Spawn character on 1,1 map 1
usr.sight = 0 //Character has sight
usr.SaveChar() //Autosaves the character
..()
------------------------------------------------------------
------------------------------------------------------------
and this is the code i want to insert to the procedure but dunno how
mob/CreateNow
var/mob/PC
Login()
var/CharName = input("What would you like to be called?","Choose A Name",src.key)
switch(input("Which race would you like to be?","Choose A Race","Saiyin") in list("Saiyin"))
if("Saiyin")
PC = new /mob/Saiyin()
PC.name = CharName
src.client.mob = PC
del(src)
----------------------------------------------------------->
ID:174158
![]() Sep 23 2003, 12:53 pm
|
|