Hey everyone, I'm in the painful process of a major overhaul on the Rom
codebase to suit my current mud needs, so I snagged a copy from game.org and
proceded to go to work, I'm really not all that experienced with C, but I
believe I understand the basics of it, hopefully the 'ol knowledge vault
will grow in time.

Anyways, I'm rambling here, I just had a couple questions I was hoping you
guys could help me out with, I don't have the file in front of me but I
remember 90% of it anyhow (I have to boot into Windose to utilize my uber
56K modem, Linux won't recognize it) but my first question has to do with
const.c

I added a BUNCH of stuff to class_type in merc.h for the 'ol character
creation process and in the end my resulting class_table for one class ends
up something like this.

(This is just a made up bunch of numbers so don't expect any of it to fit)

{
    "Thief", "Thi",  STAT_CHA,  OBJ_VNUM_SCHOOL_DAGGER,
    100,  35,  11,  23, 23,  25, 26,  28, 23,  23, 25,  28, 23, <--- First
number is the cost of the class, second is skill adept, third is combat
level, the rest deals with resist
    1, 1, 1, 1, 1, 1, 1, 1, 1, <----- Min stats for attributes for class
    20, 15, 17, 18, 29, 13, 13, 12, 29, <------ Max stats for attributes for
class
    2, 4, 5, 6, 1, 20, 1, 20, 3, 6, 4, 6, 2, 4, 1, 12, 1, 12 <---------Set
for the dice rolls, first number is d and second number is n so 2d4 based on
class and stats
    3, 7 <------ HP min and max per level (Not counting Con bonus)
    FALSE, FALSE, FALSE, <--------- (None of these will be gain per level,
letting the program know that the class uses this)  Mana,  Spell Points then
Spell Factor Points
    0, 0, 0, 0, <-------------------- cost for the Spell Points in the four
spell categories
    0, 0, 0, 0, <-------------------- cost for the Spell Factor Points in
the four spell categories
    "Thief race", <-- Hopefully will be able to make this show the races
that are allowed to be Thieves
    "Thief spell group", "Thief spell school", <---- Self explanatory
    "Thief restricted", <------ Restricted skills/spells/etc., for that
class
    "Thief only", "Thief discount", "Thief default", <----First is class
only skills, specific skills for that class at discount and default is
everything else avail.
    "Thief sub class" <--------Allowable sub classes
},


Now my question is would it be best to recreate the group_type struct in
const.c to accomodate the extra stuff at the bottom? or should I just cram
it all into the current group_type struct.....and if so, what exactly is the
{-1, -1, 0, -1} defining in the struct? I can't seem to figure that part
out, my best guess on that would be the price that shows on the screen, but
I scrolled down further and discounted that idea, so I'm kinda lost on that
one.....merc.h has it as rating[MAX_CLASS] but I'm not sure exactly how that
works......I suppose it could mean, -1 the class can't get it and a positive
number means that they get it at that level and a 0 is what they start off
with, but a little confirmation on that wouldn't hurt things.

Also how does the base_default and group_default interract with the
group_type struct furthur on down in const.c As far as I can tell, there's
no corralation between them, just wondering how it knows to utilize the
groups in there.

And if I could ask what you think of the class setup I'd love some feedback,
if there is a better way I could be doing this I'd love to know (and I'd
value the lists opinion far more than my own (shameless flatery =) ), BTW,
while the numbers are made up there is the proper amount of them listed so
there really is 9 attributes.

Thanks for any help guys,

John

Reply via email to