Re: [Multi-attack obscure error]

From: Patrick Dughi (dughi@imaxx.net)
Date: 11/05/00


> > In an attempt to implement multiple attack skills (second attack, third
> > attack...sixth attack) I edited perform_violence() near the call to hit()
>
> Man. Is this in the FAQ yet? Should be. You're killing your victim with
> attach X and then trying to hit him with attach X+1. The game doesn't like
> the fact that you're trying to kill a dead person. Check the archives for
> a solution.

        To further expand on this; when things die, the memory associated
with them is freed; then, you try to do anything to that freed memory
(check AC, remove/add hit points, etc), you will get random results
(usually a crash).

        Just exit the attack loop if you see that someone's killed.

                                                PjD


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



This archive was generated by hypermail 2b30 : 04/11/01 PDT