Thread Tools Display Modes
05/02/14, 01:56 PM   #1
stjobe
 
stjobe's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 60
GetPlayerStat() returns too low armour value

In OmniStats I use this API call to get the armour rating for the character:

GetPlayerStat(STAT_ARMOR_RATING, STAT_BONUS_OPTION_APPLY_BONUS, STAT_SOFT_CAP_OPTION_APPLY_SOFT_CAP)

However, it seems that this value is too low for certain characters, and I can't seem to figure out why it's correct for some characters and not for others.

Anyone have any ideas?
  Reply With Quote
05/03/14, 10:52 AM   #2
stjobe
 
stjobe's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 60
After looking into it a bit more, it seems like GetPlayerStats() returns the base value for armour.

I noticed when one of my characters made and equipped three pieces of the Torug's Pact set (three pieces increases armour by 100) that her armour stat didn't adjust in OmniStats.

Checking GetPlayerStats() returned a value 100 less than the value reported on the character screen, matching the value that character had before getting the Torug's Pact buff.
  Reply With Quote
05/03/14, 11:16 AM   #3
Harven
 
Harven's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 135
Try this stat: STAT_PHYSICAL_RESIST (22)
  Reply With Quote
05/03/14, 11:30 AM   #4
stjobe
 
stjobe's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 60
Originally Posted by Harven View Post
Try this stat: STAT_PHYSICAL_RESIST (22)
Thank you, that did the trick.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » GetPlayerStat() returns too low armour value


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