Re: NEWBIE CODE: * Rolling Stats *

From: Wout Mertens (Wout.Mertens@rug.ac.be)
Date: 05/22/96


On Mon, 20 May 1996, Corey Hoitsma wrote:

>   case CON_QROLL:
>                 switch (*arg) {
>                 case 'y':
>                 case 'Y':
>                 break;
>                 default:
> roll_real_abils(d->character);
> sprintf(buf, "Dice Rolls: STR: [%d] INT: [%d] WIS: [%d] DEX: [%d] CON: [%d] CHA
[yadda yadda]
> I'm looking at the code inbetween the // *'s.. 
> Anyways, this rolls a new characters stats after they have selected
> their class. But, after someone selectes the stats they want with a y,
> it changes them.. somehow it rerolls them..

> I also found a line in class.c that rolls a newplayers stats
> in do_start. But when I remove it, it makes the persons stats all 25.

I would think that somewhere in do_start the stats are changed. Check it 
out. (I don't have access to my code right now :-/). Also, you could try 
moving do_start to *before* where you ask if the stats are good...

Hope This Helps,

Gekke Eekhoorn of BUG.



This archive was generated by hypermail 2b30 : 12/18/00 PST