Here is what I have coded:
mob/creating_character
Login()
..()
src.Status()
Thats where the random stat proc is called upon.
proc/Status()
var/rand1 = rand(5,15)
src.Str = rand1
src.Def = rand1
src.MStr = rand1
src.MDef = rand1
This is the random stat proc, this creates the status for the player.
mob/var
Str = 0
Def = 0
MStr = 0
MDef = 0
This is where the Strength, Defence, Magic Strength and Magic Defence vars are defined.
I have set the vars equal to "0" and null and when set at "0" the stats return to "0" once the player is in the game. The same goes for when the vars are set to null, but with null they have no number to represent the stat.
I am wondering if anyone can help me solve this problem and make sure the randomly generated status gets set and stored on the player's stats upon creation and to make sure that the stats do not return null or a "0".
--Lee
If your using deadrons character handling, all you'd have to do is go to the lines where it says
// Set the attributes.
new_mob.name = char_name
and call the Status() proc just before that, then add
new_mob.Str = Str, and repeat for the other classes.
If you're not using deadrons stuff, well then I dunno, I'd have to see more of your creation stuff. :)