Re: [Coding] Damage

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 10/31/97


On Fri, 31 Oct 1997, Ben Britton wrote:

>I am interested showing damage per hit to characters.  I have messed with
>several of the src's including the fight.c, act.offensive.c, etc, but to
>no avail, i was wondering if anyone else has tried this and is it possible
>to tell me what have you done?

In fight.c, find:
  /* damage message to damager */

Now, after the replace_string() call, the message being sent to the
character is in 'buf'.  Your amount of damage done is in 'dam' (an int).
Just append the damage done to the buffer before the act() line.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST