Page 1 of 1

AR of shield, it's not based on what I set! Help me please!

Posted: Thu Feb 16, 2017 2:38 pm
by DerexScript
Image
#----------------------------------------------

I know that armor is based on the value of "Chance" that is in the "armrzone.cfg"
But the shield does not seem to use the same calculation as the armor it uses! Which is the value of "Chance" that stays in the "armrzone.cfg"

Re: AR of shield, it's not based on what I set! Help me please!

Posted: Fri Feb 17, 2017 9:51 am
by Skinny
Check if there is a MOD active on your character.
Also check the MAXHP of this item in-game.

Re: AR of shield, it's not based on what I set! Help me please!

Posted: Fri Feb 17, 2017 11:11 am
by DerexScript
Skinny wrote: Fri Feb 17, 2017 9:51 am Check if there is a MOD active on your character.
Also check the MAXHP of this item in-game.
Image
#-----------------------------------------------#
Image
#---------------------------------------------#

I think print answers what you asked me!

HP = MaxHP
ArMod = 0
Ar Shield = 12
Ar Character= 6

How is this possible?

Re: AR of shield, it's not based on what I set! Help me please!

Posted: Fri Feb 17, 2017 12:21 pm
by bodom
It's a while now but If I can remember correctly, the AR in the item's definition is not applied directly but there is a correction factor depending on the layer.

Re: AR of shield, it's not based on what I set! Help me please!

Posted: Fri Feb 17, 2017 12:59 pm
by DerexScript
bodom wrote: Fri Feb 17, 2017 12:21 pm It's a while now but If I can remember correctly, the AR in the item's definition is not applied directly but there is a correction factor depending on the layer.

Can you tell me how I can apply this fix?

Re: AR of shield, it's not based on what I set! Help me please!

Posted: Sat Feb 18, 2017 1:32 am
by Nando
The AR of a shield is proportional to half your Parrying skill, and at least 1.0:

ar_shield = max(1.0, shield.AR * (parrying/2)/100)

So if you have 100.0 Parrying, the shield will give you 50% of its AR. In your case, 50% of 12 is 6.

Re: AR of shield, it's not based on what I set! Help me please!

Posted: Sat Feb 18, 2017 3:51 am
by kkk
Nando wrote: Sat Feb 18, 2017 1:32 am The AR of a shield is proportional to half your Parrying skill, and at least 1.0:

ar_shield = max(1.0, shield.AR * (parrying/2)/100)

So if you have 100.0 Parrying, the shield will give you 50% of its AR. In your case, 50% of 12 is 6.
This calculation is part of Core (pol.exe)? Can give advice how to change this behavior?

Thanks.

Re: AR of shield, it's not based on what I set! Help me please!

Posted: Sat Feb 18, 2017 7:37 am
by Nando
It's hard-coded and there's currently no option to change it. :(

If you are interested in the code, it's in Character::refresh_ar().

Re: AR of shield, it's not based on what I set! Help me please!

Posted: Sat Feb 18, 2017 8:13 am
by DerexScript
Thank you very much for taking time to help me.
I'm starting in eScript. And I think I'm going to need your help a lot.
Thanks for the help.