Re: [NEWBIE][CODE] Saving Player Stats

From: Jeremy Overbay (
Date: 03/14/01

> Nope, these are the default stats of the initialized
> player structure.  You need to initialize the structure
> before you try to assign values to the various members of
> the structure.  What's happening is that you are setting
> all the stats of the player, THEN initializing the struct
> data, which is setting them all to 25's.  If you will go
> and reread the init_char() function you will find that the
> "if it's the first player" case is only setting their xp,
> level, and hp/mana/move.  The rest of the function is var
> inits to default stats. are absolutely right. ;}

thanks for the very much needed correction to my mistaken perception of that


   | FAQ: |
   | Archives: |

This archive was generated by hypermail 2b30 : 12/04/01 PST