Re: [ Code ] Problems with characters dying...

From: Ghost Shaidan (ghost@EOLA.AO.NET)
Date: 07/30/97

> Nono... The problem is that I have rooms that take away hp... like, you
> can have fire rain in the room, or acid rain or both... :)
>  So, that leaves me to write another function that will check for every
> type of 'rain' in the room and then act on it w/o killing the caracter and
> kill it later when going out of the function... :)

So you are using the damage() call, which cna extract the char if it dies.
I would put in a quick
if (!ch)

Not sure if it works from what you ahve said, but if the ch is killed and
extracted, ch is no longer.  is this too simple or does it sound good?

Ghost Shaidan

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

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