ID:149777
 
I don't know how to make where you chose your name when you start a new char!

How do you make more than more Charecter too!

Will someoen help?
Im not going to tell you, because you need to learn. Look up input and name in the reference.

-Rcet
In response to Rcet
I put

mob/verb/create_character()
usr.name = name

it worked.

But now, where do I make the list of chars to choose from?
In response to Pizzaro
1.this is a newbie ?
2.look at demos and libs on this site befor asking 20 quetions
In response to Scoobert
I am not that new, I have alot done, I just couldn't find anything on THIS!

I thought someoen was nice enough to respond.
In response to Pizzaro
I have done what Scooper said "look at the demos"
and I have one error will soemone help with it?

The error is: If: missing comma ',' or right-paren ')"

The code is:


mob/create_character
var/mob/character
Login()
var/charactername = input
switch(input
if
character = new /mob/DW1Hero()
if
character = new/mob/Human(female)()
character.name = charactername
src.client.mob = character
del(src)

In response to Pizzaro
i found your error a comon one too i have highlighted it with **'s

mob/create_character
var/mob/character
Login()
var/charactername = input
switch(input***)************
if
character = new /mob/DW1Hero()
if
character = new/mob/Human(female)()
character.name = charactername
src.client.mob = character
del(src)
As for choosing your name in the beginning, I have built a wonderful library that gives you a proc called ParseName() that allows you to pick a name. ParseName() can be found here.

-Lord of Water
Pizzaro wrote:
I don't know how to make where you chose your name when you start a new char!

How do you make more than more Charecter too!

Questions of this sort really belong in Newbie Central. The Code Problems forum is for debugging code you already have.

Lummox JR
In response to Scoobert
Thank you!
In response to Scoobert
New problem

Error: missing-left hand argument to *

Problem: if with the

switch(input***)************





My other problem is fine. ^__^
In response to Pizzaro
did you take out the stars first?

no realy, you donr have anything to tittle the window it pops up in so you need to add that, just look at some others. I cant remeber the format right now.
In response to Scoobert
when I took it out, It gave me a way to many errors!