WoW API: GetNumLanguages

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetNumLanguages to API GetNumLanguages without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetNumLanguages

Returns the number of languages your character can speak.

NumLanguages = GetNumLanguages()

Parameters[edit]

Arguments[edit]

none

Returns[edit]

NumLanguages
Numeric - Returns the number of languages your character can speak.

Example[edit]

for x=1, GetNumLanguages() do
  DEFAULT_CHAT_FRAME:AddMessage(GetLanguageByIndex(x))
end

Notes[edit]

  • Currently (v3.0.3) this function returns either 1 or 2. For Humans and Orcs, it returns 1. For all other races, it returns 2.