Ok, i was copying and pasteing when i started getting all these indentaion errors, could anyone help me with them? I would much appreciate any help. Here is the code:
proc/base_FirstTimePlayer()
var/mob/BaseCamp/FirstTimePlayer/first_mob = new()
first_mob.name = key
first_mob.gender = gender
mob = first_mob
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("You already have a character named that! Please choose another name.")
src.CreateCharacter()
return
var/list/classes = list("Knight (Male)", "Knight (Female)", "Mage (Male)", "Mage (Female)")
help_text = "Which class would you like to be?"
default_value = "Knight (Male)"
var/char_class = input(src, help_text, prompt_title, default_value) in classes
var/mob/new_mob
switch(char_class)
if ("Knight (Male)") new_mob = new /mob/knightm()
if ("Knight (Female)") new_mob = new /mob/knightf()
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)
return first_mob.FirstTimePlayer()
I know this may look confusing but i need help. FYI I'm using this code to help make classes to choose from. If anyone has a better class system that would like to show me, please let me know.(Except for Dedron's cuz that's the one i'm trying to use :) Thanx.
ID:150878
![]() Jul 11 2001, 7:16 pm
|
|
Nevermind, i just scrapped the whole thing. Thanks Anyways