First of all, I've been lurking and reading the OLC + COLOR thread and I am
upset that people have suggested that QuickMUD is inferior and crap and so
on.  I use QuickMUD and am extremely pleased with the code and immensely
grateful to the people who have released it, free of charge.  It saves so
much time and adds alot of functionality.  Guess what, all you people who
use it and bash it?  You suck.  You're like the people who only use Windows
and bash it.  You're using something that people have spent alot of time
perfecting and patching, and you are whining.  What's it cost you?  Nothing.
Don't like it?  Don't use it.

Anyway, flaming aside..

I'm trying to change the damage messages of characters, so when they are not
wielding object, they have damage message like 'claw' and 'bite'.
Here's what I thought would work:
in save.c, part of fread_char:
case 'R':
KEY ("Race", ch->race, race_lookup (fread_string (fp)));
/*Assign damage types for each race.*/
    ch->dam_type = 17;  /*punch, basic case*/
if (ch->race == race_lookup ("giant"))
    ch->dam_type = 8;        /*crush*/
if (ch->race == race_lookup ("feline"))
   ch->dam_type = 5;  /*claw*/
if (ch->race == race_lookup ("canine"))
   ch->dam_type = 10;  /*bite*/

Yes, thanks; I'm aware that 'feline' and 'canine' sound like shitty races.
I'm also aware that I could use 'else if' or 'switch', but I'm too stupid
yet to know how to make them compile correctly.  It compiles, but your
damage message in the game is "You scratch the young orc.".  I traced this
down in fight.c as being:
    if (dt == TYPE_HIT)
    {
        if (ch == victim)
        {
            sprintf (buf1, "{3$n %s $melf%c{x", vp, punct);
            sprintf (buf2, "{2You %s yourself%c{x", vs, punct);
        }
...

So, it's not REALLY assigning it a damage noun, I don't think.  Any ideas?
:(

Thanks,
Jeremy Hill


Reply via email to