Hmz, so I can not sort my table with named tables ?
Pfft
Maybe I'm a little bit short on lua knowledge to accomplish what I want, but for my dps meter (trying to make a custom super lightweight dps-only meter for fun), what I do is the following:
I have an event handler for the combat event, duh
If someone does an attack, I check to see if the player already exists in my table, if so, just add the damage, if not, first create the table-entry, then add the damage in that entry
Then, once a second in my OnUpdate, I make a little frame for each combatant ... with a fontstring ofcourse for the damage and dps.
Next time this onupdate is called, ofcourse I only make a frame for players who don't have a frame yet ...
At the moment, my biggest trouble is to sort the bars... I have to find a way to do the setpoint. This would be easy if the player entries in the table would be sorted according to their damage ofcourse.
Other hard things in a dps mod are: defining pets, friendly fire, and a ****load of other little things, the list grows when you're getting deeper into this
Any thought on the sorting?