Riftui

Riftui (https://www.riftui.com/forums/index.php)
-   Help/Support (https://www.riftui.com/forums/forumdisplay.php?f=3)
-   -   Problem with totalHitCounter (https://www.riftui.com/forums/showthread.php?t=278)

Thepiper 07-28-12 09:30 PM

Problem with totalHitCounter
 
There are a few options to monitor self avoidance's. I am brand new to Lua and wanted to make a simple addon for myself to use and gain some experience. What it currently does, is keep track of dodge/parry/miss successes. Then when you use a slash command (/advfinal) it will output a few console messages, to the Rift chat window, of the stats it currently is at. (/advreset is also available anytime, but the /advfinal function runs a reset after outputting the messages.)

The way the output is constructed is: (as a snippet)
dodge = nDodge/nTotalHits*100
print("Dodge: " ..nDodge .." " ..math.floor(math.abs(dodge)) .."%")

Output:
Dodge: 12 8% (for instance, % is always whole number)

The problem I am having, is the "Event.Combat.Damage" used to count totalHits made against me during an encounter also adds my attacks made as well. I do not want this, because my avoidance percentages will be skewed. But I do not know how to exclude my personal attacks made.


All times are GMT -6. The time now is 08:28 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2022 MMOUI