Thread Tools Display Modes
09/07/15, 09:27 AM   #1
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Formulas to calculate percentage stats values

I am a middelman again between two developers, and im interested to make this working aswell



Originally Posted by QuadroTony
what about to show some stats in persents? like this

like Garkin did

Originally Posted by Garkin
Originally Posted by QuadroTony
Garkin
can you told me - this value also must be shown in %?
and how to calculate this percents for it?
Rating for spell penetration and armor penetration should be the same. The Apprentice mundus stone grants 5% of spell penetration which is for VR14 character 3200 spell penetration rating.

So from this I can guess that formula is:

1% armor penetration = (level + veteran rank) * 10

You character should have armor penetration:

7781 / ((50 + 14) * 10) = 12,1578%


My nightblade (she has equipped bow with sharpened trait):


StatsPercentage-0.1.zip

Warning: Spoiler
Originally Posted by Harven
Hey QuadroTony,
I'm not sure if the formula proposed by Garkin is right. I'm afraid it isn't for Physical Resistance and Spell Resistance. Explanation follows:

My equipped armor (all pieces at vet rank 2, heavy):
hand - Gauntlets of Vampire's Kiss - 938,
chest - Whitestrake's Cuirass - 1876,
legs - Whitestrake's Greaves - 1854,
head - Whitestrake's Helm - 1641,
shoulders - Whitestrake's Pauldron - 1854,
feets - Whitestrake's Sabatons - 1641
waist - Girdle of Vampire's Kiss - 703

Armor sum: 10507 - that's also Physical Resistance value (so your assumption that armor is now named Physical Resistance is right)
My Spell Resistance is 11812 (10507 armor + 1305 bonus from Whitestrake's Set)

Now I will spend 1 champion point at The Lord - Heavy Armor Focus: "Increases Your Physical Resistance by 1% while wearing 5 or more pieces of heavy armor.". After that my Physical Resistance increased to 10612, 10612 - 10507 = 105 which is 1% of 10507.

Now let's calculate it using Garkin's formula (I'm at vet rank 6):
1% of Physical Resistance = (50 + 6) * 10 = 560, not true, should be 105
10507 / 560 = 18.76%, 10612 / 560 = 18.95%, 18.95 - 18.76 = 0.19%, so my Physical Resistance increased by 0.19%, that's wrong, you can't calculate it like that.

[Edit]
Another test with "Defending" trait on a weapon ("Increases Physical and Spell Resistance by 4%"). Before 10507, after 10927, increased by 420 = 4% of 10507.

[Edit 2]
Yet another test with "Sharpened" trait on a weapon ("Increases Armor and Spell Penetration by 6%"). For this test I'm naked, all champion points reset, all skills reset. At this point my Armor Penetration and Focus Rating are 100. After equipping the weapon - nothing changes.

Another try, now with a plain Cuirass (1972 armor, no trait, no enchantment). My base Armor Penetration and Focus Rating are again 100. After equipping the weapon - 119 and 119.

Another try with 3 pieces of Whitestrake's Set (1305 Spell Resistance bonus), Physical Resistance: 5349, Spell Resistance: 6654. Base Armor Penetration and Focus Rating are again 100. After equipping the weapon - 153 and 166.

So it looks like with the weapon equipped it adds 1% of Spell Resistance to Focus rating and 1% of Physical Resistance to Armor Penetration. Again Garkins formula fails bacause (AP) 153/((50+6)*10) = 0.27%

[Edit 3]
Upgraded the weapons, now it says: "Increases Armor and Spell Penetration by 8%" but it shows same values as before: 153 and 166.


My conclusion: I can't use Garkins formula because I can't confirm that values it produces are accurate. My test with Armor and Spell Penetration shows that there is another variable that need to be taken into account. Of course there is also a chance that the values returned by stats funcions are wrong, but then we can't invent formulas based on wrong data.
  Reply With Quote
09/07/15, 09:59 AM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Armor sum: 10507 - that's also Physical Resistance value (so your assumption that armor is now named Physical Resistance is right)
My Spell Resistance is 11812 (10507 armor + 1305 bonus from Whitestrake's Set)

Now I will spend 1 champion point at The Lord - Heavy Armor Focus: "Increases Your Physical Resistance by 1% while wearing 5 or more pieces of heavy armor.". After that my Physical Resistance increased to 10612, 10612 - 10507 = 105 which is 1% of 10507.

Now let's calculate it using Garkin's formula (I'm at vet rank 6):
1% of Physical Resistance = (50 + 6) * 10 = 560, not true, should be 105
10507 / 560 = 18.76%, 10612 / 560 = 18.95%, 18.95 - 18.76 = 0.19%, so my Physical Resistance increased by 0.19%, that's wrong, you can't calculate it like that.
Formula I have used is for mitigation. Increasing armor (physical resistance) by 1% doesn't necessarily mean that your mitigation from this stat will be 1% higher.

You physical damage reduction (mitigation) from 10507 armor should be:
(10507 - 100) / ((50+6) * 10) = 10407 / 560 = 18.5839%

If you increase your armor value by 1% (to 10612) all physical damage taken will be reduced by:
(10612 - 100) / ((50+6) * 10) = 10512 / 560 = 18.7714%

BTW: "value - 100" is because all characters starts with 100 armor penetration.

Last edited by Garkin : 09/07/15 at 10:10 AM.
  Reply With Quote
09/07/15, 11:09 AM   #3
Harven
 
Harven's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 135
Originally Posted by Garkin View Post
Formula I have used is for mitigation. Increasing armor (physical resistance) by 1% doesn't necessarily mean that your mitigation from this stat will be 1% higher.

You physical damage reduction (mitigation) from 10507 armor should be:
(10507 - 100) / ((50+6) * 10) = 10407 / 560 = 18.5839%

If you increase your armor value by 1% (to 10612) all physical damage taken will be reduced by:
(10612 - 100) / ((50+6) * 10) = 10512 / 560 = 18.7714%

BTW: "value - 100" is because all characters starts with 100 armor penetration.
Hey Garkin,
So the formula can be used only with Physical Resistance to calculate Physical Mitigation and with Spell Resistance to calculate Spell Mitigation. Moreover the value will apply only when you get hit by a player whos armor penetration is 100. I assume that when I get hit by QuadroTony, my mitigation will be 4.87% (10507 - 7781) / ((50+6) * 10)). In that case I see no point in putting the value (18.5839%) in stats window since the true value depens on other player (mob) stats.

On the image we can also see you calculated Armor (and Spell) Penetration percentage. But according to my tests the value changes as I put more armor on me. Also it doesn't change when I equip improved "Sharpened" weapon. To me it looks like this stat is broken. In the quote attached by QuadroTony you wrote: "The Apprentice mundus stone grants 5% of spell penetration which is for VR14 character 3200 spell penetration rating.". Where did you get that rating value from?
  Reply With Quote
09/07/15, 11:26 AM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Harven View Post
Hey Garkin,
So the formula can be used only with Physical Resistance to calculate Physical Mitigation and with Spell Resistance to calculate Spell Mitigation. Moreover the value will apply only when you get hit by a player whos armor penetration is 100. I assume that when I get hit by QuadroTony, my mitigation will be 4.87% (10507 - 7781) / ((50+6) * 10)). In that case I see no point in putting the value (18.5839%) in stats window since the true value depens on other player (mob) stats.

On the image we can also see you calculated Armor (and Spell) Penetration percentage. But according to my tests the value changes as I put more armor on me. Also it doesn't change when I equip improved "Sharpened" weapon. To me it looks like this stat is broken. In the quote attached by QuadroTony you wrote: "The Apprentice mundus stone grants 5% of spell penetration which is for VR14 character 3200 spell penetration rating.". Where did you get that rating value from?
Its always Physical Resistance - Armor Penetration. So in your character sheet is 18.5839% and in QuadroTonys next to he Armor Penetration is 12.1578% (he is rank 14). I never said that it is perfect, I just did what QuadroTony requested - show some kind of percentage next to the rating.

Where did I get that number? I'm pretty sure that I found some post from user who actually have tested it. No, I didn't test it myself, but I believe it should be visible on your character sheet.
  Reply With Quote
09/07/15, 03:48 PM   #5
Harven
 
Harven's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 135
OK, thanks for the explanations I will just leave it as it is (Harven's Extended Stats) in hope that ZOS will fix and add more interesing stats in the future.
  Reply With Quote
09/08/15, 09:00 AM   #6
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Thank all for conversation!
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Formulas to calculate percentage stats values

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