Quantcast GetLevelOrChampionPointsString() API call - ESOUI
Thread Tools Display Modes
04/15/18, 10:10 AM   #1
VulcanTourist
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 9
GetLevelOrChampionPointsString() API call

I needed a means to obtain the character level and CPs, and I rummaged about in the esoui.com wiki and found this:
GetLevelOrChampionPointsString(level, championPoints, iconSize)
That is the limit of the documentation about it. When I tried to use it, however, the result wasn't what I'd hoped.

Does anyone have more complete documentation about that API function, or know that it doesn't do what I hoped and there is a different one(s) that I should be using? Could it be a data typing issue? I know nothing of how data is typed in LUA or whether it's auto-type-converted as needed.
  Reply With Quote
04/15/18, 10:48 AM   #2
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 411
On a player with 850 CP:
GetUnitChampionPoints("player") = 850
GetUnitEffectiveChampionPoints("player") = 720
GetUnitLevel("player") = 50
  Reply With Quote
04/15/18, 10:51 AM   #3
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 440
ESOUIDocumentationP17.txt found in:
https://forums.elderscrollsonline.co...omment/4765833
__________________
@votan73 (EU - megaserver)
  Reply With Quote
04/15/18, 01:02 PM   #4
VulcanTourist
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 9
Originally Posted by Rhyono View Post
On a player with 850 CP:
GetUnitChampionPoints("player") = 850
GetUnitEffectiveChampionPoints("player") = 720
GetUnitLevel("player") = 50
Those look like precisely the returned data that I want. Thank you. What is the difference between actual and "effective" champion points?
  Reply With Quote
04/15/18, 01:51 PM   #5
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 1,502
Actual = What you really got
Effective = What ZOs is using as current "effective" maximum CPs (used for dmg calculation etc.)
  Reply With Quote
04/15/18, 03:18 PM   #6
VulcanTourist
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 9
Originally Posted by Baertram View Post
Actual = What you really got
Effective = What ZOs is using as current "effective" maximum CPs (used for dmg calculation etc.)
So all these players whose nameplates report their level as 1000+ are actually being capped at 720? That must suck, to have put in the extra effort and get no reward from it....
  Reply With Quote
04/15/18, 03:56 PM   #7
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 411
Other games you just stop gaining XP/levels once you hit cap. So when the cap increases every 3 months, we just get to utilize more of our earned level without additional effort. The downsides being that every update they reduce the XP curve making it easier and easier to level AND when you're above cap, they tack on an additional increase to the curve, which means anything earned past cap prior to an update is vastly slower than post-update.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » GetLevelOrChampionPointsString() API call

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