Defensive Rating

Scripts and support for your favorite MUD client.
belleshel
Sojourner
Posts: 526
Joined: Mon Jan 29, 2001 6:01 am
Location: Northeast

Defensive Rating

Postby belleshel » Thu Jul 05, 2001 4:21 am

I've added a few things to the combat statistics, this script specifically will keep track of your Defensive Rating. Meaning how often you actually avoid damage, and how you do that (%dodge/parry ect).

Use: defrate (also display will still show you all the offensive stats).
creset (resets the vars)

Hope its helpful to tanks,
Belleshel

p.s. zmud wont round so your defensive skill % might not always add up exactly to your defensive rating. (I left the offensive combat tracking in because it has been revamped some, so its a bit large)

99% ranger bash!


#CLASS {belcalci}
#ALIAS creset {mymiss=0;myhit=0;mych=0;mykills=0;myflank=0;mydodge=0;myparry=0;totalattk=0;hitper=0;chchance=0;mykick=0;mykickmiss=0;mob_miss=0;hit_taken=0;mybash=0;mybashmiss=0;total_bash=0;shi eld_blocks=0;myrip = 0;mob_attacks=0}
#ALIAS display {#SA Kills: @mykills;#MATH mob_attacks {@hit_taken+@shield_blocks+@myparry+@mydodge+@mob_miss+@myrip};#MATH total_bash {@mybash+@mybashmiss};#MATH bashrate (@mybash*100)/@total_bash;#MATH totalattk @myhit+@mymiss;#MATH totalkicks {@mykick+@mykickmiss};#MATH kickrate (@mykick*100)/@totalkicks;#MATH sb_rate (@shield_blocks*100)/@mob_attacks;#MATH ac_factor (@mob_miss*100)/@mob_attacks;#MATH dodge_rate (@mydodge*100)/@mob_attacks;#MATH parry_rate (@myparry*100)/@mob_attacks;#MATH rip_rate (@myrip*100)/@mob_attacks;#MATH flank_rate (@myflank*100)/@mob_attacks;#MATH hitper (@myhit*100)/@totalattk;#MATH mob_hit_rate {@hit_taken*100/@mob_attacks};#MATH mob_hit_rate {%abs( @mob_hit_rate-100)};#SA Total Attacks: @totalattk Hits: @myhit Misses: @mymiss CHs: @mych;#SA Total Parries: @myparry Dodges: @mydodge Mount Flanks: @myflank ShieldBlocks: @shield_blocks;#SA Total Kicks: @totalkicks Hits: @mykick Misses: @mykickmiss Kick Rate: @kickrate %;#SA Total Bashes: @total_bash Bash Hits: @mybash Bash Misses: @mybashmiss Bash Rate: @bashrate;#SA Hit Percentage: @hitper % Crit Rate @chchance %;#SA Defense Rate: @mob_hit_rate Parry Rate: @parry_rate Dodge Rate: @dodge_rate Flank Rate: @flank_rate Riposte Rate: @rip_rate AC Factor: @ac_factor SB Rate: @sb_rate}
#ALIAS defrate {#MATH mob_attacks {@hit_taken+@shield_blocks+@myparry+@mydodge+@mob_miss+@myrip};#MATH ac_factor (@mob_miss*100)/@mob_attacks;#MATH dodge_rate (@mydodge*100)/@mob_attacks;#MATH sb_rate (@shield_blocks*100)/@mob_attacks;#MATH parry_rate (@myparry*100)/@mob_attacks;#MATH rip_rate (@myrip*100)/@mob_attacks;#MATH flank_rate (@myflank*100)/@mob_attacks;#MATH mob_hit_rate {@hit_taken*100/@mob_attacks};#MATH mob_hit_rate {%abs( @mob_hit_rate-100)};#SA %ansi( bold, red)Defense Rate: @mob_hit_rate;#SA Parry Rate: @parry_rate | Dodge Rate: @dodge_rate | Flank Rate: @flank_rate | Riposte Rate: @rip_rate | SB Rate: @sb_rate | AC Factor: @ac_factor}
#VAR totalattk {0} {0}
#VAR flank_rate {} {0}
#VAR myrip {0} {0}
#VAR my_rip_rate {0} {0}
#VAR mymiss {0} {0}
#VAR myhit {0} {0}
#VAR mych {0} {0}
#VAR mykills {0} {0}
#VAR myflank {0} {0}
#VAR mydodge {0} {0}
#VAR myparry {0} {0}
#VAR mykick {0} {0}
#VAR mykickmiss {0} {0}
#VAR totalkicks {0} {0}
#VAR kickrate {} {0}
#VAR hit_taken {0} {0}
#VAR shield_blocks {0} {0}
#VAR sb_rate {} {0}
#VAR mob_attacks {0} {0}
#VAR mob_miss {0} {0}
#VAR mob_hit_rate {0} {0}
#VAR parry_rate {} {0}
#VAR dodge_rate {} {0}
#VAR ac_factor {} {0}
#VAR total_bash {0} {0}
#VAR mybash {0} {0}
#VAR mybashmiss {0} {0}
#VAR bashrate {} {0}
#TRIGGER {CRITICAL} {#AD mych 1}
#TRIGGER {You deflect a * blow, and strike back at *} {#AD myrip 1}
#TRIGGER {You miss} {#AD mymiss 1;#AD myhit -1}
#TRIGGER {You dodge} {#AD mydodge 1}
#TRIGGER {parries your futile lunge} {#AD mymiss 1}
#TRIGGER {deflects your blow, and strikes back at YOU!} {#AD mymiss 1}
#TRIGGER {blocks your futile attempt with (his|her|its) shield!} {#AD mymiss 1}
#TRIGGER {You {slash|hit|pierce|bludgeon|pound|crush}} {#AD myhit 1}
#TRIGGER {You barely {slash|hit|pierce|bludgeon|pound|crush}} {#AD myhit 1}
#TRIGGER {You maneuver your mount to avoid} {#AD myflank 1}
#TRIGGER {Your {slash|hit|pierce|bludgeon|pound|crush}} {#AD myhit 1}
#TRIGGER {your share of experience} {#AD mykills 1}
#TRIGGER {staggers from your fearsome} {#AD myhit 1}
#TRIGGER {Your final {slash|hit|pierce|bludgeon|pound|crush}} {#AD myhit 1}
#TRIGGER {Your {slash|hit|pierce|bludgeon|pound|crush} enshrouds} {#AD myhit 1}
#TRIGGER {You parry} {#AD myparry 1}
#TRIGGER {Your boots need polishing again - blood all over.} {#AD mykick 1}
#TRIGGER {Your beautiful full-circle-kick misses * by a mile.} {#AD mykickmiss 1}
#TRIGGER {You miss your kick * groin, much to his relief.} {#AD mykickmiss 1;#AD mymiss -1}
#TRIGGER {Your kick hits * in the solar plexus.} {#AD mykick 1}
#TRIGGER {You block * with your shield} {#AD shield_blocks 1}
#TRIGGER {* {hits|slashes|crushes|whips|pierces|fist|blast|punches|touches|whip} you *} {#AD hit_taken 1}
#TRIGGER {A mighty hit from * makes you contemplate a new career!} {#AD hit_taken 1}
#TRIGGER {* misses you with * {hit|slash|crush|whip|pierce|fist|blast|punch|touch|whip}} {#AD mob_miss 1}
#TRIGGER {You stagger from a fearsome hit from *} {#AD hit_taken 1}
#TRIGGER {avoids your bash,} {#AD mybashmiss 1}
#TRIGGER {Your bash * sends * sprawling} {#AD mybash 1}
#CLASS 0
ShadowDrake
Sojourner
Posts: 22
Joined: Tue Jun 12, 2001 5:01 am

