Re: [Multi-attack obscure error]

From: Zeavon (zeavon@kilnar.com)
Date: 11/05/00


On Mon, 6 Nov 2000, RJ Bean wrote:

> In an attempt to implement multiple attack skills (second attack, third
> attack...sixth attack) I edited perform_violence() near the call to hit()
> and put some nested if statements along the lines of if you got second
> attack, then hit, if third attack, then hit, etc...  I compiled it with no
> errors and it runs fine for like about 3 or 4 rounds of combat.  Then the
> mud goes kablooie, crashes down and stuff.  It may have something to do with
> the victim going to pos_mortally wounded b/c half the time it crashes when
> the next round starts after the vict has been mort wounded.  MSVC 6.0 offers
> to debug the .exe file when an error occurs.  It brought me to the first

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.

--
Zeavon Calatin, MageMaster of the Realms
Spear of Insanity
http://spear.kilnar.com/    telnet://spear.kilnar.com:1066


     +------------------------------------------------------------+
     | 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