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?
ID:149777
![]() Feb 19 2002, 3:05 pm
|
|
I put
mob/verb/create_character() usr.name = name it worked. But now, where do I make the list of chars to choose from? |
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. |
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) |
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! Questions of this sort really belong in Newbie Central. The Code Problems forum is for debugging code you already have. Lummox JR |
New problem
Error: missing-left hand argument to * Problem: if with the switch(input***)************ My other problem is fine. ^__^ |
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. |
-Rcet