Originally Posted by Sylvan, who originally decyphered the equation
Ok I finished the agility table.
Here's the full formula for AC:
Avoidance = (T from table) + trunc(Defense * 16/9), but never less than 0
Caster Mitigation = trunc(Buffs/3) + trunc(Defense/2) + (Equipment + 1)
Anyone else's Mitigation = trunc(Buffs/4) + trunc(Defense/3) + trunc(Equipment * 4/3)
Displayed AC = trunc( (Avoidance + Mitigation) * 1000 / 847 )
Caster means Enchanter, Magician, Necromancer, Wizard.
Defense is the character's Defense skill.
Equipment is just the sum total of the raw AC from everything worn. Don't forget the range slot.
Buffs is the sum of the bonuses from all buffs. You'd have to check your spdat file to see those numbers, but for reference Skin Like Wood adds 15 and Skin Like Nature adds 55.
T comes from the agility table below, use the column corresponding to the character's level.
trunc means truncate, to remove the fraction; keep only the integer part of the value.
Some qualifications: Iksars get a bonus, I'm not sure how much but I suspect it might be adding (Level - 1) to Mitigation. The formula hasn't actually been tested on Beastlords or Vah Shir yet. The formula doesn't work for monks because of the weight limit thing, but it should work if they keep their weight under the limit. There is a 'never less than 0' issue with Mitigation too, but it only matters if you get hit with an AC debuff while wearing little or no equipment... it won't affect most people. The formula doesn't work right if your character has been drinking but it works in every other situation, including illusions, hunger, thirst, drowning, encumbered, low health, low stamina, stacked buffs and debuffs, and resurrection sickness. I have no proof that these are the actual Avoidance and Mitigation values, there isn't even any proof that Avoidance and Mitigation are ever used seperately in actual combat calculations... I just know that the first few factors are rounded up to 0 and are the same for all classes, so it seemed like a sensible division.
|