i need some help with getting these codes to work together
mob/create_character
var/mob/character
Login()
var/charactername = input("Hello, What is your name?","Character Name?")
var/characterlastname = input("Please input your character's lastname now.", "Character's Last Name?")
var/classlist[] = list("Warrior","Thief","Mage","Cleric","Beast")
switch(input("Pick your class?","Class Selection","Warrior") in classlist)
if("Warrior")
character = new /mob/characters/warrior()
if("Thief")
character = new /mob/characters/thief()
if("Mage")
character = new /mob/characters/mage()
if("Cleric")
character = new /mob/characters/cleric()
if("Beast")
character = new /mob/characters/beast()
switch(input("Now it is time to pick your alignment","What's your alignment?") in list ("Good", "Neutral", "Evil"))
if ("Good")
character.align = ALIGN_GOOD
if ("Neutral")
character.align = ALIGN_NEUTRAL
if ("Evil")
character.align = ALIGN_EVIL
character.name = charactername
character.lastname = characterlastname
src.client.mob = character
del(src)
..()
get that to work with
ID:176629
![]() Dec 25 2002, 4:24 pm
|
|
icon = 'new.bmp'
Click()
usr.sight = 1
if (fexists("players/[usr.ckey].sav"))
switch(alert("If you continue with a new character, your previous character will be erased. Do you wish to continue?","[world.name]","Yes","No"))
if ("Yes")
usr << "... Ok... Beginning character process now."
usr.CreateChar()
return ..()
if ("No")
usr << "Ok, Please reconnect for you are being disconnected now and then choose \"LOAD GAME\""
del(usr)
return ..()
else
usr.CreateChar()
return ..()
..()
If u can help, help me plz thanks