AR of shield, it's not based on what I set! Help me please!
Moderator: POL Developer
-
- New User
- Posts: 24
- Joined: Thu Jan 12, 2017 7:19 am
AR of shield, it's not based on what I set! Help me please!
#----------------------------------------------
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!
Check if there is a MOD active on your character.
Also check the MAXHP of this item in-game.
Also check the MAXHP of this item in-game.
-
- New User
- Posts: 24
- Joined: Thu Jan 12, 2017 7:19 am
Re: AR of shield, it's not based on what I set! Help me please!
#-----------------------------------------------#
#---------------------------------------------#
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!
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.
-
- New User
- Posts: 24
- Joined: Thu Jan 12, 2017 7:19 am
Re: AR of shield, it's not based on what I set! Help me please!
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.
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!
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!
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().
If you are interested in the code, it's in Character::refresh_ar().
-
- New User
- Posts: 24
- Joined: Thu Jan 12, 2017 7:19 am
Re: AR of shield, it's not based on what I set! Help me please!
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.
I'm starting in eScript. And I think I'm going to need your help a lot.
Thanks for the help.