Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 2.0.1 / 2.5.1

Sets the player's displayed title.

SetCurrentTitle(titleId)

Arguments

titleId 
number : TitleId - ID of the title you want to set. The identifiers are global and therefore do not depend on which titles you have learned. Invalid or unlearned values clear your title.

Details

  • The last indexed value (currently 143) returns nil and removes the player's name completely (not available to players).
  • GetTitleName can be used to find the name associated with the TitleId.

Example

This sets the title "Elder" if your character had earned the title, otherwise it removes any active title.

SetCurrentTitle(43)

Sets a random title from the available ones.

/run local t = {} for i = 1, GetNumTitles() do if IsTitleKnown(i) then tinsert(t, i) end end SetCurrentTitle((t[random(#t)]))
Advertisement