ID:149540
 
My login looks like this,

#include

mob
Login()
..()
if(usr.saved<1)
usr.Name=usr
switch(input("What race would you like to be?")in list("Human","Elf","Arlian","Troll","Dwarf","Halfling"))
if("Human")
usr.Race="Human"
Strength=12
Dexterity=11
Wisdom=11
Constitution=11
if("Elf")
usr.Race="Elf"
Strength=10
Dexterity=12
Wisdom=14
Constitution=10
if("Arlian")
usr.Race="Arlian"
Strength=11
Dexterity=12
Wisdom=11
Constitution=10
if("Troll")
usr.Race="Troll"
Strength=15
Dexterity=10
Wisdom=6
Constitution=15
if("Dwarf")
usr.Race="Dwarf"
Strength=14
Dexterity=10
Wisdom=10
Constitution=13
if("Halfling")
usr.Race="Halfling"
Strength=10
Dexterity=14
Wisdom=12
Constitution=9
usr << "Great, [src] is now a [Race]! Many good fortunes to him."
view() << "[src] is given live and is now /a [Race]."
usr.saved=1
TNL=usr.ExpR-Exp


I want it to ask if you want to create a new character, delete on, etc. Can anyone help?
In response to Kappa the Imp
Yea, I already have that.
In response to Daemon5532
Daemon5532 wrote:
Yea, I already have that.

Ha! That's the funniest thing I've read all week. ;-)
In response to Spuzzum
hahahahaha I don't get it.
In response to Daemon5532
Daemon5532 wrote:
hahahahaha I don't get it.

Oh, it's nothing -- it was painfully obvious that you had CharacterHandling, he tells you to use CharacterHandling. If you read what you said as sarcasm, it becomes hilarious.


Anyway, you'll want to add the following setting (NOT inside of your Login() proc, but on its own line, without indentation).

client/base_num_characters_allowed = 5 //or however many you want
In response to Spuzzum
*shrug* Guess that's how it is when you're tired. What's even funnier is i've been waiting for 3 weeks to get help on that and finally someone gives me one line that makes it work, Thanks
In response to Spuzzum
Lol, by the way, now that we're on the subject of login, how do I get it so it asks your name? It just automatically puts your key as the name.
In response to Daemon5532
AHAHHAHAHAHAHAHAHA =) dident know it supported "if" commands that makes it all the bit easyer....the way my mind works i think about the codeing that im going to put into the game so that way befor i put it in i can work out most bugs in my head sort of odd i think i eather code to much or play to many games =)