Gaming
 
[Zalambar]

Zalambar 22 edits since November 27, 2008

22

From WoWWiki

Contents

Theorycrafting:

I post the random things I build on [1] perhaps you will find them to be of some use.


Combat rating calculators:

Basic Combat Rating Mechanics

Mitigation Stats with Diminishing Returns

Collecting Data

Getting accurate values for combat mechanics is important and the following scripts will help dump character attribute data to the default chat frame with as many digits of precision as the WoW client provides.

Example; spell hit mechanics: /script DEFAULT_CHAT_FRAME:AddMessage("Spell Hit: " .. GetCombatRating(6) .. ", + Spell Hit Chance: " .. GetCombatRatingBonus(6) .. ", Rating Per Hit: " .. GetCombatRating(6)/GetCombatRatingBonus(6))

That can be easily reformatted using any of the other rating index values.

We do not seem to have an agility per dodge formula yet since it depends on both class and level, perhaps we can gather enough data to correct that. Since the API does not give us a nice way to determine these values and we cannot easily check for +dodge chance talents or racial abilities our easiest option is probably going to be recording total dodge chance at different agility values on each character and comparing the difference. We'll need to account for diminishing returns on dodge chance and the fact that those do not apply to base dodge chance.

/script DEFAULT_CHAT_FRAME:AddMessage(UnitLevel("player").." "..UnitClass("player").." has "..GetDodgeChance().." total dodge chance")
/script local base, stat= UnitStat("player",2); DEFAULT_CHAT_FRAME:AddMessage("from "..stat.." agility, "..GetCombatRating(3).." dodge rating, and "..UnitDefense("player")+GetCombatRatingBonus(2).." defense")