ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   GetLevelOrChampionPointsString() API call (https://www.esoui.com/forums/showthread.php?t=7726)

VulcanTourist 04/15/18 10:10 AM

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:
Quote:

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.

Rhyono 04/15/18 10:48 AM

On a player with 850 CP:
GetUnitChampionPoints("player") = 850
GetUnitEffectiveChampionPoints("player") = 720
GetUnitLevel("player") = 50

votan 04/15/18 10:51 AM

ESOUIDocumentationP17.txt found in:
https://forums.elderscrollsonline.co...omment/4765833

VulcanTourist 04/15/18 01:02 PM

Quote:

Originally Posted by Rhyono (Post 34401)
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?

Baertram 04/15/18 01:51 PM

Actual = What you really got
Effective = What ZOs is using as current "effective" maximum CPs (used for dmg calculation etc.)

VulcanTourist 04/15/18 03:18 PM

Quote:

Originally Posted by Baertram (Post 34407)
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....

Rhyono 04/15/18 03:56 PM

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.


All times are GMT -6. The time now is 03:27 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI