Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the name of a player title.
name, playerTitle = GetTitleName(titleId)
Arguments[]
- titleId
- number - Ranging from 1 to GetNumTitles. Not necessarily an index as there can be missing/skipped IDs in between.
Returns[]
- name
- string - Name of the title.
- playerTitle
- boolean - Seems to be true for all existing titles.
Details[]
- If the name has a trailing space, then the title is prefixed, otherwise it's suffixed.
/dump GetTitleName(2) -- "Corporal " → "Corporal Bob" (prefix)
/dump GetTitleName(36) -- "Champion of the Naaru" → "Alice, Champion of the Naaru" (suffix)
Patch changes[]
Patch 2.0.1 (2006-12-05): Added.