Creating New Stats

Posted by Bink03861 on Mon 08 Mar 2004 06:08 AM — 6 posts, 19,673 views.

#0
Hello All,

I'm currently working on Smaug version 1.4a and I was wondering how I would go about modifying the stats Str, Int, Wis, Dex, ect and creating perhaps a Body stat,well, something on the lines of that. Just making a new stat and removing some of the existing ones. With this being my first step into cuztomizing the mud i'm currently working on. Can anyone please help me out as to which files i should be in and what I should be messing with? Thanks for your time.
Amended on Mon 08 Mar 2004 06:12 AM by Bink03861
Australia Forum Administrator #1
Well, I would start with mud.h which is where they are declared, and then search for wherever the one you are changing is, and change how it works.
#2
I found out how to change the stats around but i can't locate the function that defines the damage done. Do you know where that is located? I plan on making a def stat that minuses a certain number from the damage. Any clues where to find this damage function?
Canada #3
I beleive that what your looking for is damage(), its in fight.c
#4
Ok i did the stats but had not messed with the damage thing yet and i have a problem. All i did was get rid of luck and change the names of the other stats and now the mud wont load up. There are no compilation errors at all. I do ./startup #### & and it gives a [1] #### the normal but when i try to connect it just doesn't work. I read the section on gnu gdb but that really didn't help. Can someone please help me out. Thanks.
USA #5
Try starting the MUD normally, via the smaug file, rather than the script. It should say some errors.