You'll have to expand the table for each extra stat, or redo how stats are handled. So if you're adding like 100+ max stats, it may be better to simply take out the table and handle it differently. That's what I did for Smaug.
16 Oct, 2007, Hades_Kane wrote in the 6th comment:
I'm at work and thus away from my code, but we set our stat caps at 255. If I recall right, in ROM there is a MAX_STAT or MAX_STR etc. declared somewhere in merc.h and somewhere in const.c you have another entry that deals with the maximum on the stats, which also deals with the maximum for race and class stuff.
Then there is a large table for str_app and wis_app, etc. I'm sure there is a more elegant way to do this, but I expanded the table all the way to 255 and changed the values that each stat spits out. A formula or some other way of dealing with that many stats would probably be better, but I did that when I was first getting started.
In regards to wanting stats able to go higher, but not be trained past a certain point, a new value in your race struct detailing the max for that race to be able to be trained, followed by a check against that value in train might work well enough, or if you wouldn't be sure how to do that, a check for race followed by stat followed by value to directly restrict it in the train function would work.
actualy most amazeingly this might be something I can help with since I had a simaler problem *wanting to remove that evil stat tabole* I ended up just outright linking each substat to gains themselfs …. so like dam bonus would be say 1/10 of ones current strength
err my substats etc are difernt part of why I am only listing one that and I dont want to reveal too much of my possaboly doomed to fail project. but anyways…. doing it up like this all I had to do was place some limiters in a few other places so that stats couldent go any higher. if your useing the train command still then placeing a racial ifcheck in there is what I see beeing one of the better roughts but I could be wrong since I dont know what you have planned stat wise.
P.S. I will note that I am definitly not the best coder in existance and anything I create could be highly unstabole and cause the entier univers to implode at any given moment but then again this is my hobby not my job so I dont have to be perfishent in it I just have to enjoy it as for why the tabole exists I beleve its ment to give it more of a D&D feel seriously if I am not mistaken it even follows the old D&D stats in how they work *except for the trains etc* I could be wrong though ether way I always hated that thing its waaaayyy too limiting