Quantcast GetLevelOrChampionPointsString() API call - ESOUI
Thread Tools Display Modes
04/15/18, 10:09 AM   #1
VulcanTourist
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 27
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:57 AM   #2
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 457
ESOUIDocumentationP17.txt found in:
https://forums.elderscrollsonline.co...omment/4765833

Lua has no "out" parameters. (Multiple) return values, only.
__________________
@votan73 (EU - megaserver)
  Reply With Quote
04/15/18, 01:06 PM   #3
VulcanTourist
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 27
Originally Posted by votan View Post
ESOUIDocumentationP17.txt found in:
https://forums.elderscrollsonline.co...omment/4765833

Lua has no "out" parameters. (Multiple) return values, only.
The link is broken, the truncated text actually replaced by "...", and I didn't understand your final sentence without the context that the forum post might have provided....

I'd probably learn something from this regardless, but a reply to my second post of this in another subforum mentioned the two API calls that I should have been using instead of this one (GetUnitChampionPoints and GetUnitLevel).
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » 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