ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   GetLevelOrChampionPointsString() API call (https://www.esoui.com/forums/showthread.php?t=7725)

VulcanTourist 04/15/18 10:09 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.

votan 04/15/18 10:57 AM

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

Lua has no "out" parameters. (Multiple) return values, only.

VulcanTourist 04/15/18 01:06 PM

Quote:

Originally Posted by votan (Post 34403)
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).


All times are GMT -6. The time now is 12:04 AM.

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