ID:146357
 
Code:
mob/var
age
strength
muscles
speed
agility
/*Variables are completely out of order but what the heck. That's something to fix later.*/

mob
Login()
if(src.born == 1) //Didn't know whether to use usr or src here. I'm going to go back and read that src vs. usr tutorial later and update this.
usr << "Welcome back to the world of the living,[src.name]"
return 0
else
createchar()


mob/proc/createchar()
alert("Hello. My name is....not important. At this moment there is something that you must do.","","Really?")
alert("Yes. Right now YOU DO NOT exist.","","?!?!?!")
alert("Don't worry my friend. I'm here to help you.","","Thanks...?")
input("First, what shall I call you?","","Enter your name here") as text
//The proc gets kind of long and I know by now you are tired of reading this noobish code so I'll get the the point.

mob
Stat()
statpanel("Stats")
stat("Name",name)
stat("Age",age)
stat("Gender",gender)
//etc,etc,etc.



Problem description:
Ok. Here is the problem. At runtime the stat panel comes up but it displays the Name and Gender of the client's key and not the ones they have input. What I'm wondering is if I'm using the wrong src for the vars or if there is a way to call of the Stat() after the character creation code is finished or anything of that such.

Look at this line:
input("First, what shall I call you?","","Enter your name here") as text

Assuming all your other input lines are the same, they aren't actually doing anything. A box is popping up asking for the player's input, but nothing's being done with it. In the case of this input, you'll probably want to set the player's name variable to whatever was typed in.
src.name = input("First, what shall I call you?","","Enter your name here") as text
Aside from what Jon88 said, you have usr abuse. :p
(alert and input default to usr)
In response to Jon88
Sorry it took so long to reply. Yeah Jon I was looking through some coding of a few demos I'd d/led and realized my mistake. Thanks for the correction though. =)