Re: RE: Backstab.

From: Johan Dustler (Johan.Dustler@epk.ericsson.se)
Date: 02/04/97


> From: Mental <kjek@excalibur.onate.nmhs.edu>
> 
> I want to limit the amount of times you can backstab a mob.  The backstab 
> flee, backstab flee loop is something I wish to avoid.  I have an idea on 
> how to do this.  I think that if you backstab a mob, then it should gain 
> the aware bit until reboot/death.  Sorta like:  You stuck a knife in my 
> back... NOBODY gets behind me now.   Anybody know how to do this?  Or has 
> someone already written code that does it that they would like to share.
> 

To make a mob aware just add SET_BIT(MOB_FLAGS(victim), MOB_AWARE)
to the function hit() act.offensive.c.

    if (type == SKILL_BACKSTAB) {
      dam *= backstab_mult(GET_LEVEL(ch));
      damage(ch, victim, dam, SKILL_BACKSTAB);

/*add here*/

    } else
      damage(ch, victim, dam, w_type);
  }


You could also set a waitstate on the backstabber. If you add
WAIT_STATE(ch, PULSE_VILOENCE) just after the line:

prob = GET_SKILL(ch, SKILL_BACKSTAB);

the backstabber won't be able to do anything for 2 fight rounds
no matter if it is a miss or hit.

-Johan
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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