ID:262542
 
Code:
client/base_num_characters_allowed = 3
mob/BaseCamp/ChoosingCharacter
mob/player/Login()
world << "[usr] has joined the game"

mob/Logout()
world << "[usr] has left the game"

mob/CreatingCharacter
base_save_allowed = 0

Login()
spawn()
src.CreateCharacter()

proc/CreateCharacter()

alert("Welcome to [world.name] This is a Icon tradeing game this game isnt a rip but it does use icons from Icon Chatterz")

var/char_name
var/A
do
char_name = input(src, "What is the character's name?", "Create Character", key) as text
A = CheckName(char_name)
while (!A)
if (!char_name)
alert("No name entered! Try Again!")
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/races = new()
races += "Pacman"
races += "Mrs Pacman"
races += "Sonic"
races += "Knucles"
races += "Angel Chao"
races += "Evil Chao"
races += "Amy"
var/char_race = input("What class is [name]?", "Character", null) in races
var/mob/new_mob
switch(char_race)

if ("Pacman")
icon = 'chars.dmi'
icon_state = "pac1"
usr.loc=locate(45,45,1)
if ("Mrs Pacman")
icon = 'chars.dmi'
icon_state = "pac2"
usr.loc=locate(45,45,1)
if ("Sonic")
icon = 'chars.dmi'
icon_state = "sonic"
usr.loc=locate(45,45,1)
if ("Knucles")
icon = 'chars.dmi'
icon_state = "knuxx"
if ("Angel Chao")
icon = 'chars.dmi'
icon_state = "angel"
usr.loc=locate(45,45,1)
if ("Evil Chao")
icon = 'chars.dmi'
icon_state = "evil"
usr.loc=locate(45,45,1)
if ("Amy")
icon = 'chars.dmi'
icon_state = "amy"
usr.loc=locate(45,45,1)

new_mob.name = char_name
new_mob.Class = char_race
src.client.mob = new_mob
del(src)


Problem description:ok when i go to create a char it wont start the create char proc and it also dont save but 1 char when its suposses to save 3 some one plese help me(NOTE:This uses Deadrons charter handling cause im still lerning to code and cant make my own yet lol

It's because, from what I can see, you're never logging a /mob/CreatCharacter in, which is where the proc is being called.

Put this in your code, and you shouldn't have a problem.
world
mob=/mob/CreateCharacter


You see, you're probably starting out with a mob of type mob/player, which, as you see, only displays a message when logged in.

mob/player/Login()
world << "[usr] has joined the game"


So if you add in the code I gave you, which will make the default mob to be used when a player joins the game into /mob/CreateCharacter, it should fix your problem.

P_S
No put usr in proc. Ungh.
In response to Jp
Heh... I should've noticed that.

P_S
In response to Prodigal Squirrel
k now can some one tell me why it only saves 1 charcter on all my other games ive made its will auto save 3 chars but on this one just 1 can some one tell me whats going wrong with it

SummonerHater