J.T. wrote:
>
> I have been messing around with parry and dodge alot lately, and every
> time I try a different method, I get the same results: The pc only
> passies, or only dodges, and the mobs that are fighting the character
> who has parry will parry, even though they don't have the skill. I was
> just wondering if anyone had a working parry skill that they could post,
> or possibly give me a few ideas on how to get this skill working.
>
> Thanks.
> Joe
This also works...
if ((((diceroll < 20) && AWAKE(victim)) &&
((diceroll == 1) || ((calc_thaco - diceroll) > victim_ac)))) {
if ( (GET_SKILL(victim,SKILL_DODGE) >= number(1,101)) &&
(number(0,2) == 0) ){
act("$N swiftly dodges your attack.", FALSE, ch, 0, victim, TO_CHAR);
act("$N swiftly dodges $n's attack.", FALSE, ch, 0, victim,
TO_NOTVICT);
act("You swiftly dodge $n's attack.", FALSE, ch, 0, victim, TO_VICT);
return;
}
if (GET_SKILL(victim, SKILL_PARRY) >= number(1, 101)) {
if (!GET_EQ(ch, WEAR_WIELD) >= number(101, 101))
act("$N swiftly parries your attack.", FALSE, ch, 0, victim,
TO_CHAR);
act("$N swiftly parries $n's attack.", FALSE, ch, 0, victim,
TO_NOTVICT);
act("You swiftly parry $n's attack.", FALSE, ch, 0, victim, TO_VICT);
return;
}
Needs some work, but it's in the ballpark :)
RS
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST