The function you're looking for is raw_kill().

You might want to note that a pc does not actually die at 0 hitpoints,
but at -11.  Between 0 and -10, they are stunned, incapacitated, or mortally
wounded (see update_pos() for details).

Look at damage() to get an idea of how all the death stuff is handled.


Dennis


On Fri, 22 Feb 2002 [EMAIL PROTECTED] wrote:

> I'm working on some bleed code (modified from a snippet), and something
> interesting happens. They...don't die!
> I have tried a few things, and they don't work. Here is what I have right now:
>
> ========
> if ( !IS_NPC(ch))
>      {
>      if (ch->race == race_lookup("dwarf") || ch->race == race_lookup
>          ("giant"))
>         {
>             if ( ch->pcdata->condition[COND_BLEEDING] > 5 &&
>                         ch->pcdata->condition[COND_BLEEDING] < 11 )
>               {
>                      send_to_char("You are {rbleeding{x!\n\r",ch);
>                       ch->hit = ch->hit - 10;
>                   if (ch->hit < 1)
>                   {
>                    ch->position = POS_DEAD;
>                   }
> -----snip
>
> That doesn't kill them. I've tried looking around in the code to find where a
> player dies and I can't really pin point it down, so I am looking for some
> suggestions on where to look, or something else.
> Thanks
>
>


Reply via email to