GetCharacterInfo

From ESOUI Wiki

Jump to: navigation, search

This function returns the number of the characters that exist on the player's account.

Contents

Arguments

characterIndex
The index of the character to ask about; this should be between 1 and GetNumCharacters(), inclusive.

Return values

name
The raw name of the character, including localization control codes for gender; if the player were logged into this character, then this value is what GetRawUnitName("player") would return.
gender
The character's gender, as a Gender constant.
level
The character's level.
classId
The character's class, as a number.
raceId
The character's race, as a number.
alliance
The character's alliance in the Three Banners War, as an Alliance constant.
id
The character's raw ID in Zenimax's database, as a string.
locationId
The character's current location, as a number.

Syntax

d("Here's a list of your characters:")
for i = 1, GetNumCharacters() do
   local name, _, _, _, _ = GetCharacterInfo(i)
   d(zo_strformat("<<1>>", name))
end

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox