SphereCommunity
armor percentages - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: armor percentages (/Thread-armor-percentages)



armor percentages - dabritmusic - 03-19-2014 11:13 AM

im currently making custom craftable armor and weapons. i wasnt too sure on how the AR worked. basing it off, if i was gm allskills. what would the rates be? im gonna have around 10 different craftable sets with an armor value of like 100-400. getting the most if your higher skill of course. cant seem to pinpoint it tho. thanks.


RE: armor percentages - Coruja - 03-19-2014 03:01 PM

I cant remember exactly how the sphere calc the damage based on old T2A AR value

I found this 6 years old code here, it describes the % of each layer represents from the character AR
Code:
[DEFNAME layers_armor_percentage]
armor_layer_2        50
armor_layer_3        5
armor_layer_4        20
armor_layer_5        40
armor_layer_6        10
armor_layer_7        10
armor_layer_10        5
armor_layer_12        20
armor_layer_13        40
armor_layer_17        40
armor_layer_19        10
armor_layer_20        20
armor_layer_22        70
armor_layer_23        20
armor_layer_24        25
but as I said, I dont remember how it really works

My guess: the damage hits a random layer, and this layer represents X% from your character AR value
I think its goes like this:
Quote:Initial damage hitting you (not resisted yet): 30
You got hit on layer: 13 (= 40%)
Your AR: 70

Armor calculation: 40% of 70 = 28%
Damage calculation: 30 - 28% = 21

but note that this combat style is the old T2A-style from 10 years ago (too outdated). If you like this style go ahead, but you can use a newest AOS combat formula too (more complex, it uses 5 resists type instead 1), or even rewrite the whole combat formula to make your own style


RE: armor percentages - kn4tseb - 06-14-2014 12:49 PM

http://wiki.sphere.torfo.org/index.php/Armor_Calculation

//

under 056c is it possible to determine which layer has been hit under a @gethit trigger for example?