Quantcast Problem with totalHitCounter - Riftui
Reply
Thread Tools Display Modes
Unread 07-28-12, 09:30 PM   #1
Thepiper
Zombie
Join Date: Jul 2012
Posts: 2
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.
Thepiper is offline   Reply With Quote
Reply

Go BackRiftui » AddOns, Layouts and Macros » Help/Support » Problem with totalHitCounter

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off