Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GetTitle

Returns the title (suffix) of the object or mobile with the given ObjID.

For NPCs and players, the title is typically the profession or guild tag displayed after the name (e.g., “the blacksmith”, “the mage”).

ObjID — ID of the object or mobile.

Returns an empty string if the object does not exist or the character is disconnected.

Возвращает титул (суффикс) объекта или мобила с указанным ObjID.

Для NPC и игроков титул — это профессия или тег гильдии, отображаемые после имени (например, «the blacksmith», «the mage»).

ObjID — ID объекта или мобила.

Возвращает пустую строку, если объект не существует или персонаж не подключён.

Pascal

function GetTitle(ObjID: Cardinal): String;

Python

def GetTitle(ObjID: int) -> str: ...

Pascal Example

begin
  AddToSystemJournal('Name: ' + GetName(Self) + ', Title: ' + GetTitle(Self));
end.

Python Example

AddToSystemJournal(f'Name: {GetName(Self())}, Title: {GetTitle(Self())}')

See Also

GetName, GetAltName, CharName, CharTitle