Re: parry skill

From: Cj Stremick (stremick@ix.netcom.com)
Date: 02/19/99


You have victim and ch switched in your "act" calls, it seems...


-----Original Message-----
From: Shane Augustine <sca@BU.EDU>
To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca>
Date: Friday, February 19, 1999 12:49 AM
Subject:  parry skill


>Ok I have NO idea why this isn't working.. I created a skill parry which
>only
>players should be able to used.  However it seems to work on mobs, and
>if two
>players have it, it'll only work for one of the players.  Also it keeps
>showing the
>wrong weapon name on the message lines.  any help would be really
>appreciated
>cause I am stumped.  This code is found in the damage function.
>
>struct obj_data *vwielded = GET_EQ(victim, WEAR_WIELD);
>
> if(!IS_NPC(victim)) {
>  if(GET_EQ(victim, WEAR_WIELD) != NULL && GET_SKILL(victim,
>SKILL_PARRY) > dice(1, 100)) {
>   attack_counter--;
>   act("&G$n skillfully parries $N's attack with his $p!&n", FALSE, ch,
>vwielded, victim, TO_NOTVICT);
>   act("&GYou skillfully parry $N's attack with $p!&n", FALSE, ch,
>vwielded, victim, TO_CHAR);
>   act("&G$n skillfully parries your attack with $p!&", FALSE, ch,
>vwielded, victim,  TO_VICT);
>   if(GET_SKILL(victim, SKILL_PARRY_SECOND) > dice(1, 100)) {
>    attack_counter--;
>    act("&G$n is able to fend off another attack by $N with $p&n",
>FALSE, ch, vwielded, victim, TO_NOTVICT);
>    act("&GYou are able to fend off another attack by $N with $p&n",
>FALSE, ch, vwielded, victim, TO_CHAR);
>    act("&G$n skillfully parries your attack with $p&n", FALSE, ch,
>vwielded, victim,  TO_VICT);
>   }
>  }
> }
>
>
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>     +------------------------------------------------------------+
>


     +------------------------------------------------------------+
     | 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 : 12/15/00 PST