[CF-Devel] more alchemy formulae

Johnny Shelley jshelley at ictransnet.com
Wed Apr 10 14:22:35 CDT 2002


On Tue, 9 Apr 2002, Mark Wedel wrote:

>
     
        Has anything been done to make the formulas more accessible to the players 
     
     >
     
      (characters)?  From my playing experience, if you try to do it honestly (find 
     
     >
     
      formula within the game), it seems next to impossible to get much in the way of 
     
     >
     
      a set of formulas to make anything.
     
     
Most recipe books seem to be random, with a few exceptions that map
makers have created.  Currently, random book types seem to be
determined by a random roll of 0-5 in tailor_readable_ob() which is in
common/readable.c.

It would be pretty trivial to add a few more case statements to the
roll, but there's no easy way to weight the possibilities in a simple
text file.

Currently, a random book has an equal chance of being a monster,
description, artifact description, spell path description, alchemy
formula, god description or a book from the messages file.

I think the best way to handle this would be to take the overall number
of books and then do a random roll for a specific book from the entire
list. As it is, a book type with only 5 books has just as much a chance
of being selected as a book type with 500.

johnny

PGP Public Key available from:
     
     http://www.keyserver.net:11371/pks/lookup?op=get&search=0x17BF1DD3
     
     
    


More information about the crossfire mailing list