View Single Post
08/17/21, 01:44 AM   #2
Irniben
 
Irniben's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2021
Posts: 6
Originally Posted by Phinix View Post
This function currently returns character CREATED order. However, it has not been updated since the ability to manually re-order characters was added to the game, rendering it largely useless (for getting character order anyway; getting the ID for each current character name is still handy).

EDIT: It should be clarified that the function itself does not actually return ANY order as one of the return values. Instead it is used in a for loop to iterate through the table it returns, which is ordered by creation date.

For example: esoui/pregameandingame/zo_addonmanager/zo_addonmanager.lua

Code:
for i=1, self:GetNumCharacters() do
            local name = self:GetCharacterInfo(i)
I didn't check, but doesn't "order" as a return value work? It's not yet documented in the wiki but used in the character selection screen.

local name, gender, level, championPoints, class, race, alliance, id, locationId, order, needsRename = GetCharacterInfo(characterIndex)
  Reply With Quote