Re: NEWBIE:new spell help!!

From: John Evans (evansj@HI-LINE.NET)
Date: 04/10/98

On Fri, 10 Apr 1998, Fiorin wrote:

>I recently coded a drain life spell and can't seem to figure out how to
>get the damage that it does to be added to the player or mobs current hp
>which is what I want the spell to do. Any help would be greatly

  dam = dice(1, 8);  /* or whatever the damage is */
  GET_HIT(ch) = MIN(GET_MAX_HIT(ch), GET_HIT(ch) + dam);

That's all there is to it.

PS: Please make your email client wrap lines at 79 characters. Makes your
posts easier to read.

John Evans <>  --

Any sufficiently advanced technology is indistinguishable from magic.
  -- Arthur C. Clarke

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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