Postby ShadowDrake » Thu Jul 05, 2001 6:15 am

*drools*
mmm... statistics...

now we got nearly everything Image
Yayaril
Sojourner
Posts: 2552
Joined: Sun Feb 18, 2001 6:01 am
Location: Green Bay, WI

Postby Yayaril » Thu Jul 05, 2001 8:42 am

Too bad you can't use gc anymore to gauge your damage.. waaah


Yayaril *sniff*
rylan
Sojourner
Posts: 2903
Joined: Fri Jan 26, 2001 6:01 am
Location: Hudson, MA

Postby rylan » Thu Jul 05, 2001 1:20 pm

doh.. they wacked the gc command? *SNIFF* Image
I thought it was quite useful in getting spells balanced properly.. shrug
gurzog
Sojourner
Posts: 62
Joined: Wed Feb 14, 2001 6:01 am

Postby gurzog » Fri Jul 06, 2001 5:48 am

that was why they whacked gc
now we have no idea if our spells are under or over powered Image

gurzog
- the eternal pessimist (that the right word?) hehe
The glass isn't half full, it's half empty dammit! :P

btw, i love these statistical trigs/aliases, thanks belleshel

[This message has been edited by gurzog (edited 07-06-2001).]
Morvaane
Sojourner
Posts: 25
Joined: Wed Jan 16, 2002 6:01 am
Location: Neshanic Station, NJ, USA

Postby Morvaane » Wed Jan 23, 2002 3:41 pm

This is great stuff....I love these reports! Can someone help me out with what lines I would need to add to track shield punchs? Unfortunately I dont know Zmud too much...heh just getting these formatted right from this post took me like 3 hours. Worth it in the end though, thanks to everyone who put this together. Can someone explain the defense stuff to me? I get like a 76 defense rating....26 parry rating, 7 dodge rating, et cetera...not sure what it means. Does that mean I defend against 76% of attacks....26% I parry, 7% I dodge?
belleshel
Sojourner
Posts: 526
Joined: Mon Jan 29, 2001 6:01 am
Location: Northeast

Postby belleshel » Mon Feb 04, 2002 3:35 pm

It's been awhile since I looked at this.
Yes defensive rating is the % of the time you avoid taking damage, be it by parry/dodge/shieldblock/flankblock/or high AC.
Belle

Looking back its pretty sloppy, things in the past can always seem to be easily improved upon.
Nekler BlazingWolf
Sojourner
Posts: 176
Joined: Sun Feb 04, 2001 6:01 am
Contact:

Postby Nekler BlazingWolf » Tue Feb 18, 2003 6:01 am

Bump!

Needs some work to go along with the new additions to combat, but this is still pretty great stuff.
Vari
Sojourner
Posts: 18
Joined: Sat Oct 04, 2003 8:05 pm

Postby Vari » Sat Nov 08, 2003 8:00 pm

Hey would there be anyway you can add rescue counter and maybe shieldpounch also and the CH% dont add in
Vari
AKA Christina

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 24 guests