API GetTitleName

Returns the name of a Title ID. name, playerTitle = GetTitleName(titleId)

Arguments

 * titleId : number - Ranging from 1 to . 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
/dump GetTitleName(2) -- "Corporal " → Corporal Bob (prefix)
 * If the name has a trailing space, then the title is prefixed, otherwise it's suffixed.

/dump GetTitleName(36) -- "Champion of the Naaru" → Alice, Champion of the Naaru (suffix)
 * If the suffix starts with an uppercase char then a comma is added. Exceptions are single word suffixes as "Jenkins" and "Ironbane".
 * and  have a comma.
 * and  don't have a comma.


 * The foolproof way to determine prefix/suffix would be by parsing CharTitles.db2